Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
e0b162c2
Commit
e0b162c2
authored
8 years ago
by
Alexandre Perraud
Committed by
Geoffrey Métais
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
New playback speed advanced option view
(cherry picked from commit
d42ba975
)
parent
5a69ac8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vlc-android/res/layout/dialog_playback_speed.xml
+79
-48
79 additions, 48 deletions
vlc-android/res/layout/dialog_playback_speed.xml
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+0
-3
0 additions, 3 deletions
...id/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
with
79 additions
and
51 deletions
vlc-android/res/layout/dialog_playback_speed.xml
+
79
−
48
View file @
e0b162c2
...
...
@@ -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>
This diff is collapsed.
Click to expand it.
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+
0
−
3
View file @
e0b162c2
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment