Commit f3d024aa authored by Edward Wang's avatar Edward Wang
Browse files

Improve spacing in options dialog

parent b8cdfe5a
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="20dp"
tools:context="org.videolan.vlc.gui.video.AdvOptionsDialog">
<!-- TODO: Update blank fragment layout -->
<ImageView
android:id="@+id/playback_speed_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/ic_speed_normal_w"/>
<TextView
android:id="@+id/playback_speed_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignBottom="@+id/playback_speed_seek"
android:layout_toRightOf="@+id/playback_speed_icon"
android:text="@string/playback_speed"
android:gravity="center_vertical"/>
<TextView
android:id="@+id/playback_speed_value"
android:layout_width="wrap_content"
<!-- Playback speed -->
<LinearLayout
android:id="@+id/playback_speed"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/playback_speed_title"
android:text="1.00x"
android:gravity="bottom"
android:layout_alignBottom="@+id/seek_beginning"
android:layout_below="@+id/playback_speed_title"/>
<SeekBar
android:id="@+id/playback_speed_seek"
android:orientation="horizontal" >
<ImageView
android:id="@+id/playback_speed_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:src="@drawable/ic_speed_normal_w" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/playback_speed_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/playback_speed_value"
android:text="@string/playback_speed" />
<TextView
android:id="@+id/playback_speed_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:layout_toLeftOf="@+id/playback_speed_reset"
android:text="1.00x" />
<Button
android:id="@+id/playback_speed_reset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:focusable="true"
android:text="1x" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/playback_speed_selector"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<SeekBar
android:id="@+id/playback_speed_seek"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:focusable="true"
android:indeterminate="false"
android:max="200"
android:maxHeight="@dimen/seekbar_height"
android:minHeight="@dimen/seekbar_height"
android:progress="100"
android:progressDrawable="@drawable/po_seekbar"
android:splitTrack="false"
android:thumb="@drawable/seekbar_thumb" />
<TextView
android:id="@+id/seek_beginning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/playback_speed_seek"
android:layout_below="@+id/playback_speed_seek"
android:text="0.25" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/playback_speed_seek"
android:layout_toLeftOf="@+id/seek_end"
android:layout_toRightOf="@+id/seek_beginning"
android:gravity="center_horizontal"
android:text="1.00" />
<TextView
android:id="@+id/seek_end"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/playback_speed_seek"
android:layout_below="@+id/playback_speed_seek"
android:text="4.00" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<!-- Sleep Timer -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:maxHeight="@dimen/seekbar_height"
android:minHeight="@dimen/seekbar_height"
android:max="200"
android:progress="100"
android:indeterminate="false"
android:layout_toRightOf="@+id/playback_speed_title"
android:layout_toLeftOf="@+id/playback_speed_reset"
android:progressDrawable="@drawable/po_seekbar"
android:splitTrack="false"
android:thumb="@drawable/seekbar_thumb"
android:focusable="true"/>
android:layout_marginTop="10dp"
android:orientation="horizontal" >
<ImageView
android:id="@+id/sleep_timer_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/ic_sleep_normal_w" />
<TextView
android:id="@+id/seek_beginning"
android:id="@+id/sleep_timer_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/playback_speed_seek"
android:layout_alignLeft="@+id/playback_speed_seek"
android:text="0.25" />
android:layout_gravity="center"
android:text="@string/sleep_title" />
<TextView
android:layout_width="match_parent"
android:id="@+id/sleep_timer_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/playback_speed_seek"
android:layout_toRightOf="@+id/seek_beginning"
android:layout_toLeftOf="@+id/seek_end"
android:gravity="center_horizontal"
android:text="1.00" />
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:clickable="true"
android:focusable="true"
android:text="none_set" />
<TextView
android:id="@+id/seek_end"
android:id="@+id/sleep_timer_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/playback_speed_seek"
android:layout_alignRight="@+id/playback_speed_seek"
android:text="4.00" />
<Button
android:id="@+id/playback_speed_reset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="1x"
android:focusable="true" />
<!-- Sleep Timer-->
<ImageView
android:id="@+id/sleep_timer_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_below="@+id/playback_speed_value"
android:layout_marginTop="10dp"
android:src="@drawable/ic_sleep_normal_w"/>
<TextView
android:id="@+id/sleep_timer_title"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:gravity="center_vertical"
android:layout_below="@+id/playback_speed_value"
android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/sleep_timer_icon"
android:text="@string/sleep_title" />
<TextView
android:id="@+id/sleep_timer_value"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:gravity="center_vertical"
android:layout_below="@+id/playback_speed_value"
android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/sleep_timer_title"
android:layout_alignLeft="@+id/seek_beginning"
android:text="none_set"
android:clickable="true"
android:focusable="true"/>
<TextView
android:id="@+id/sleep_timer_cancel"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_below="@+id/playback_speed_value"
android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/sleep_timer_value"
android:text="@string/sleep_cancel"
android:clickable="true"
android:focusable="true"/>
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:clickable="true"
android:focusable="true"
android:text="@string/sleep_cancel" />
</LinearLayout>
<!-- Jump to position -->
<ImageView
android:id="@+id/jump_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_below="@+id/playback_speed_value"
android:layout_toLeftOf="@+id/jump_title"
android:layout_marginTop="10dp"
android:src="@drawable/ic_jumpto_normal_w" />
<TextView
android:id="@+id/jump_title"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:gravity="center_vertical"
android:layout_below="@+id/playback_speed_value"
android:layout_marginTop="10dp"
android:layout_alignRight="@+id/playback_speed_reset"
android:text="@string/jump_to_time"
android:clickable="true"
android:focusable="true"/>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
android:id="@+id/jump_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/ic_jumpto_normal_w" />
<TextView
android:id="@+id/jump_title"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:clickable="true"
android:focusable="true"
android:gravity="center_vertical"
android:text="@string/jump_to_time" />
</LinearLayout>
</LinearLayout>
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