| <?xml version="1.0" encoding="utf-8"?> |
| <androidx.coordinatorlayout.widget.CoordinatorLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/main_container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:fitsSystemWindows="true"> |
| |
| <com.google.android.material.appbar.AppBarLayout |
| android:id="@+id/app_bar" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:fitsSystemWindows="true" |
| app:layout_behavior="org.lineageos.updater.ui.FlingBehavior"> |
| |
| <com.google.android.material.appbar.CollapsingToolbarLayout |
| android:id="@+id/collapsing_toolbar" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:theme="@style/AppTheme.AppBarOverlay" |
| app:collapsedTitleTextAppearance="@style/TextAppearanceInverted" |
| app:contentScrim="?attr/colorPrimary" |
| app:expandedTitleTextAppearance="@style/TextAppearanceTransparent" |
| app:layout_scrollFlags="scroll|exitUntilCollapsed" |
| app:scrimAnimationDuration="0"> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="86dp" |
| android:paddingBottom="16dp" |
| android:paddingEnd="16dp" |
| android:paddingStart="16dp" |
| app:layout_collapseMode="parallax"> |
| |
| <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="12sp" /> |
| |
| <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="12sp" /> |
| |
| <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="12sp" /> |
| </RelativeLayout> |
| |
| <androidx.appcompat.widget.Toolbar |
| android:id="@+id/toolbar" |
| android:layout_width="match_parent" |
| android:layout_height="?attr/actionBarSize" |
| android:textColor="?android:attr/textColorPrimary" |
| app:layout_collapseMode="pin" /> |
| </com.google.android.material.appbar.CollapsingToolbarLayout> |
| </com.google.android.material.appbar.AppBarLayout> |
| |
| <androidx.core.widget.NestedScrollView |
| android:id="@+id/no_new_updates_view" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:padding="46dp" |
| app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| |
| <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:clipToPadding="false" |
| android:paddingBottom="5dp" |
| android:scrollbars="vertical" |
| app:layout_behavior="@string/appbar_scrolling_view_behavior" /> |
| </androidx.coordinatorlayout.widget.CoordinatorLayout> |