[app] Add compressing toolbar to app list
This commit is contained in:
parent
dfee8f04d6
commit
d520b41cdb
|
|
@ -39,24 +39,18 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?attr/actionBarSize"
|
||||
android:elevation="0dp" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="?actionBarSize"
|
||||
app:fitsSystemWindowsInsets="top"
|
||||
tools:ignore="MissingPrefix">
|
||||
android:elevation="0dp"
|
||||
app:layout_scrollFlags="scroll|enterAlways"
|
||||
app:layout_scrollEffect="compress" />
|
||||
|
||||
<rikka.widget.switchbar.SwitchBar
|
||||
android:id="@+id/master_switch"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
app:switchOnText="@string/enable_module"
|
||||
app:switchOffText="@string/enable_module" />
|
||||
app:switchOffText="@string/enable_module"
|
||||
app:layout_scrollFlags="scroll|enterAlways"
|
||||
app:layout_scrollEffect="compress" />
|
||||
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/progress"
|
||||
|
|
@ -65,6 +59,15 @@
|
|||
android:indeterminate="true"
|
||||
app:hideAnimationBehavior="outward" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
tools:ignore="MissingPrefix">
|
||||
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
android:fitsSystemWindows="true">
|
||||
|
||||
<com.google.android.material.appbar.CollapsingToolbarLayout
|
||||
style="?attr/collapsingToolbarLayoutMediumStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/collapsingToolbarLayoutMediumSize"
|
||||
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@
|
|||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:clipChildren="false"
|
||||
android:paddingTop="104dp"
|
||||
app:fitsSystemWindowsInsets="top|bottom">
|
||||
app:fitsSystemWindowsInsets="bottom">
|
||||
|
||||
<rikka.widget.borderview.BorderNestedScrollView
|
||||
android:id="@+id/scrollView"
|
||||
|
|
|
|||
Loading…
Reference in New Issue