diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index b7e4da6..b601219 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -1,78 +1,72 @@ - + package="com.github.nutomic.controldlna" + android:versionCode="14" + android:versionName="1.0.2" > + - - + + - + - - - - - - - - - - - - - - - + killed on screen rotate. (why do you do this, Google???). + This comes with some rendering issues on screen rotate (sometimes) + on Android 4.4 (but that's not my error). + --> + + + + + + - + + + - - - - - - - - - - - + - - - - - - - + + + + + + + + + + + + + + + diff --git a/src/main/res/layout/activity_main.xml b/src/main/res/layout/activity_main.xml index 3676c09..fcb8c92 100644 --- a/src/main/res/layout/activity_main.xml +++ b/src/main/res/layout/activity_main.xml @@ -1,6 +1,6 @@ + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/pager" + android:layout_width="match_parent" + android:layout_height="match_parent" /> diff --git a/src/main/res/layout/list_item.xml b/src/main/res/layout/list_item.xml index 30bac95..b68ad97 100644 --- a/src/main/res/layout/list_item.xml +++ b/src/main/res/layout/list_item.xml @@ -1,38 +1,38 @@ + android:layout_width="fill_parent" + android:layout_height="?android:attr/listPreferredItemHeight" + android:orientation="horizontal" > + android:id="@+id/image" + android:layout_width="?android:attr/listPreferredItemHeight" + android:layout_height="?android:attr/listPreferredItemHeight" + android:padding="4dip" + android:contentDescription="@string/album_art" /> + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:layout_marginTop="4dip" > + android:id="@+id/title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:lines="1" + android:ellipsize="end" /> + android:id="@+id/subtitle" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:lines="1" + android:ellipsize="end" /> diff --git a/src/main/res/layout/route_fragment.xml b/src/main/res/layout/route_fragment.xml index 961d8a4..82da1e0 100644 --- a/src/main/res/layout/route_fragment.xml +++ b/src/main/res/layout/route_fragment.xml @@ -1,99 +1,99 @@ + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > - - - - - - - - + android:layout_above="@+id/controls" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" /> + + + + + + + + + android:id="@+id/current_time" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:gravity="right" + android:minEms="2" /> + android:id="@+id/shuffle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/shuffle" + android:layout_toLeftOf="@+id/previous" /> + android:id="@+id/previous" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/previous" + android:layout_toLeftOf="@+id/playpause" /> + android:id="@+id/playpause" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/play" + android:layout_centerHorizontal="true"/> + android:id="@+id/next" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/next" + android:layout_toRightOf="@id/playpause" /> + android:id="@+id/repeat" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/repeat" + android:layout_toRightOf="@id/next" /> + android:id="@+id/total_time" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:gravity="right" + android:minEms="2"/> diff --git a/src/main/res/layout/server_fragment.xml b/src/main/res/layout/server_fragment.xml index 4a5529e..bb02186 100644 --- a/src/main/res/layout/server_fragment.xml +++ b/src/main/res/layout/server_fragment.xml @@ -1,21 +1,21 @@ + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + android:id="@id/android:list" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + android:id="@id/android:empty" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="10dip" + android:text="@string/device_list_empty" + android:layout_centerInParent="true" + android:gravity="center" /> diff --git a/src/main/res/menu/menu.xml b/src/main/res/menu/menu.xml index ffd380d..09375ae 100644 --- a/src/main/res/menu/menu.xml +++ b/src/main/res/menu/menu.xml @@ -3,7 +3,7 @@ + android:id="@+id/preferences" + android:title="@string/settings_title" /> \ No newline at end of file diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 72aea52..5aee71b 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -61,7 +61,7 @@ Contact Developer - - Debug + + Debug diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 8ea9a8c..31490b9 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -2,19 +2,19 @@ + android:key="enable_wifi_on_start" + android:title="@string/enable_wifi_title" + android:entries="@array/enable_wifi_value_titles" + android:entryValues="@array/enable_wifi_values" + android:defaultValue="ask"/> + android:key="incoming_phone_call_pause" + android:title="@string/incoming_phone_call_pause" + android:defaultValue="true" /> + android:key="contact_dev" + android:title="@string/contact_dev_title" /> \ No newline at end of file