Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2013 The Android Open Source Project
      4   ~
      5   ~ Licensed under the Apache License, Version 2.0 (the "License");
      6   ~ you may not use this file except in compliance with the License.
      7   ~ You may obtain a copy of the License at
      8   ~
      9   ~      http://www.apache.org/licenses/LICENSE-2.0
     10   ~
     11   ~ Unless required by applicable law or agreed to in writing, software
     12   ~ distributed under the License is distributed on an "AS IS" BASIS,
     13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   ~ See the License for the specific language governing permissions and
     15   ~ limitations under the License
     16   -->
     17   <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18       android:id="@+id/time_display"
     19       android:layout_width="match_parent"
     20       android:layout_height="match_parent"
     21       android:layout_gravity="center"
     22       android:background="@color/white" >
     23         <View
     24             android:id="@+id/center_view"
     25             android:layout_width="1dp"
     26             android:layout_height="1dp"
     27             android:background="#00000000"
     28             android:layout_centerInParent="true"
     29             android:visibility="invisible"
     30             android:importantForAccessibility="no" />
     31 
     32         <TextView
     33             android:id="@+id/hour_space"
     34             android:layout_width="wrap_content"
     35             android:layout_height="wrap_content"
     36             android:text="@string/time_placeholder"
     37             android:layout_toLeftOf="@+id/separator"
     38             android:layout_centerVertical="true"
     39             android:visibility="invisible"
     40             style="@style/time_label"
     41             android:importantForAccessibility="no" />
     42         <FrameLayout
     43             android:layout_width="0dp"
     44             android:layout_height="match_parent"
     45             android:layout_alignRight="@+id/hour_space"
     46             android:layout_alignLeft="@+id/hour_space"
     47             android:layout_marginLeft="@dimen/extra_time_label_margin"
     48             android:layout_marginRight="@dimen/extra_time_label_margin"
     49             android:layout_centerVertical="true" >
     50             <com.android.datetimepicker.AccessibleTextView
     51                 android:id="@+id/hours"
     52                 android:layout_width="wrap_content"
     53                 android:layout_height="wrap_content"
     54                 android:text="@string/time_placeholder"
     55                 android:textColor="@color/blue"
     56                 android:gravity="center_horizontal"
     57                 android:layout_gravity="center"
     58                 style="@style/time_label" />
     59             </FrameLayout>
     60 
     61         <TextView
     62             android:id="@+id/separator"
     63             android:layout_width="wrap_content"
     64             android:layout_height="wrap_content"
     65             android:text="@string/time_separator"
     66             android:paddingLeft="@dimen/separator_padding"
     67             android:paddingRight="@dimen/separator_padding"
     68             android:layout_alignRight="@+id/center_view"
     69             android:layout_centerVertical="true"
     70             style="@style/time_label"
     71             android:importantForAccessibility="no" />
     72 
     73         <TextView
     74             android:id="@+id/minutes_space"
     75             android:layout_width="wrap_content"
     76             android:layout_height="wrap_content"
     77             android:text="@string/time_placeholder"
     78             android:layout_toRightOf="@+id/separator"
     79             android:layout_centerVertical="true"
     80             android:visibility="invisible"
     81             style="@style/time_label"
     82             android:importantForAccessibility="no" />
     83         <FrameLayout
     84             android:layout_width="0dp"
     85             android:layout_height="match_parent"
     86             android:layout_alignRight="@+id/minutes_space"
     87             android:layout_alignLeft="@+id/minutes_space"
     88             android:layout_marginLeft="@dimen/extra_time_label_margin"
     89             android:layout_marginRight="@dimen/extra_time_label_margin"
     90             android:layout_centerVertical="true" >
     91             <com.android.datetimepicker.AccessibleTextView
     92                 android:id="@+id/minutes"
     93                 style="@style/time_label"
     94                 android:layout_width="wrap_content"
     95                 android:layout_height="wrap_content"
     96                 android:gravity="center_horizontal"
     97                 android:text="@string/time_placeholder"
     98                 android:layout_gravity="center" />
     99         </FrameLayout>
    100         <com.android.datetimepicker.AccessibleTextView
    101             android:id="@+id/ampm_hitspace"
    102             android:layout_width="@dimen/ampm_label_size"
    103             android:layout_height="wrap_content"
    104             android:layout_alignParentTop="true"
    105             android:layout_alignParentBottom="true"
    106             android:layout_alignLeft="@+id/ampm_label"
    107             android:layout_alignRight="@+id/ampm_label" />
    108         <TextView
    109             android:id="@+id/ampm_label"
    110             android:layout_width="wrap_content"
    111             android:layout_height="wrap_content"
    112             android:text="@string/time_placeholder"
    113             android:paddingLeft="@dimen/ampm_left_padding"
    114             android:paddingRight="@dimen/ampm_left_padding"
    115             android:layout_toRightOf="@+id/minutes_space"
    116             android:layout_alignBaseline="@+id/separator"
    117             style="@style/ampm_label"
    118             android:importantForAccessibility="no" />
    119   </RelativeLayout>
    120