TrackListActivity: fixed landscape layout.

This commit is contained in:
Dennis Guse
2019-12-11 23:03:49 +01:00
parent 36fcb44af5
commit 1094827fac
2 changed files with 65 additions and 60 deletions
+1 -3
View File
@@ -83,9 +83,7 @@ limitations under the License.
<activity android:name=".TrackEditActivity" /> <activity android:name=".TrackEditActivity" />
<activity <activity android:name=".TrackListActivity">
android:name=".TrackListActivity"
android:screenOrientation="userPortrait">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
+64 -57
View File
@@ -17,80 +17,87 @@ limitations under the License.
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:baselineAligned="false" android:baselineAligned="false"
android:orientation="horizontal"> android:orientation="vertical">
<include layout="@layout/toolbar" /> <include layout="@layout/toolbar" />
<include layout="@layout/track_controller" /> <LinearLayout
android:layout_width="match_parent"
<ListView
android:id="@+id/track_list"
android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1.0" /> android:baselineAligned="false"
android:orientation="horizontal">
<RelativeLayout <include layout="@layout/track_controller" />
android:id="@+id/track_list_empty_view"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1.0">
<LinearLayout <ListView
android:id="@+id/track_list_arrow_long" android:id="@+id/track_list"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignParentLeft="true" android:layout_weight="1.0" />
android:orientation="vertical"
android:paddingLeft="12dp"
android:paddingRight="16dp">
<View <RelativeLayout
android:layout_width="match_parent" android:id="@+id/track_list_empty_view"
android:layout_height="0dp" android:layout_width="0dp"
android:layout_weight="1" /> android:layout_height="match_parent"
android:layout_weight="1.0">
<ImageView <LinearLayout
android:id="@+id/track_list_arrow_long"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="0dp" android:layout_height="match_parent"
android:layout_weight="10" android:layout_alignParentLeft="true"
android:contentDescription="@string/image_arrow" android:orientation="vertical"
android:src="@drawable/ic_arrow_long" /> android:paddingLeft="12dp"
android:paddingRight="16dp">
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="17" /> android:layout_weight="1" />
</LinearLayout>
<LinearLayout <ImageView
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="0dp"
android:layout_toRightOf="@id/track_list_arrow_long" android:layout_weight="10"
android:orientation="vertical"> android:contentDescription="@string/image_arrow"
android:src="@drawable/ic_arrow_long" />
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="4" /> android:layout_weight="17" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="match_parent"
android:layout_weight="24"> android:layout_toRightOf="@id/track_list_arrow_long"
android:orientation="vertical">
<TextView
style="@style/TextLarge"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".7"
android:text="@string/track_list_empty_message"
android:textColor="@color/list_empty_text" />
<View <View
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="0dp"
android:layout_weight=".3" /> android:layout_weight="4" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="24">
<TextView
style="@style/TextLarge"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".7"
android:text="@string/track_list_empty_message"
android:textColor="@color/list_empty_text" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight=".3" />
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </RelativeLayout>
</RelativeLayout> </LinearLayout>
</LinearLayout> </LinearLayout>