1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <ScrollView 23 android:id="@+id/scroll" 24 android:layout_width="wrap_content" 25 android:layout_height="wrap_content" 26 android:orientation="vertical" 27 android:background="#000000" 28 android:fillViewport="true"> 29 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="vertical"> 34 35 <TextView 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_marginBottom="2dp" 39 android:text="@string/main_activity_title_text" 40 android:textSize="36sp" 41 android:textColor="#006600"/> 42 43 <Button 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:onClick="showNotification" 47 android:text="@string/show_notification" /> 48 49 <Button 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:onClick="onFinishActivity" 53 android:text="@string/finish_activity" /> 54 55 <Button 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:id="@+id/start_timer_button" 59 android:onClick="onStartTimer" 60 android:text="@string/start_timer" /> 61 62 <android.support.wearable.view.DelayedConfirmationView 63 xmlns:app="http://schemas.android.com/apk/res-auto" 64 android:id="@+id/timer" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_gravity="center" 68 android:src="@drawable/ic_launcher" 69 app:circle_color="@color/blue" 70 app:circle_padding="@dimen/circle_padding" 71 app:circle_border_width="@dimen/circle_border_normal_width" 72 app:circle_border_color="@color/white" 73 app:circle_radius="@dimen/circle_radius"/> 74 75 </LinearLayout> 76 77 </ScrollView> 78 79 <android.support.wearable.view.DismissOverlayView 80 android:id="@+id/dismiss_overlay" 81 android:layout_width="match_parent" 82 android:layout_height="match_parent" /> 83 84 </FrameLayout> 85