skip to Main Content

Android Studio – How to add a TabItem by activity?

I need the TabLayout to have an "x" number of tabs, which can vary according to the user's data that is already in the database My xml: enter code here<com.google.android.material.tabs.TabLayout android:id="@+id/select_bar" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:tabContentStart="32dp" app:tabMode="scrollable"> <com.google.android.material.tabs.TabItem android:id="@+id/posto1"…

VIEW QUESTION
Back To Top
Search