use own view for filebrowser

This commit is contained in:
Adrian Ulrich 2014-10-16 16:01:36 +02:00
parent f592d684a3
commit 22b9422d3a
3 changed files with 13 additions and 4 deletions

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/text"
android:background="@drawable/selectable_item_bg"
android:maxLines="2"
android:padding="3dip"
android:textColor="?android:textColorPrimary"
android:gravity="left|center_vertical"
android:layout_width="fill_parent"
android:layout_height="44dip"
android:layout_weight="1" />

View File

@ -52,7 +52,7 @@ public class FilebrowserStartActivity extends PlaybackActivity {
mCurrentPath = (String)getFilesystemBrowseStart().getAbsolutePath();
mPrefEditor = PlaybackService.getSettings(this).edit();
mListAdapter = new FilebrowserStartAdapter(this, R.layout.showqueue_row);
mListAdapter = new FilebrowserStartAdapter(this, R.layout.filebrowser_row);
mPathDisplay = (TextView) findViewById(R.id.path_display);
mListView = (ListView) findViewById(R.id.list);
mSaveButton = (Button) findViewById(R.id.save_button);

View File

@ -50,9 +50,6 @@ public class FilebrowserStartAdapter extends ArrayAdapter<String> {
target.setText(label);
target.setCompoundDrawablesWithIntrinsicBounds(mFolderIcon, null, null, null);
/* not used here (yet) */
View pmark = ((View)row.findViewById(R.id.playmark));
pmark.setVisibility(View.INVISIBLE);
return row;
}