Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
4a36525b
Commit
4a36525b
authored
Feb 20, 2015
by
Geoffrey Métais
Browse files
Wider layout for time picking
parent
47cd5be4
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/res/layout/jump_to_time.xml
View file @
4a36525b
<?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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment