-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtab_layout.xml
More file actions
executable file
·81 lines (65 loc) · 2.95 KB
/
tab_layout.xml
File metadata and controls
executable file
·81 lines (65 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.design.widget.TabLayout
app:tabTextAppearance="@style/MyCustomTextAppearance"
android:id="@+id/view"
app:tabBackground="@color/green_dark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabSelectedTextColor="@color/orange_500"
app:tabTextColor="@color/white"
app:tabIndicatorHeight="@dimen/dimen_5dp"
app:tabIndicatorColor="@color/orange_500">
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:text="@string/manage"
android:layout_height="wrap_content" />
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:text="@string/yourtrip"
android:layout_height="wrap_content" />
</android.support.design.widget.TabLayout>
</RelativeLayout>
<style name="MyCustomTextAppearance" parent="TextAppearance.Design.Tab">
<item name="android:textAllCaps">true</item>
<item name="android:textStyle">normal</item>
<item name="android:textSize">@dimen/dimen_12sp</item>
</style>
===============================================================
Candle chart MarketCoin
<android.support.design.widget.TabLayout
android:id="@+id/tab_layout_time"
android:layout_width="match_parent"
android:layout_height="@dimen/dimen_25dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
app:tabBackground="@color/blue_500"
app:tabIndicatorColor="@color/yellow_500"
app:tabIndicatorHeight="@dimen/dimen_1dp"
app:tabSelectedTextColor="@color/white"
app:tabTextAppearance="@style/MyCustomTextAppearance"
app:tabTextColor="@color/black_30">
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1M"/>
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="15M"/>
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="30M"/>
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1D"/>
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1W"/>
</android.support.design.widget.TabLayout>