Commit afe0fdb7 authored by Geoffrey Métais's avatar Geoffrey Métais

Nicer audio lists

parent d09f0b18
......@@ -3,11 +3,13 @@
android:id="@+id/layout_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/audio_browser_item_size" >
android:layout_height="@dimen/audio_browser_item_size"
android:layout_marginBottom="10dp" >
<ImageView
android:id="@+id/cover"
......@@ -19,6 +21,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toRightOf="@+id/cover"
android:layout_toLeftOf="@+id/item_more"
android:paddingLeft="10dp"
android:gravity="center_vertical"
android:orientation="vertical" >
......@@ -51,9 +54,9 @@
android:id="@+id/item_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:background="@drawable/ic_more"
android:background="@drawable/ic_more_vert_grey600_24dp"
android:clickable="true" />
</RelativeLayout>
......
......@@ -454,7 +454,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
throw new IllegalArgumentException("Tested item must be a media item and not a separator.");
if (position == mItems.size() - 1)
return false;
return true; //consider end of list as a separator. Nicer to display
else if (mItems.get(position + 1).mIsSeparator )
return true;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment