Bottombar: Is is possible to change the textsize of the items ?

Created on 5 Sep 2016  路  2Comments  路  Source: roughike/BottomBar

Thanks a lot for the work!

Most helpful comment

Found out it is possible!

You have to use setTextAppearance()

in your Activity:

mBottomBar.setTextAppearance(R.style.bottomBarTextView);

then define the corresponding style in styles.xml

    <style name="bottomBarTextView" parent="@android:style/TextAppearance.Widget.TextView">
        <item name="android:textSize">10dp</item>
    </style>

All 2 comments

Found out it is possible!

You have to use setTextAppearance()

in your Activity:

mBottomBar.setTextAppearance(R.style.bottomBarTextView);

then define the corresponding style in styles.xml

    <style name="bottomBarTextView" parent="@android:style/TextAppearance.Widget.TextView">
        <item name="android:textSize">10dp</item>
    </style>

I think you can set it in the XML too if you want - see https://github.com/roughike/BottomBar#for-the-bottombar (the bb_titleTextAppearance).

Was this page helpful?
0 / 5 - 0 ratings