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>

View file

@ -13,6 +13,12 @@
<dimen name="list_item_image_icon_padding">8dp</dimen>
<dimen name="mini_player_height">56dp</dimen>
<dimen name="cast_mini_player_height">64dp</dimen>
<dimen name="mini_player_height_expanded">120dp</dimen>
<dimen name="mini_cast_player_height_expanded">128dp</dimen>
<dimen name="bottom_nav_height">64dp</dimen>
<dimen name="app_widget_classic_height">96dp</dimen>
<dimen name="app_widget_classic_image_size">96dp</dimen>
@ -34,8 +40,6 @@
<dimen name="now_playing_top_margin">12dp</dimen>
<dimen name="icon_notification_dimen">32dp</dimen>
<dimen name="mini_player_height_expanded">136dp</dimen>
<dimen name="mini_cast_player_height_expanded">144dp</dimen>
<dimen name="toolbar_margin_horizontal">8dp</dimen>
<dimen name="toolbar_height">48dp</dimen>
<dimen name="item_song_height">52dp</dimen>
@ -52,6 +56,4 @@
<dimen name="lyrics_text_size">18sp</dimen>
<dimen name="indicator_radius">10dp</dimen>
<dimen name="lyrics_dialog_radius">20dp</dimen>
<dimen name="cast_mini_player_height">64dp</dimen>
<dimen name="bottom_nav_height">80dp</dimen>
</resources>