summaryrefslogtreecommitdiff
path: root/main/src/ui/res/layout
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2019-12-12 00:08:38 +0100
committerArne Schwabe <arne@rfc2549.org>2019-12-12 00:08:38 +0100
commitd1de65101a3b19db7badc313e575e38c1ce1b468 (patch)
treeb58b4f1ebb084fb8d7c80cd13d831a9a7eceb2d7 /main/src/ui/res/layout
parent89fd370033222c470a8689649baa259f5e308bf4 (diff)
Make tab bar better on small devices, worse on large ... :/
Diffstat (limited to 'main/src/ui/res/layout')
-rw-r--r--main/src/ui/res/layout/main_activity.xml28
1 files changed, 15 insertions, 13 deletions
diff --git a/main/src/ui/res/layout/main_activity.xml b/main/src/ui/res/layout/main_activity.xml
index d47bacc5..b2fe2251 100644
--- a/main/src/ui/res/layout/main_activity.xml
+++ b/main/src/ui/res/layout/main_activity.xml
@@ -4,25 +4,27 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
<androidx.viewpager.widget.ViewPager
- android:id="@+id/pager"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:id="@+id/pager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
<com.google.android.material.tabs.TabLayout
- style="@style/AppTabLayout"
- android:id="@+id/tab_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="top"
+ android:id="@+id/tab_layout"
+ style="@style/blinkt.tabLayout"
+ app:tabMaxWidth="0dp"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="top"
+ app:tabMode="scrollable"
- />
+ />
</androidx.viewpager.widget.ViewPager>