-1

i am having a hard time increasing the size of the icons of my bottom nav bar in android studio. is there any way i can increase the size of [this]. because it's extremely small i had to zoom in every time i try to run it. thanks in advance! 1

bottom_nav_menu.xml

<item android:title="Home"
    android:icon="@drawable/ic_homebtn_01"
    android:id="@+id/homebtn"/>
<item android:title="Courses"
    android:icon="@drawable/ic_coursesbtn_01"
    android:id="@+id/coursebtn"/>
<item android:title="Challenges"
    android:icon="@drawable/ic_challengesbtn_01"
    android:id="@+id/challengesbtn"/>
<item android:title="Flashcards"
    android:icon="@drawable/ic_flashcardsbtn_01"
    android:id="@+id/flashcardsbtn"/>
<item android:title="Dictionary"
    android:icon="@drawable/ic_dictionarybtn_01"
    android:id="@+id/dictionarybtn"/>

activity_main.xml

<com.google.android.material.bottomnavigation.BottomNavigationView
    android:id="@+id/bottomNavigationView"
    android:layout_width="411dp"
    android:layout_height="95dp"
    android:background="#40B191"
    android:theme="@style/Widget.BottomNavigationView"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="1.0"
    app:layout_constraintStart_toStartOf="parent"
    app:menu="@menu/bottom_nav_menu" />
Ratilal Chopda
  • 4,162
  • 4
  • 18
  • 31

1 Answers1

0

You can try adding this with your preferred value

    app:itemIconSize
  • hi! thanks for this, it now works, however, the text is now overlapping with the icon.. and i can't seem to arrange it, i have already used the `56dp` but it does not work – koocuddles Aug 18 '22 at 12:12