Mobile builds on devices with no touch panel are also getting these settings applied, which is not intended. Change-Id: I02fac65dc7042c04259d6f65a957185aac32a252
131 lines
4.9 KiB
XML
131 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="horizontal"
|
|
android:id="@+id/main_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
android:padding="16dp"
|
|
android:weightSum="2"
|
|
android:baselineAligned="false">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:paddingEnd="16dp"
|
|
android:paddingStart="16dp"
|
|
android:layout_gravity="start">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/header_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="sans-serif-light"
|
|
android:paddingBottom="16dp"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="56sp"
|
|
tools:text="LineageOS\n18.1" />
|
|
|
|
<TextView
|
|
android:id="@+id/header_build_version"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="14sp"
|
|
tools:text="Android 11"/>
|
|
|
|
<TextView
|
|
android:id="@+id/header_build_date"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="14sp"
|
|
tools:text="2022-01-01"/>
|
|
|
|
<TextView
|
|
android:id="@+id/header_last_check"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="14sp"
|
|
tools:text="Last checked: 2022-01-01"/>
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:weightSum="2"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/refresh"
|
|
android:drawableStart="@drawable/ic_menu_refresh"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/menu_refresh"
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"/>
|
|
|
|
<Button
|
|
android:id="@+id/preferences"
|
|
android:drawableStart="@drawable/ic_menu_preferences"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/menu_preferences"
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"/>
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:paddingEnd="16dp"
|
|
android:paddingStart="16dp"
|
|
android:layout_gravity="end">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/no_new_updates_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="46dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="@string/list_no_updates"
|
|
android:textColor="?android:textColorSecondary" />
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="12dp"
|
|
android:clipToPadding="false"
|
|
android:paddingBottom="5dp"
|
|
android:scrollbars="vertical"
|
|
android:layout_gravity="end" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/refresh_progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:visibility="gone"/>
|
|
|
|
</RelativeLayout>
|
|
</LinearLayout>
|