Added extension functions to apply insets

This commit is contained in:
Prathamesh More 2021-10-03 19:28:05 +05:30
parent 9f5b9d32ad
commit 03b9e36014
25 changed files with 116 additions and 66 deletions

View file

@ -49,7 +49,6 @@
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
tools:listitem="@layout/item_list" />
<LinearLayout
android:id="@android:id/empty"
android:layout_width="wrap_content"

View file

@ -4,7 +4,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="@null"
android:clickable="true"
android:focusable="true"
tools:ignore="UnusedAttribute">

View file

@ -74,7 +74,7 @@
<Space
android:layout_width="match_parent"
android:layout_height="112dp" />
android:layout_height="@dimen/mini_player_height_expanded" />
</LinearLayout>
</FrameLayout>
</LinearLayout>

View file

@ -8,6 +8,7 @@
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragment_container"
tools:layout="@layout/fragment_home"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -57,10 +58,13 @@
android:id="@+id/bottomNavigationView"
style="@style/Widget.Material3.BottomNavigationView"
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_nav_height"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:elevation="0dp"
android:minHeight="@dimen/bottom_nav_height"
app:itemHorizontalTranslationEnabled="false"
app:itemPaddingBottom="0dp"
app:itemPaddingTop="8dp"
app:menu="@menu/bottom_navigation_main"
tools:layout_height="wrap_content" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>