2017-03-09 12 views
1

私はAndroid TVに問題があり、私はあなたの助けが必要です。Android TVの再生制御の設定位置

以下

レイアウトコードです:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
> 

<VideoView 
    android:id="@+id/videoView" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_gravity="center" 
    /> 

<fragment 
    android:id="@+id/playback_controls_fragment" 
    android:name="com.sharewis.leonettv.PlaybackOverlayFragment" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    /> 

とレイアウトレンダリング:

私は、Android TV(などの再生制御のための位置を設定するにはどうすればよい

enter image description here

:下、上...)?

答えて

0

I再生制御の手動パディングDIMEN(上部と下部を含む)lb_playback_controls_padding_toplb_playback_controls_padding_bottomと

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    > 

    <VideoView 
     android:id="@+id/videoView" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:layout_gravity="center" 
     /> 

    <fragment 
     android:id="@+id/playback_controls_fragment" 
     android:name="com.sharewis.leonettv.PlaybackOverlayFragment" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_alignParentBottom="true" 
     android:layout_centerHorizontal="true" 
     /> 
</RelativeLayout> 

までから

関連する問題