use own view for filebrowser
This commit is contained in:
parent
f592d684a3
commit
22b9422d3a
12
res/layout/filebrowser_row.xml
Normal file
12
res/layout/filebrowser_row.xml
Normal 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" />
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user