Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright 2013 The Chromium Authors. All rights reserved.
      3 
      4      Use of this source code is governed by a BSD-style license that can be
      5      found in the LICENSE file.
      6 -->
      7 
      8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      9     android:layout_width="wrap_content"
     10     android:layout_height="wrap_content"
     11     android:layout_gravity="center_vertical"
     12     android:orientation="vertical"
     13     android:gravity="start">
     14 
     15     <TextView
     16         android:layout_width="wrap_content"
     17         android:layout_height="wrap_content"
     18         android:text="@string/time_picker_dialog_title"
     19     android:textSize="20sp"
     20     android:paddingStart="5dp"
     21     android:paddingEnd="5dp"
     22     android:paddingBottom="5dp"
     23     android:paddingTop="5dp"
     24     android:gravity="start"
     25     android:textColor="#33B5E5"
     26     />
     27 
     28     <View
     29     android:layout_width="match_parent"
     30     android:layout_height="2dp"
     31     android:paddingBottom="5dp"
     32     android:paddingTop="5dp"
     33     android:background="#33B5E5"/>
     34 
     35     <LinearLayout
     36     android:layout_width="wrap_content"
     37     android:layout_height="wrap_content"
     38     android:layout_gravity="center_horizontal"
     39     android:orientation="horizontal"
     40     android:gravity="center">
     41 
     42     <NumberPicker
     43         android:id="@+id/hour"
     44         android:layout_width="0dp"
     45         android:layout_weight=".2"
     46         android:textSize="12sp"
     47         android:layout_height="wrap_content"
     48         android:layout_marginStart="4dp"
     49         android:layout_marginEnd="4dp"
     50         android:focusable="true"
     51         android:focusableInTouchMode="true"
     52         android:contentDescription="@string/accessibility_time_picker_hour"
     53         />
     54     <TextView
     55         android:layout_width="wrap_content"
     56         android:textSize="12sp"
     57         android:layout_height="wrap_content"
     58         android:text="@string/time_picker_dialog_hour_minute_separator"
     59         />
     60     <NumberPicker
     61         android:id="@+id/minute"
     62         android:layout_width="0dp"
     63         android:layout_weight=".2"
     64         android:textSize="12sp"
     65         android:layout_height="wrap_content"
     66         android:layout_marginStart="4dp"
     67         android:layout_marginEnd="4dp"
     68         android:focusable="true"
     69         android:focusableInTouchMode="true"
     70         android:contentDescription="@string/accessibility_time_picker_minute"
     71         />
     72     <TextView
     73         android:id="@+id/second_colon"
     74         android:layout_width="wrap_content"
     75         android:textSize="12sp"
     76         android:layout_height="wrap_content"
     77         android:text="@string/time_picker_dialog_minute_second_separator"	    />
     78     <NumberPicker
     79         android:id="@+id/second"
     80         android:layout_width="0dp"
     81         android:layout_weight=".2"
     82         android:textSize="12sp"
     83         android:layout_height="wrap_content"
     84         android:layout_marginStart="4dp"
     85         android:layout_marginEnd="4dp"
     86         android:focusable="true"
     87         android:focusableInTouchMode="true"
     88         android:contentDescription="@string/accessibility_time_picker_second"
     89         />
     90     <TextView
     91         android:id="@+id/second_dot"
     92         android:layout_width="wrap_content"
     93         android:textSize="12sp"
     94         android:layout_height="wrap_content"
     95         android:text="@string/time_picker_dialog_second_subsecond_separator"
     96         />
     97     <NumberPicker
     98         android:id="@+id/milli"
     99         android:layout_width="0dp"
    100         android:layout_weight=".2"
    101         android:textSize="12sp"
    102         android:layout_height="wrap_content"
    103         android:layout_marginStart="4dp"
    104         android:layout_marginEnd="4dp"
    105         android:focusable="true"
    106         android:focusableInTouchMode="true"
    107         android:contentDescription="@string/accessibility_time_picker_milli"
    108         />
    109     <NumberPicker
    110         android:id="@+id/ampm"
    111         android:layout_width="0dp"
    112         android:layout_weight=".2"
    113         android:textSize="12sp"
    114         android:layout_height="wrap_content"
    115         android:layout_marginStart="4dp"
    116         android:layout_marginEnd="4dp"
    117         android:focusable="true"
    118         android:focusableInTouchMode="true"
    119         android:contentDescription="@string/accessibility_time_picker_ampm"
    120         />
    121     </LinearLayout>
    122 </LinearLayout>
    123