OSDN Git Service

・上部エリアのサイズ(高さ)を2dp拡大。
[gokigen/A01c.git] / wear / src / main / res / layout-round / activity_main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <android.support.wearable.view.BoxInsetLayout
3     xmlns:android="http://schemas.android.com/apk/res/android"
4     xmlns:app="http://schemas.android.com/apk/res-auto"
5     xmlns:tools="http://schemas.android.com/tools"
6     android:layout_width="match_parent"
7     android:layout_height="match_parent"
8     tools:context="jp.sfjp.gokigen.a01c.MainActivity"
9     tools:deviceIds="wear_round">
10     <FrameLayout
11         android:layout_width="match_parent"
12         android:layout_height="match_parent"
13         android:padding="1dp"
14         app:layout_box="all">
15
16         <jp.sfjp.gokigen.a01c.liveview.CameraLiveImageView
17             android:id="@+id/liveview"
18             android:layout_width="match_parent"
19             android:layout_height="match_parent"
20             android:gravity="center"
21         />
22
23         <LinearLayout
24             android:layout_width="match_parent"
25             android:layout_height="match_parent"
26             android:orientation="horizontal"
27             android:gravity="top"
28             >
29
30             <TextView
31                 android:id="@+id/text_1"
32                 android:layout_width="match_parent"
33                 android:layout_height="18dp"
34                 android:layout_weight="1"
35                 android:text="@string/app_name"
36                 android:textColor="@android:color/white"
37                 android:clickable="true"
38                 android:textSize="12sp" />
39
40             <TextView
41                 android:id="@+id/text_2"
42                 android:layout_width="match_parent"
43                 android:layout_height="18dp"
44                 android:layout_weight="1"
45                 android:text="@string/text_message_blank"
46                 android:textColor="@android:color/white"
47                 android:clickable="true"
48                 android:textSize="12sp" />
49
50             <TextView
51                 android:id="@+id/text_3"
52                 android:layout_width="match_parent"
53                 android:layout_height="18dp"
54                 android:layout_weight="1"
55                 android:text="@string/text_message_blank"
56                 android:textColor="@android:color/white"
57                 android:clickable="true"
58                 android:textSize="12sp" />
59
60             <TextView
61                 android:id="@+id/text_4"
62                 android:layout_width="match_parent"
63                 android:layout_height="18dp"
64                 android:layout_weight="1"
65                 android:text="@string/text_message_blank"
66                 android:textColor="@android:color/holo_orange_light"
67                 android:clickable="true"
68                 android:textSize="12sp" />
69         </LinearLayout>
70
71         <LinearLayout
72             android:layout_width="match_parent"
73             android:layout_height="match_parent"
74             android:orientation="horizontal">
75             <ImageButton
76                 android:background="@null"
77                 android:id="@+id/btn_1"
78                 android:layout_gravity="bottom"
79                 android:layout_height="15dp"
80                 android:layout_width="25dp"
81                 android:clickable="true"
82                 android:contentDescription="@string/description_control_button"
83                 android:src="@drawable/btn_ic_grid_off" />
84             <ImageButton
85                 android:background="@null"
86                 android:id="@+id/btn_2"
87                 android:layout_gravity="bottom"
88                 android:layout_height="15dp"
89                 android:layout_width="25dp"
90                 android:clickable="true"
91                 android:contentDescription="@string/description_control_button"
92                 android:src="@drawable/btn_ic_remove_circle_outline" />
93             <ImageButton
94                 android:background="@null"
95                 android:id="@+id/btn_3"
96                 android:layout_gravity="bottom"
97                 android:layout_height="15dp"
98                 android:layout_width="25dp"
99                 android:clickable="true"
100                 android:contentDescription="@string/description_control_button"
101                 android:src="@drawable/btn_ic_add_circle_outline" />
102             <ImageButton
103                 android:background="@null"
104                 android:id="@+id/btn_4"
105                 android:layout_gravity="bottom"
106                 android:layout_height="15dp"
107                 android:layout_width="25dp"
108                 android:clickable="true"
109                 android:contentDescription="@string/description_control_button"
110                 android:src="@drawable/btn_ic_remove_circle" />
111             <ImageButton
112                 android:id="@+id/btn_5"
113                 android:layout_width="25dp"
114                 android:layout_height="15dp"
115                 android:clickable="true"
116                 android:layout_gravity="bottom"
117                 android:background="@null"
118                 android:contentDescription="@string/description_control_button"
119                 android:src="@drawable/btn_ic_add_circle" />
120             <ImageButton
121                 android:id="@+id/btn_6"
122                 android:layout_width="25dp"
123                 android:layout_height="15dp"
124                 android:clickable="true"
125                 android:layout_gravity="bottom"
126                 android:background="@null"
127                 android:contentDescription="@string/description_control_button"
128                 android:src="@drawable/btn_ic_camera_alt" />
129         </LinearLayout>
130     </FrameLayout>
131
132 </android.support.wearable.view.BoxInsetLayout>