Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
c39fac00
Commit
c39fac00
authored
Mar 04, 2012
by
Sébastien Toque
Browse files
Improve overlay info visual + display it a little longer
parent
dd5da98e
Changes
2
Hide whitespace changes
Inline
Side-by-side
vlc-android/res/layout/player.xml
View file @
c39fac00
...
...
@@ -14,8 +14,10 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:background=
"@drawable/video_list_length_bg"
android:padding=
"5dp"
android:textColor=
"#ffffff"
android:textSize=
"
42di
p"
android:textSize=
"
36d
p"
android:visibility=
"invisible"
/>
<LinearLayout
...
...
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
c39fac00
...
...
@@ -277,7 +277,7 @@ public class VideoPlayerActivity extends Activity {
break
;
}
showInfo
(
R
.
string
.
locked
,
5
00
);
showInfo
(
R
.
string
.
locked
,
10
00
);
mLock
.
setBackgroundResource
(
R
.
drawable
.
ic_lock_glow
);
}
...
...
@@ -286,7 +286,7 @@ public class VideoPlayerActivity extends Activity {
*/
private
void
unlockScreen
()
{
setRequestedOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_SENSOR
);
showInfo
(
R
.
string
.
unlocked
,
5
00
);
showInfo
(
R
.
string
.
unlocked
,
10
00
);
mLock
.
setBackgroundResource
(
R
.
drawable
.
ic_lock
);
}
...
...
@@ -616,25 +616,25 @@ public class VideoPlayerActivity extends Activity {
changeSurfaceSize
();
switch
(
mCurrentSize
)
{
case
SURFACE_BEST_FIT:
showInfo
(
R
.
string
.
surface_best_fit
,
5
00
);
showInfo
(
R
.
string
.
surface_best_fit
,
10
00
);
break
;
case
SURFACE_FIT_HORIZONTAL:
showInfo
(
R
.
string
.
surface_fit_horizontal
,
5
00
);
showInfo
(
R
.
string
.
surface_fit_horizontal
,
10
00
);
break
;
case
SURFACE_FIT_VERTICAL:
showInfo
(
R
.
string
.
surface_fit_vertical
,
5
00
);
showInfo
(
R
.
string
.
surface_fit_vertical
,
10
00
);
break
;
case
SURFACE_FILL:
showInfo
(
R
.
string
.
surface_fill
,
5
00
);
showInfo
(
R
.
string
.
surface_fill
,
10
00
);
break
;
case
SURFACE_16_9:
showInfo
(
"16:9"
,
5
00
);
showInfo
(
"16:9"
,
10
00
);
break
;
case
SURFACE_4_3:
showInfo
(
"4:3"
,
5
00
);
showInfo
(
"4:3"
,
10
00
);
break
;
case
SURFACE_ORIGINAL:
showInfo
(
R
.
string
.
surface_original
,
5
00
);
showInfo
(
R
.
string
.
surface_original
,
10
00
);
break
;
}
showOverlay
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment