|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <hh.dejsem.TitleBar |
|
3 xmlns:android="http://schemas.android.com/apk/res/android" |
|
4 xmlns:app="http://schemas.android.com/apk/res-auto" |
|
5 android:layout_width="match_parent" |
|
6 android:layout_height="wrap_content" |
|
7 android:background="@color/title_bg" |
|
8 > |
|
9 |
|
10 <View |
|
11 android:id="@+id/title_height" |
|
12 android:layout_width="1dp" |
|
13 android:layout_height="24dp" |
|
14 android:layout_alignParentLeft="true" |
|
15 android:layout_alignParentTop="true" |
|
16 /> |
|
17 |
|
18 <LinearLayout |
|
19 android:id="@+id/title_left" |
|
20 android:layout_width="wrap_content" |
|
21 android:layout_height="wrap_content" |
|
22 android:layout_alignParentLeft="true" |
|
23 android:layout_alignParentTop="true" |
|
24 android:layout_alignBottom="@id/title_height" |
|
25 android:gravity="center" |
|
26 android:orientation="horizontal" |
|
27 > |
|
28 |
|
29 <TextView |
|
30 android:id="@+id/title_left_text" |
|
31 android:layout_width="wrap_content" |
|
32 android:layout_height="wrap_content" |
|
33 android:paddingLeft="6dp" |
|
34 android:paddingRight="6dp" |
|
35 android:ellipsize="end" |
|
36 android:singleLine="true" |
|
37 android:text="@string/app_name" |
|
38 /> |
|
39 |
|
40 <ImageView |
|
41 android:id="@+id/pending_icon" |
|
42 android:layout_width="18dp" |
|
43 android:layout_height="18dp" |
|
44 android:background="@drawable/pending" |
|
45 android:visibility="invisible" |
|
46 /> |
|
47 |
|
48 <TextView |
|
49 android:id="@+id/pending_progress" |
|
50 android:layout_width="wrap_content" |
|
51 android:layout_height="wrap_content" |
|
52 android:gravity="left" |
|
53 android:paddingLeft="6dp" |
|
54 android:paddingRight="6dp" |
|
55 android:ellipsize="end" |
|
56 android:singleLine="true" |
|
57 android:textColor="@color/dir_name_color" |
|
58 android:visibility="invisible" |
|
59 /> |
|
60 |
|
61 </LinearLayout> |
|
62 |
|
63 <LinearLayout |
|
64 android:id="@+id/title_right" |
|
65 android:layout_width="wrap_content" |
|
66 android:layout_height="wrap_content" |
|
67 android:layout_alignParentRight="true" |
|
68 android:layout_alignParentTop="true" |
|
69 android:layout_alignBottom="@id/title_height" |
|
70 android:gravity="center" |
|
71 android:orientation="horizontal" |
|
72 > |
|
73 |
|
74 <TextView |
|
75 android:id="@+id/channel" |
|
76 android:layout_width="wrap_content" |
|
77 android:layout_height="wrap_content" |
|
78 android:paddingLeft="6dp" |
|
79 android:paddingRight="6dp" |
|
80 android:gravity="right" |
|
81 android:ellipsize="end" |
|
82 android:singleLine="true" |
|
83 android:textColor="@color/blue_font" |
|
84 /> |
|
85 |
|
86 <include layout="@layout/v_border_thin" /> |
|
87 |
|
88 <TextView |
|
89 android:id="@+id/title_right_text" |
|
90 android:layout_width="wrap_content" |
|
91 android:layout_height="wrap_content" |
|
92 android:paddingLeft="6dp" |
|
93 android:paddingRight="6dp" |
|
94 android:gravity="right" |
|
95 android:ellipsize="end" |
|
96 android:singleLine="true" |
|
97 android:textColor="@color/dir_name_color" |
|
98 /> |
|
99 |
|
100 <include layout="@layout/v_border_thin" |
|
101 android:visibility="gone" |
|
102 /> |
|
103 |
|
104 <!--<hh.dejsem.FlatButton |
|
105 android:id="@+id/last_mile_button" |
|
106 android:layout_width="wrap_content" |
|
107 android:layout_height="wrap_content" |
|
108 app:text_padding="2dp" |
|
109 app:text_paddingTop="0dp" |
|
110 android:singleLine="true" |
|
111 android:text="throughput" |
|
112 android:visibility="gone" |
|
113 />--> |
|
114 |
|
115 </LinearLayout> |
|
116 |
|
117 </hh.dejsem.TitleBar> |