27f04e5b78
Change-Id: Ie85fecb30ba12b056569049aac674dc1b8653942 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
118 lines
5.3 KiB
XML
118 lines
5.3 KiB
XML
<?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"
|
|
android:outlineAmbientShadowColor="@android:color/transparent"
|
|
android:outlineSpotShadowColor="@android:color/transparent"
|
|
android:background="?android:attr/colorPrimary"
|
|
android:theme="@style/Theme.CollapsingToolbar.Settings">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/collapsing_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
app:forceApplySystemWindowInsetTop="true"
|
|
app:extraMultilineHeightEnabled="true"
|
|
app:contentScrim="@color/toolbar_collapsed"
|
|
app:maxLines="3"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
|
app:scrimAnimationDuration="50"
|
|
app:scrimVisibleHeightTrigger="@dimen/settingslib_scrim_visible_height_trigger"
|
|
app:statusBarScrim="@null"
|
|
app:titleCollapseMode="fade"
|
|
app:collapsedTitleTextAppearance="@style/CollapsingToolbarTitle.Collapsed"
|
|
app:expandedTitleTextAppearance="@style/CollapsingToolbarTitle.Expanded"
|
|
app:expandedTitleMarginStart="@dimen/expanded_title_margin_start"
|
|
app:expandedTitleMarginEnd="@dimen/expanded_title_margin_end"
|
|
app:toolbarId="@id/action_bar">
|
|
|
|
<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:layout_marginTop="8dp"
|
|
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:theme="?android:attr/actionBarTheme"
|
|
android:transitionName="shared_element_view"
|
|
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>
|