Skip to content

Badge does not show in horizontal orientation #16

Description

@N3-M3-S1S

Hi.
I use this library in my application (https://github.com/N3-M3-S1S/green_dictionary) and found one strange behavior: i start application and there are no items in both lists (fresh install, for example, or after i clear both lists) , then i change orientation to landscape and add an item to the list and update badge's text, but a badge does not appear, however i can see how an icon moves a bit. If i do same things in portrait orientation everything works fine.
In short: if i update a badge's text first time in landscape orientation the badge does not appear, but icon moves a bit.
I also tried to set app:tabGravity="fill" and app:tabMode="fixed" and a badge appeared but its animation was kind of bugged.

Class where i update badges' text: https://github.com/N3-M3-S1S/green_dictionary/blob/master/app/src/main/java/com/rektapps/greendictionary/view/MainActivity.java

Layout file where i use badgedtablayout: https://github.com/N3-M3-S1S/green_dictionary/blob/master/app/src/main/res/layout/main_view.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions