Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-Android
Commits
d42ba975
Commit
d42ba975
authored
Jun 08, 2016
by
Alexandre Perraud
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New playback speed advanced option view
parent
2ccff419
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
51 deletions
+79
-51
vlc-android/res/layout/dialog_playback_speed.xml
vlc-android/res/layout/dialog_playback_speed.xml
+79
-48
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
...id/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+0
-3
No files found.
vlc-android/res/layout/dialog_playback_speed.xml
View file @
d42ba975
...
...
@@ -2,19 +2,20 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"72dp"
android:layout_marginRight=
"72dp"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
android:layout_marginLeft=
"@dimen/default_margin"
android:layout_marginRight=
"@dimen/default_margin"
android:orientation=
"horizontal"
android:padding=
"@dimen/half_default_margin"
>
<
Relative
Layout
android:layout_width=
"
match_parent
"
<
Linear
Layout
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
...
...
@@ -26,63 +27,93 @@
android:src=
"?attr/ic_speed_normal_style"
/>
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/half_default_margin"
android:layout_marginRight=
"@dimen/half_default_margin"
android:layout_weight=
"1"
android:text=
"@string/playback_speed"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
</LinearLayout>
</RelativeLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"bottom"
android:orientation=
"horizontal"
>
<SeekBar
android:id=
"@+id/playback_speed_seek"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:focusable=
"true"
android:indeterminate=
"false"
android:max=
"200"
android:maxHeight=
"@dimen/seekbar_height"
android:minHeight=
"@dimen/seekbar_height"
android:nextFocusUp=
"@+id/playback_speed_reset"
android:progress=
"100"
android:progressDrawable=
"@drawable/po_seekbar"
android:splitTrack=
"false"
android:thumb=
"@drawable/seekbar_thumb"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"bottom"
>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"bottom"
android:paddingLeft=
"@dimen/default_margin"
android:text=
"0.25"
android:textSize=
"12sp"
/>
<TextView
android:layout_width=
"wrap_content"
<TextView
android:id=
"@+id/playback_speed_value"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"1.00x"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"bottom|right"
android:paddingRight=
"@dimen/default_margin"
android:text=
"4.00"
android:textSize=
"12sp"
/>
</LinearLayout>
<SeekBar
android:id=
"@+id/playback_speed_seek"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignBaseline=
"@+id/playback_speed_value"
android:layout_alignParentLeft=
"true"
android:gravity=
"bottom"
android:paddingLeft=
"@dimen/half_default_margin"
android:text=
"0.25"
/>
android:focusable=
"true"
android:indeterminate=
"false"
android:max=
"200"
android:maxHeight=
"@dimen/seekbar_height"
android:minHeight=
"@dimen/seekbar_height"
android:nextFocusUp=
"@+id/playback_speed_reset"
android:progress=
"100"
android:progressDrawable=
"@drawable/po_seekbar"
android:splitTrack=
"false"
android:thumb=
"@drawable/seekbar_thumb"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:orientation=
"vertical"
>
<
Text
View
android:id=
"@+id/playback_speed_
va
lu
e
"
<
Image
View
android:id=
"@+id/playback_speed_
p
lu
s
"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_
centerInParent=
"true
"
android:
text=
"1.00x
"
android:
textSize=
"20sp
"
android:
textStyle=
"bold
"
/>
android:layout_
marginBottom=
"@dimen/half_default_margin
"
android:
clickable=
"true
"
android:
focusable=
"true
"
android:
src=
"@drawable/ic_plus_circle
"
/>
<TextView
<ImageView
android:id=
"@+id/playback_speed_minus"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignBaseline=
"@+id/playback_speed_value"
android:layout_alignParentRight=
"true"
android:paddingRight=
"@dimen/half_default_margin"
android:text=
"4.00"
/>
android:clickable=
"true"
android:focusable=
"true"
android:src=
"@drawable/ic_minus_circle"
/>
</
Relative
Layout>
</
Linear
Layout>
</LinearLayout>
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
View file @
d42ba975
...
...
@@ -459,10 +459,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
}
break
;
case
ID_PLAYBACK_SPEED:
if
(
mMode
==
MODE_AUDIO
)
showFragment
(
ID_PLAYBACK_SPEED
);
else
showValueControls
(
ACTION_PLAYBACK_SPEED
);
break
;
case
ID_CHAPTER_TITLE:
showFragment
(
ID_CHAPTER_TITLE
);
...
...
Alexandre Perraud
@Corbax
mentioned in commit
e0b162c2
·
Jun 10, 2016
mentioned in commit
e0b162c2
mentioned in commit e0b162c25994e42c59c1fb3dbf05b9c336a1146d
Toggle commit list
Write
Preview
Markdown
is supported
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