summaryrefslogtreecommitdiff
path: root/altosdroid/res
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-04-27 22:29:45 -0700
committerKeith Packard <keithp@keithp.com>2015-04-27 22:29:45 -0700
commit1cc1900e13d79e0451587439c23bbb062d86cee3 (patch)
treefdc014e8206ea3c336bd22fa678d1b5f23dc2a5a /altosdroid/res
parent7bfa8841b65707d629b425b306ec4cc3acfc156c (diff)
altosdroid: Fix tab label height problems
With a newer android API versions, we can set the indicator to a View instead of just a string. This lets us wrap the desired string in a TextView and show just that for the indicator, making it exactly the right size. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosdroid/res')
-rw-r--r--altosdroid/res/layout/tab_layout.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/altosdroid/res/layout/tab_layout.xml b/altosdroid/res/layout/tab_layout.xml
new file mode 100644
index 00000000..2c21c648
--- /dev/null
+++ b/altosdroid/res/layout/tab_layout.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/customTabLayout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <TextView
+ android:id="@+id/tabLabel"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:textSize="13dp"
+ android:textColor="#ffffff"
+ android:gravity="center_horizontal"
+ android:background="#808080"
+ android:layout_centerVertical="true"
+ android:layout_centerHorizontal="true" />
+</RelativeLayout>