Why the title of the tabs don't appear?
This is my code and i don't understood why.
Same here, the title doesn't appear.
<?xml version="1.0" encoding="utf-8"?>
<tabs>
<tab
id="@+id/me_item"
icon="@drawable/ic_me"
title="@string/menu_item_me"/>
<tab
id="@+id/my_recipes"
icon="@drawable/ic_recipes"
title="@string/menu_recipes"/>
<tab
id="@+id/mitem_item"
icon="@drawable/ic_items"
title="@string/menu_items"/>
<tab
id="@+id/my_facts"
title="@string/facts_bottombar"
icon="@drawable/ic_facts"/>
</tabs>
I am using version 2.0 as 2.0.2 isn't compatible with Android databinding library (throws ClassCastException error)
Same here

I had the same issue. I used that asset generator that was provided in the tutorial. I forgot to set the padding of the optical icon to set to 0! There are two different paddings to set!
After fixing this, the titles appeared.
I realised this after I set the behavior to shifting. I saw that the selected text was cut off, because of the padding.
**I had the same issue. I used that asset generator that was provided in the tutorial. I forgot to set the padding of the optical icon to set to 0! There are two different paddings to set!
After fixing this, the titles appeared.
I realised this after I set the behavior to shifting. I saw that the selected text was cut off, because of the padding.**
I did this and I continue having the same problem.
I had the same issue.
Just realised that the icon should be 24dp and with no padding...Now it works
Works also for me checking out both paddings = 0 in Android asset studio generator!
Solution is not working with me i have added the image size 24dp and there is zero padding but it is not showing the title of the tab.Please suggest some solution.

Your images have a padding ...make sure they have no padding
On Sun, Sep 18, 2016 at 5:59 PM, UmarBhutta [email protected] wrote:
Solution is not working with me i have added the image size 24dp and there is zero padding but it is not showing the title of the tab.Please suggest some solution. [image: screen shot 2016-09-18 at 6 55 18 pm] https://cloud.githubusercontent.com/assets/909541/18616724/e958f68a-7dd1-11e6-9dd4-a41e45b720d9.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/roughike/BottomBar/issues/474#issuecomment-247852524, or mute the thread https://github.com/notifications/unsubscribe-auth/ANCC_m27UIY6PWaWIFjuvDR3nbwyvPY4ks5qrVHIgaJpZM4JzDBd .
Regards
Pius Christopher (GOODLIFE)
UX Designer and UI Developer (Android and Web)
I have had this problem to, did the generator business inside of Android Studio instead of the suggested page - easier to add the resource IMO. When adding an Image Asset to your Drawable folder, chose Notification Icons instead of the regular Action Bar and Tab Icons - worked fine ! 🗡:D
romannurik.github.io/AndroidAssetStudio/
pass your icons here n make sure 0 padding
Final solution:
- Create icon - AndroidAssetStudio or anywhere
- Paste into Android Studio
- Right click in app
- New / Image Asset
- Select Icon Type: Notification icons
- Select image
- Create and be happy!