OSDN Git Service

364173b6cef6c11b7a318c05191fbd463432b12d
[gokigen/JoggingTimer.git] / wear / src / main / res / layout / activity_list.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <androidx.wear.widget.drawer.WearableDrawerLayout
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:id="@+id/list_drawer_layout"
7     android:layout_width="match_parent"
8     android:layout_height="match_parent"
9     android:background="@color/black"
10     android:layoutMode="clipBounds"
11     tools:context="net.osdn.gokigen.joggingtimer.recordlist.ListActivity">
12
13     <LinearLayout
14         android:layout_width="match_parent"
15         android:layout_height="match_parent"
16         android:id="@+id/time_list"
17         android:orientation="vertical"
18         android:scrollbarAlwaysDrawVerticalTrack="true">
19
20         <TextClock
21             android:id="@+id/list_time_area"
22             android:layout_width="match_parent"
23             android:layout_height="wrap_content"
24             android:layout_gravity="bottom"
25             android:text="@string/clock_dummy"
26             android:format24Hour="HH:mm"
27             android:format12Hour="HH:mm"
28             android:background="@color/background_color"
29             android:textColor="@android:color/white"
30             android:textSize="14sp"
31             android:minHeight="24dp"
32             android:visibility="visible"
33             android:gravity="center"
34             />
35         <TextView
36             android:layout_width="match_parent"
37             android:layout_height="wrap_content"
38             android:id="@+id/list_title_area"
39             android:text="@string/result_list"
40             android:textAlignment="center"
41             android:clickable="true"
42             android:focusable="true"
43             android:visibility="visible"
44             />
45         <androidx.wear.widget.WearableRecyclerView
46             android:id="@+id/recycler_list_view"
47             android:layout_width="match_parent"
48             android:layout_height="match_parent"
49             android:clipChildren="true"
50             android:clipToPadding="true"
51             android:paddingTop="@dimen/list_top_padding"
52             android:paddingBottom="@dimen/list_bottom_padding"
53             android:paddingStart="@dimen/list_start_padding"
54             android:paddingEnd="@dimen/list_end_padding"
55             android:scrollbars="vertical"
56             >
57         </androidx.wear.widget.WearableRecyclerView>
58
59     </LinearLayout>
60
61     <androidx.wear.widget.drawer.WearableNavigationDrawerView
62         android:id="@+id/list_top_navigation_drawer"
63         android:layout_width="match_parent"
64         android:layout_height="match_parent"
65         android:background="@color/grey"
66         android:visibility="visible"
67         app:navigationStyle="singlePage" />
68
69
70 </androidx.wear.widget.drawer.WearableDrawerLayout>