OSDN Git Service

squareタイプをベースレイアウトに移動。
[gokigen/JoggingTimer.git] / wear / src / main / res / layout-round / activity_detail.xml
index af899ad..dcabb53 100644 (file)
@@ -1,31 +1,59 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
+<androidx.wear.widget.drawer.WearableDrawerLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/detail_drawer_layout"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:id="@+id/time_list"
-    android:orientation="vertical"
-    android:scrollbarAlwaysDrawVerticalTrack="true">
-
-    <TextView
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:id="@+id/detail_title_area"
-        android:text="@string/result_detail"
-        android:textAlignment="center"
-        android:clickable="true"
-        android:focusable="true"
-        android:visibility="gone"
-        />
-    <android.support.wear.widget.WearableRecyclerView
-        xmlns:android="http://schemas.android.com/apk/res/android"
-        android:id="@+id/recycler_detail_view"
+    android:background="@color/black"
+    tools:context="net.osdn.gokigen.joggingtimer.recorddetail.DetailActivity">
+    <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:scrollbars="vertical"
-        >
+        android:id="@+id/time_list"
+        android:orientation="vertical"
+        android:scrollbarAlwaysDrawVerticalTrack="true">
 
-    </android.support.wear.widget.WearableRecyclerView>
+        <TextView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:id="@+id/detail_title_area"
+            android:text="@string/result_detail"
+            android:textAlignment="center"
+            android:clickable="true"
+            android:focusable="true"
+            android:visibility="gone"
+            />
+        <androidx.wear.widget.WearableRecyclerView
+            android:id="@+id/recycler_detail_view"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:scrollbars="vertical"
+            android:clipChildren="true"
+            android:clipToPadding="true"
+            android:paddingTop="@dimen/list_top_padding"
+            android:paddingBottom="@dimen/list_bottom_padding"
+            android:paddingStart="@dimen/list_start_padding"
+            android:paddingEnd="@dimen/list_end_padding"
+            >
+        </androidx.wear.widget.WearableRecyclerView>
+    </LinearLayout>
 
+    <androidx.wear.widget.drawer.WearableNavigationDrawerView
+        android:id="@+id/top_navigation_drawer"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:background="@color/grey"
+        android:visibility="visible"
+        app:navigationStyle="singlePage" />
+
+    <androidx.wear.widget.drawer.WearableActionDrawerView
+        android:id="@+id/bottom_action_drawer"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:background="@color/grey"
+        android:visibility="gone"
+        app:actionMenu="@menu/selector_detail" />
 
-</LinearLayout>
+</androidx.wear.widget.drawer.WearableDrawerLayout>