Skip to content

Commit

Permalink
More bottom nav updates
Browse files Browse the repository at this point in the history
  • Loading branch information
premnirmal committed Jul 12, 2022
1 parent 34eb82c commit dd03e0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 2 additions & 4 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/m3_bottom_nav_min_height"
android:layout_marginBottom="?actionBarSize"
/>

<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="?attr/actionBarSize"
android:layout_gravity="bottom"
app:elevation="4dp"
app:itemIconTint="@drawable/bottom_nav_icon_tint"
app:itemTextColor="@drawable/bottom_nav_icon_tint"
app:layout_behavior="com.github.premnirmal.ticker.ui.BottomNavigationBehavior"
app:menu="@menu/menu_bottom_nav"
/>
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@

<style name="BottomNavigationView" parent="Widget.Material3.BottomNavigationView">
<item name="itemActiveIndicatorStyle">@style/BottomNavigationView.ActiveIndicator</item>
<item name="android:height">?attr/actionBarSize</item>
<item name="android:minHeight">?attr/actionBarSize</item>
<item name="itemIconTint">@drawable/bottom_nav_icon_tint</item>
<item name="itemTextColor">@drawable/bottom_nav_icon_tint</item>
<item name="itemPaddingTop">8dp</item>
<item name="itemPaddingBottom">8dp</item>
</style>
<style name="BottomNavigationView.ActiveIndicator" parent="Widget.Material3.BottomNavigationView.ActiveIndicator">
<item name="android:color">@color/transparent</item>
Expand Down
4 changes: 2 additions & 2 deletions app/version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# this file is purely for f-droid because it cannot infer the version name/code from the git tag
versionName=3.9.795
versionCode=300900795
versionName=3.9.796
versionCode=300900796

0 comments on commit dd03e0e

Please sign in to comment.