All Products
Search
Document Center

Mobile Platform as a Service:TabBar item component

Last Updated:Jul 21, 2023

AUTabBarItem is used to provide TabBar items in the mPaaS framework.

Dependency

For how to add dependency, follow the relevant instructions in Quick Start.

Custom properties

Property

Description

Type

topIconSid

The icon.

Reference

topIconSize

The icon size.

Dimension

textColor

The text color.

Color, Reference

Code sample

Here is the sample of using the component in XML.

<com.alipay.mobile.antui.bar.AUTabBarItem
        android:id="@+id/tab_2"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="Koubei"
        android:textSize="@dimen/AU_ICONSIZE2"
        app:topIconSize="@dimen/AU_ICONSIZE2"
        app:topIconSid="@drawable/tab_bar_alipay"
        app:textColor="@color/tabbar_text_color1"/>