Created
October 31, 2022 15:43
-
-
Save erdalkaymak/3592d93d69c69d7c7cfaeca87e36ce35 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <layout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools"> | |
| <data> | |
| </data> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical" | |
| tools:context="ui.course.chapter.ViewPagerChapterFragment"> | |
| <FrameLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="90dp" | |
| android:clipToPadding="false" | |
| android:padding="32dp"> | |
| <View | |
| android:id="@+id/indicator" | |
| android:layout_width="0dp" | |
| android:layout_height="50dp" | |
| android:background="@color/black" /> | |
| <com.google.android.material.tabs.TabLayout | |
| android:id="@+id/tabLayout" | |
| android:layout_width="wrap_content" | |
| android:layout_height="50dp" | |
| android:layout_gravity="center" | |
| android:layout_margin="2dp" | |
| android:background="@drawable/chapter_pager_container_style" | |
| app:tabGravity="center" | |
| app:tabIndicatorColor="@color/colorDiscuss1" | |
| app:tabIndicatorFullWidth="false" | |
| app:tabMode="fixed" | |
| app:tabRippleColor="@color/colorDiscuss1" | |
| app:tabSelectedTextColor="@color/black" | |
| app:tabTextColor="@color/colorAccent" /> | |
| </FrameLayout> | |
| <androidx.viewpager2.widget.ViewPager2 | |
| android:id="@+id/viewPager2" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:layout_constraintHorizontal_bias="0.5" | |
| app:layout_constraintStart_toStartOf="parent" | |
| app:layout_constraintTop_toTopOf="parent" /> | |
| </LinearLayout> | |
| </layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment