Commit d92f830d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Audio: invert songs and album/artist

parent 139342d1
......@@ -18,26 +18,26 @@
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:text="@string/songs"
android:text="@string/artists"
android:textSize="16dip"
android:textColor="#ffffff"
android:id="@+id/songs"
android:id="@+id/artists"
android:layout_width="80dip"
android:layout_height="wrap_content"
android:gravity="center_horizontal" />
<TextView
android:text="@string/artists"
android:text="@string/albums"
android:textSize="16dip"
android:textColor="#888888"
android:id="@+id/artists"
android:id="@+id/albums"
android:layout_width="80dip"
android:layout_height="wrap_content"
android:gravity="center_horizontal" />
<TextView
android:text="@string/albums"
android:text="@string/songs"
android:textSize="16dip"
android:textColor="#888888"
android:id="@+id/albums"
android:id="@+id/songs"
android:layout_width="80dip"
android:layout_height="wrap_content"
android:gravity="center_horizontal" />
......@@ -59,13 +59,6 @@
android:id="@+id/content"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@+id/songs_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:divider="@color/item_common"
android:dividerHeight="1dp"
android:fastScrollEnabled="true" />
<ExpandableListView
android:id="@+id/artists_list"
android:layout_width="fill_parent"
......@@ -84,6 +77,13 @@
android:dividerHeight="1dp"
android:groupIndicator="@null"
android:fastScrollEnabled="true" />
<ListView
android:id="@+id/songs_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:divider="@color/item_common"
android:dividerHeight="1dp"
android:fastScrollEnabled="true" />
<ExpandableListView
android:id="@+id/genres_list"
android:layout_width="fill_parent"
......
......@@ -79,10 +79,12 @@ public class AudioBrowserActivity extends Activity implements ISortable {
public final static int SORT_BY_LENGTH = 1;
private boolean mSortReverse = false;
private int mSortBy = SORT_BY_TITLE;
public final static int MODE_SONG = 0;
public final static int MODE_ARTIST = 1;
public final static int MODE_ALBUM = 2;
public final static int MODE_ARTIST = 0;
public final static int MODE_ALBUM = 1;
public final static int MODE_SONG = 2;
public final static int MODE_GENRE = 3;
public final static int MENU_PLAY = Menu.FIRST;
public final static int MENU_APPEND = Menu.FIRST + 1;
public final static int MENU_PLAY_ALL = Menu.FIRST + 2;
......
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