From 42734c4f5712ce37a54ddd896fb1d501371959e7 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Thu, 3 Aug 2017 16:24:14 +0200 Subject: [PATCH] improve layout of AccountActivity tabs --- app/src/main/res/color/account_tab_font_color.xml | 5 +++++ app/src/main/res/layout/activity_account.xml | 3 ++- app/src/main/res/layout/tab_account.xml | 15 ++++++++------- 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 app/src/main/res/color/account_tab_font_color.xml diff --git a/app/src/main/res/color/account_tab_font_color.xml b/app/src/main/res/color/account_tab_font_color.xml new file mode 100644 index 000000000..accc21cbc --- /dev/null +++ b/app/src/main/res/color/account_tab_font_color.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_account.xml b/app/src/main/res/layout/activity_account.xml index ee853c1e0..8abfa16c5 100644 --- a/app/src/main/res/layout/activity_account.xml +++ b/app/src/main/res/layout/activity_account.xml @@ -150,7 +150,8 @@ android:id="@+id/tab_layout" android:layout_width="match_parent" android:layout_height="wrap_content" - app:tabBackground="?android:colorBackground"> + app:tabBackground="?android:colorBackground" + app:tabGravity="fill"> - + android:layout_centerHorizontal="true" + android:textColor="@color/account_tab_font_color" + android:textSize="12sp" /> \ No newline at end of file