1 year ago

#77214

test-img

Norman Daniel Vicente

how can i add this gray line in the Tablayout? Android

I need to add a gray line like this at the top of the TabLayout

Actual code:


            <com.google.android.material.tabs.TabLayout
                android:id="@+id/tl_tabs"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/tab_indicator_height"
                android:background="?attr/colorBackground"
                app:isVisible="@{viewModel.shouldShowTabLayout}"
                app:tabIndicatorFullWidth="false"
                app:tabIndicatorHeight="@dimen/tab_indicator_height"
                app:tabMode="scrollable"
                app:tabPaddingStart="@dimen/margin_side"
                app:tabSelectedTextColor="?attr/colorOnSurface"
                app:tabTextAppearance="@style/Body1" />
```

android

android-studio

android-layout

material-ui

0 Answers

Your Answer

Accepted video resources