Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit 9b6aa46

Browse files
committed
New UI: Correct tab bar height & fix background
Signed-off-by: Fung <fython@163.com>
1 parent e16062f commit 9b6aa46

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

mobile/src/main/res/layout/activity_main.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
<android.support.design.widget.AppBarLayout
1010
android:layout_width="match_parent"
11-
android:layout_height="wrap_content">
11+
android:layout_height="wrap_content"
12+
android:background="?attr/colorPrimary">
1213

1314
<android.support.v7.widget.CardView
1415
android:id="@+id/toolbar_box"
@@ -55,9 +56,8 @@
5556

5657
<android.support.design.widget.TabLayout
5758
android:layout_width="match_parent"
58-
android:layout_height="?attr/actionBarSize"
59+
android:layout_height="@dimen/tab_bar_height"
5960
android:id="@+id/tab_layout"
60-
android:background="?attr/colorPrimary"
6161
app:layout_scrollFlags="snap"
6262
app:tabTextColor="@color/grey_100"
6363
app:tabSelectedTextColor="@android:color/white"

mobile/src/main/res/values/dimens.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<resources>
33

44
<dimen name="toolbar_size">56dp</dimen>
5+
<dimen name="tab_bar_height">48dp</dimen>
56

67
<!-- Add package -->
78
<dimen name="parallax_app_bar_size">240dp</dimen>

0 commit comments

Comments
 (0)