BottomBar icon indicating copy to clipboard operation
BottomBar copied to clipboard

Why the title of the tabs don't appear?

Open daleskagm opened this issue 10 years ago • 12 comments

This is my code and i don't understood why.

daleskagm avatar Sep 01 '16 19:09 daleskagm

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)

Chikrix avatar Sep 03 '16 19:09 Chikrix

Same here screenshot from 2016-09-04 18-21-19

7fELF avatar Sep 04 '16 16:09 7fELF

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.

AppyxDaniel avatar Sep 05 '16 09:09 AppyxDaniel

**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.

daleskagm avatar Sep 05 '16 15:09 daleskagm

I had the same issue.

JesseWo avatar Sep 12 '16 13:09 JesseWo

Just realised that the icon should be 24dp and with no padding...Now it works

goodlifechris avatar Sep 14 '16 13:09 goodlifechris

Works also for me checking out both paddings = 0 in Android asset studio generator!

rickytribbia avatar Sep 17 '16 19:09 rickytribbia

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. screen shot 2016-09-18 at 6 55 18 pm

UmarBhutta avatar Sep 18 '16 14:09 UmarBhutta

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)

goodlifechris avatar Sep 20 '16 00:09 goodlifechris

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

Zoomagic avatar Oct 25 '16 14:10 Zoomagic

romannurik.github.io/AndroidAssetStudio/

pass your icons here n make sure 0 padding

goodlifechris avatar Oct 26 '16 06:10 goodlifechris

Final solution:

  1. Create icon - AndroidAssetStudio or anywhere
  2. Paste into Android Studio
  3. Right click in app
  4. New / Image Asset
  5. Select Icon Type: Notification icons
  6. Select image
  7. Create and be happy!

Pierry avatar Nov 19 '16 20:11 Pierry