Commit 4a36525b authored by Geoffrey Métais's avatar Geoffrey Métais

Wider layout for time picking

parent 47cd5be4
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:padding="20dp">
<TextView
......@@ -16,13 +17,14 @@
android:layout_height="wrap_content"
android:layout_below="@+id/jump_dialog_title"
android:layout_centerHorizontal="true">
<Button
<TextView
android:id="@+id/jump_sign"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:nextFocusRight="@+id/jump_hours"
android:text="+"
android:textSize="20sp"
android:visibility="gone"/>
<LinearLayout
android:id="@+id/jump_hours_container"
......@@ -34,6 +36,7 @@
android:id="@+id/jump_hours_up"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:src="@android:drawable/arrow_up_float"/>
<TextView
android:id="@+id/jump_hours"
......@@ -42,6 +45,7 @@
android:layout_margin="5dp"
android:maxLength="2"
android:text="00"
android:textSize="20sp"
android:focusable="true"
android:nextFocusRight="@+id/jump_minutes"
android:nextFocusLeft="@+id/jump_sign"/>
......@@ -49,6 +53,7 @@
android:id="@+id/jump_hours_down"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:focusable="true"
android:src="@android:drawable/arrow_down_float"/>
</LinearLayout>
......@@ -60,7 +65,8 @@
android:layout_alignTop="@+id/jump_hours_container"
android:layout_alignBottom="@+id/jump_hours_container"
android:gravity="center_vertical"
android:text="h"/>
android:text="h"
android:textSize="20sp"/>
<LinearLayout
android:id="@+id/jump_minutes_container"
android:layout_width="wrap_content"
......@@ -71,6 +77,7 @@
android:id="@+id/jump_minutes_up"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:focusable="true"
android:src="@android:drawable/arrow_up_float"/>
<TextView
......@@ -82,11 +89,13 @@
android:nextFocusRight="@+id/jump_seconds"
android:maxLength="2"
android:text="00"
android:textSize="20sp"
android:focusable="true"/>
<ImageView
android:id="@+id/jump_minutes_down"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:focusable="true"
android:src="@android:drawable/arrow_down_float"/>
</LinearLayout>
......@@ -98,7 +107,8 @@
android:layout_alignTop="@+id/jump_minutes_container"
android:layout_alignBottom="@+id/jump_minutes_container"
android:gravity="center_vertical"
android:text="m"/>
android:text="m"
android:textSize="20sp"/>
<LinearLayout
android:id="@+id/jump_seconds_container"
android:layout_width="wrap_content"
......@@ -107,6 +117,7 @@
android:orientation="vertical">
<ImageView
android:id="@+id/jump_seconds_up"
android:layout_marginBottom="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
......@@ -120,6 +131,7 @@
android:nextFocusRight="@+id/jump_millis"
android:maxLength="2"
android:text="00"
android:textSize="20sp"
android:textColor="@color/darkorange"
android:focusable="true">
<requestFocus />
......@@ -128,6 +140,7 @@
android:id="@+id/jump_seconds_down"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:focusable="true"
android:src="@android:drawable/arrow_down_float"/>
</LinearLayout>
......@@ -139,7 +152,8 @@
android:layout_alignTop="@+id/jump_seconds_container"
android:layout_alignBottom="@+id/jump_seconds_container"
android:gravity="center_vertical"
android:text="s"/>
android:text="s"
android:textSize="20sp"/>
<LinearLayout
android:id="@+id/jump_millis_container"
android:layout_width="wrap_content"
......@@ -151,6 +165,7 @@
android:id="@+id/jump_millis_up"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:focusable="true"
android:src="@android:drawable/arrow_up_float"/>
<TextView
......@@ -162,11 +177,13 @@
android:nextFocusRight="@+id/jump_go"
android:maxLength="3"
android:text="000"
android:textSize="20sp"
android:focusable="true"/>
<ImageView
android:id="@+id/jump_millis_down"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:focusable="true"
android:src="@android:drawable/arrow_down_float"/>
</LinearLayout>
......@@ -179,14 +196,19 @@
android:layout_alignBottom="@+id/jump_millis_container"
android:gravity="center_vertical"
android:text="ms"
android:textSize="20sp"
android:visibility="gone"/>
<Button
tools:targetApi="14"
android:id="@+id/jump_go"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:nextFocusLeft="@+id/jump_seconds"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/jump_millis_text"
android:text="@android:string/ok"/>
android:text="@android:string/ok"
android:textSize="20sp"
style="?android:attr/borderlessButtonStyle"/>
</RelativeLayout>
</RelativeLayout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment