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
Ewout ter Hoeven
VLC-Android
Commits
f395f877
Commit
f395f877
authored
May 27, 2016
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TV: Add util method to set overscan padding
parent
a9e93135
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java
vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java
+8
-0
No files found.
vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java
View file @
f395f877
...
...
@@ -25,7 +25,9 @@ import android.content.Context;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.support.v17.leanback.widget.Row
;
import
android.view.View
;
import
org.videolan.vlc.R
;
import
org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity
;
import
org.videolan.vlc.gui.tv.browser.VerticalGridActivity
;
import
org.videolan.vlc.gui.video.VideoPlayerActivity
;
...
...
@@ -36,6 +38,12 @@ import java.util.ArrayList;
public
class
TvUtil
{
public
static
void
applyOverscanMargin
(
Activity
activity
)
{
View
content
=
activity
.
findViewById
(
android
.
R
.
id
.
content
);
int
hm
=
activity
.
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
tv_overscan_horizontal
);
int
vm
=
activity
.
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
tv_overscan_vertical
);
content
.
setPadding
(
hm
,
vm
,
hm
,
vm
);
}
public
static
void
openMedia
(
Activity
activity
,
Object
item
,
Row
row
){
if
(
item
instanceof
MediaWrapper
)
{
...
...
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