Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

TabLayout

Yanndroid edited this page Jan 30, 2022 · 3 revisions

de.dlyt.yanndroid.oneui.widget.TabLayout

Samsung's TabLayout.

<de.dlyt.yanndroid.oneui.widget.TabLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

If you want to set it up with a ViewPager you'll have to use the ViewPager bundled in the library, the usage is the same as Google's TabLayout.

Methods

Add a custom ImageButton like in Samsung's Gallery (as seen in screenshot).

public void addTabCustomButton(Drawable icon, CustomButtonClickListener listener)

Set the style to:

public void seslSetSubTabStyle()

Show a badge.

public void seslShowDotBadge(int index, boolean show)

public void seslShowBadge(int index, boolean show, String text)
public void seslShowBadge(int index, boolean show, String text, String contentDescription)
Clone this wiki locally