Home | History | Annotate | Download | only in layout-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2012 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 <LinearLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="wrap_content"
     20     android:baselineAligned="false"
     21     android:orientation="horizontal"
     22     android:paddingBottom="@dimen/fab_height">
     23 
     24     <!-- This FrameLayout reserves half the screen for the stopwatch. -->
     25     <FrameLayout
     26         android:layout_width="0dp"
     27         android:layout_height="match_parent"
     28         android:layout_weight="1">
     29 
     30         <!-- This FrameLayout draws the stopwatch centered within its half of the screen. -->
     31         <FrameLayout
     32             android:layout_width="@dimen/circle_size"
     33             android:layout_height="@dimen/circle_size"
     34             android:layout_gravity="center"
     35             android:gravity="center"
     36             android:padding="16dp">
     37 
     38             <com.android.deskclock.timer.CountingTimerView
     39                 android:id="@+id/stopwatch_time_text"
     40                 android:layout_width="match_parent"
     41                 android:layout_height="match_parent" />
     42 
     43             <com.android.deskclock.stopwatch.StopwatchCircleView
     44                 android:id="@+id/stopwatch_time"
     45                 android:layout_width="match_parent"
     46                 android:layout_height="match_parent"
     47                 android:background="@null" />
     48         </FrameLayout>
     49 
     50     </FrameLayout>
     51 
     52     <android.support.v7.widget.RecyclerView
     53         android:id="@+id/laps_list"
     54         android:layout_width="0dp"
     55         android:layout_height="wrap_content"
     56         android:layout_gravity="center"
     57         android:layout_weight="1" />
     58 
     59 </LinearLayout>