pull/49/head
kunfei 5 years ago
parent 25e92bd370
commit 270b78f65e
  1. 2
      app/src/main/res/layout/fragment_bookshelf.xml
  2. 5
      app/src/main/res/layout/view_tab_layout.xml
  3. 9
      app/src/main/res/layout/view_tab_layout_min.xml

@ -11,7 +11,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:attachToActivity="false" app:attachToActivity="false"
app:title="@string/bookshelf" app:title="@string/bookshelf"
app:contentLayout="@layout/view_tab_layout" app:contentLayout="@layout/view_tab_layout_min"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<androidx.viewpager2.widget.ViewPager2 <androidx.viewpager2.widget.ViewPager2

@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.tabs.TabLayout xmlns:android="http://schemas.android.com/apk/res/android" <com.google.android.material.tabs.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/tab_layout" android:id="@+id/tab_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:theme="?attr/actionBarStyle" android:theme="?attr/actionBarStyle" />
app:tabMaxWidth="100dp"
app:tabMinWidth="10dp" />

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.tabs.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="?attr/actionBarStyle"
app:tabMaxWidth="100dp"
app:tabMinWidth="10dp" />
Loading…
Cancel
Save