mobile/android/base/resources/layout/datetime_picker.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/resources/layout/datetime_picker.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,149 @@
     1.4 +<?xml version="1.0" encoding="utf-8"?>
     1.5 +<!--
     1.6 +**
     1.7 +** Copyright 2007, The Android Open Source Project
     1.8 +**
     1.9 +** Licensed under the Apache License, Version 2.0 (the "License");
    1.10 +** you may not use this file except in compliance with the License.
    1.11 +** You may obtain a copy of the License at
    1.12 +**
    1.13 +**     http://www.apache.org/licenses/LICENSE-2.0
    1.14 +**
    1.15 +** Unless required by applicable law or agreed to in writing, software
    1.16 +** distributed under the License is distributed on an "AS IS" BASIS,
    1.17 +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.18 +** See the License for the specific language governing permissions and
    1.19 +** limitations under the License.
    1.20 +*/
    1.21 +-->
    1.22 +
    1.23 +<!-- Layout of date picker-->
    1.24 +
    1.25 +<!-- Warning: everything within the "pickers" layout is removed and re-ordered
    1.26 +     depending on the date format selected by the user.
    1.27 +-->
    1.28 +
    1.29 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    1.30 +    android:id="@+id/datetime_picker"
    1.31 +    android:layout_width="wrap_content"
    1.32 +    android:layout_height="wrap_content"
    1.33 +    android:layout_gravity="center_horizontal"
    1.34 +    android:orientation="horizontal"
    1.35 +    android:gravity="center">
    1.36 +
    1.37 +    <LinearLayout android:id="@+id/spinners"
    1.38 +        android:layout_width="wrap_content"
    1.39 +        android:layout_height="wrap_content"
    1.40 +        android:layout_weight="1"
    1.41 +        android:orientation="vertical"
    1.42 +        android:gravity="center">
    1.43 +
    1.44 +        <LinearLayout android:id="@+id/date_spinners"
    1.45 +            android:layout_width="wrap_content"
    1.46 +            android:layout_height="wrap_content"
    1.47 +            android:orientation="horizontal"
    1.48 +            android:layout_marginLeft="1dip"
    1.49 +            android:layout_marginRight="1dip"
    1.50 +            android:layout_weight="1"
    1.51 +            android:gravity="center">
    1.52 +
    1.53 +            <!-- Month -->
    1.54 +            <android.widget.NumberPicker
    1.55 +                android:id="@+id/month"
    1.56 +                android:layout_width="60dip"
    1.57 +                android:layout_height="wrap_content"
    1.58 +                android:layout_marginLeft="1dip"
    1.59 +                android:layout_marginRight="1dip"
    1.60 +                android:focusable="true"
    1.61 +                android:focusableInTouchMode="true"
    1.62 +                />
    1.63 +
    1.64 +            <!-- Week -->
    1.65 +            <android.widget.NumberPicker
    1.66 +                android:id="@+id/week"
    1.67 +                android:layout_width="60dip"
    1.68 +                android:layout_height="wrap_content"
    1.69 +                android:layout_marginLeft="1dip"
    1.70 +                android:layout_marginRight="1dip"
    1.71 +                android:focusable="true"
    1.72 +                android:focusableInTouchMode="true"
    1.73 +                />
    1.74 +
    1.75 +            <!-- Day -->
    1.76 +            <android.widget.NumberPicker
    1.77 +                android:id="@+id/day"
    1.78 +                android:layout_width="60dip"
    1.79 +                android:layout_height="wrap_content"
    1.80 +                android:layout_marginLeft="1dip"
    1.81 +                android:layout_marginRight="1dip"
    1.82 +                android:focusable="true"
    1.83 +                android:focusableInTouchMode="true"
    1.84 +                />
    1.85 +
    1.86 +            <!-- Year -->
    1.87 +            <android.widget.NumberPicker
    1.88 +                android:id="@+id/year"
    1.89 +                android:layout_width="75dip"
    1.90 +                android:layout_height="wrap_content"
    1.91 +                android:layout_marginLeft="1dip"
    1.92 +                android:layout_marginRight="1dip"
    1.93 +                android:focusable="true"
    1.94 +                android:focusableInTouchMode="true"
    1.95 +                />
    1.96 +
    1.97 +        </LinearLayout>
    1.98 +
    1.99 +        <LinearLayout android:id="@+id/time_spinners"
   1.100 +            android:layout_width="wrap_content"
   1.101 +            android:layout_height="wrap_content"
   1.102 +            android:orientation="horizontal"
   1.103 +            android:layout_marginLeft="1dip"
   1.104 +            android:layout_marginRight="1dip"
   1.105 +            android:layout_weight="1"
   1.106 +            android:gravity="center">
   1.107 +
   1.108 +            <!-- Hour -->
   1.109 +            <android.widget.NumberPicker
   1.110 +                android:id="@+id/hour"
   1.111 +                android:layout_width="60dip"
   1.112 +                android:layout_height="wrap_content"
   1.113 +                android:layout_marginLeft="1dip"
   1.114 +                android:layout_marginRight="1dip"
   1.115 +                android:focusable="true"
   1.116 +                android:focusableInTouchMode="true"
   1.117 +                />
   1.118 +
   1.119 +            <TextView android:id="@+id/mincolon"
   1.120 +                android:text=":"
   1.121 +                android:layout_width="wrap_content"
   1.122 +                android:layout_height="wrap_content"
   1.123 +                android:layout_marginLeft="1dip"
   1.124 +                android:layout_marginRight="1dip"/>
   1.125 +
   1.126 +            <!-- Minute -->
   1.127 +            <android.widget.NumberPicker
   1.128 +                android:id="@+id/minute"
   1.129 +                android:layout_width="60dip"
   1.130 +                android:layout_height="wrap_content"
   1.131 +                android:layout_marginLeft="1dip"
   1.132 +                android:layout_marginRight="1dip"
   1.133 +                android:focusable="true"
   1.134 +                android:focusableInTouchMode="true"
   1.135 +                />
   1.136 +
   1.137 +            <!-- AMPM -->
   1.138 +            <android.widget.NumberPicker
   1.139 +                android:id="@+id/ampm"
   1.140 +                android:layout_width="60dip"
   1.141 +                android:layout_height="wrap_content"
   1.142 +                android:layout_marginLeft="1dip"
   1.143 +                android:layout_marginRight="1dip"
   1.144 +                android:focusable="true"
   1.145 +                android:focusableInTouchMode="true"
   1.146 +                />
   1.147 +
   1.148 +        </LinearLayout>
   1.149 +
   1.150 +    </LinearLayout>
   1.151 +
   1.152 +</LinearLayout>

mercurial