Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: ui/android/java/res/layout/multi_field_time_picker_dialog.xml

Issue 574673003: Move *Picker.java and *PickerDialog.java to ui/android/java/... - Part1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased patch. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/android/java/res/layout/multi_field_time_picker_dialog.xml
diff --git a/ui/android/java/res/layout/multi_field_time_picker_dialog.xml b/ui/android/java/res/layout/multi_field_time_picker_dialog.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e037a09739ae6acfcece9a4c5dd0a71bd5a1a57a
--- /dev/null
+++ b/ui/android/java/res/layout/multi_field_time_picker_dialog.xml
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2013 The Chromium Authors. All rights reserved.
+
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:orientation="vertical"
+ android:gravity="start">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/time_picker_dialog_title"
+ android:textSize="20sp"
+ android:paddingStart="5dp"
+ android:paddingEnd="5dp"
+ android:paddingBottom="5dp"
+ android:paddingTop="5dp"
+ android:gravity="start"
+ android:textColor="#33B5E5"
+ />
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="2dp"
+ android:paddingBottom="5dp"
+ android:paddingTop="5dp"
+ android:background="#33B5E5"/>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:orientation="horizontal"
+ android:gravity="center">
+
+ <NumberPicker
+ android:id="@+id/hour"
+ android:layout_width="0dp"
+ android:layout_weight=".2"
+ android:textSize="12sp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginEnd="4dp"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:contentDescription="@string/accessibility_time_picker_hour"
+ />
+ <TextView
+ android:layout_width="wrap_content"
+ android:textSize="12sp"
+ android:layout_height="wrap_content"
+ android:text="@string/time_picker_dialog_hour_minute_separator"
+ />
+ <NumberPicker
+ android:id="@+id/minute"
+ android:layout_width="0dp"
+ android:layout_weight=".2"
+ android:textSize="12sp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginEnd="4dp"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:contentDescription="@string/accessibility_time_picker_minute"
+ />
+ <TextView
+ android:id="@+id/second_colon"
+ android:layout_width="wrap_content"
+ android:textSize="12sp"
+ android:layout_height="wrap_content"
+ android:text="@string/time_picker_dialog_minute_second_separator" />
+ <NumberPicker
+ android:id="@+id/second"
+ android:layout_width="0dp"
+ android:layout_weight=".2"
+ android:textSize="12sp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginEnd="4dp"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:contentDescription="@string/accessibility_time_picker_second"
+ />
+ <TextView
+ android:id="@+id/second_dot"
+ android:layout_width="wrap_content"
+ android:textSize="12sp"
+ android:layout_height="wrap_content"
+ android:text="@string/time_picker_dialog_second_subsecond_separator"
+ />
+ <NumberPicker
+ android:id="@+id/milli"
+ android:layout_width="0dp"
+ android:layout_weight=".2"
+ android:textSize="12sp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginEnd="4dp"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:contentDescription="@string/accessibility_time_picker_milli"
+ />
+ <NumberPicker
+ android:id="@+id/ampm"
+ android:layout_width="0dp"
+ android:layout_weight=".2"
+ android:textSize="12sp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginEnd="4dp"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:contentDescription="@string/accessibility_time_picker_ampm"
+ />
+ </LinearLayout>
+</LinearLayout>
« no previous file with comments | « ui/android/java/res/layout/date_time_picker_dialog.xml ('k') | ui/android/java/res/layout/two_field_date_picker.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698