| <?xml version="1.0" encoding="utf-8"?> |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| 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"> |
| |
| <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" /> |
| |
| <TextView |
| android:id="@+id/header_build_version" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@id/header_title" |
| android:textColor="?android:attr/textColorPrimary" |
| android:textSize="14sp" /> |
| |
| <TextView |
| android:id="@+id/header_build_date" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@id/header_build_version" |
| android:textColor="?android:attr/textColorPrimary" |
| android:textSize="14sp" /> |
| |
| <TextView |
| android:id="@+id/header_last_check" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@id/header_build_date" |
| android:textColor="?android:attr/textColorPrimary" |
| android:textSize="14sp" /> |
| |
| </LinearLayout> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_below="@id/header_last_check" |
| android:layout_alignParentBottom="true" |
| android:weightSum="2" |
| android:orientation="horizontal"> |
| |
| <Button |
| android:id="@+id/refresh" |
| android:drawableLeft="@drawable/ic_menu_refresh" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:text="refresh" |
| style="@style/Widget.AppCompat.Button.Borderless.Colored"/> |
| |
| <Button |
| android:id="@+id/preferences" |
| android:drawableLeft="@drawable/ic_menu_preferences" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:text="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> |