mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-08 15:57:29 +00:00
cf71ca682e
This commits adds some special handling for Android 11+ users regarding keyboard visibility. Check https://github.com/android/user-interface-samples/tree/master/WindowInsetsAnimation.
75 lines
3.6 KiB
XML
Executable File
75 lines
3.6 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<awais.instagrabber.customviews.InsetsNotifyingCoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/main_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:animateLayoutChanges="true"
|
|
tools:context=".activities.MainActivity">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/collapsingToolbarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:minHeight="?attr/actionBarSize"
|
|
app:layout_scrollFlags="scroll|enterAlwaysCollapsed|exitUntilCollapsed"
|
|
app:titleEnabled="false">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="?attr/toolbarColor"
|
|
app:layout_collapseMode="pin"
|
|
app:title="@string/app_name"
|
|
tools:menu="@menu/main_menu">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/search_input_layout"
|
|
style="?searchInputStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
app:boxStrokeColor="@null"
|
|
app:boxStrokeWidth="0dp"
|
|
app:boxStrokeWidthFocused="0dp"
|
|
app:endIconContentDescription="@string/clear"
|
|
app:endIconDrawable="@drawable/ic_close_24"
|
|
app:endIconMode="custom"
|
|
app:hintEnabled="false"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/search" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.fragment.app.FragmentContainerView
|
|
android:id="@+id/main_nav_host"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
|
<!--app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior"-->
|
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
|
android:id="@+id/bottomNavView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
app:labelVisibilityMode="auto" />
|
|
</awais.instagrabber.customviews.InsetsNotifyingCoordinatorLayout> |