디스플레이 레이아웃에 문제가 발생했습니다. Relativelayout + id/media는 사용자가 볼 때 표시되지 않습니다. 그는 Relativelayout @ + id/media2 아래에 있으며 dpad에서 선택 가능하지만 나머지는 유지합니다.Android Tv 버튼을 선택하지 않았습니다.
부품의 경우 첫 번째 및 두 번째 미디어 2를 넣으십시오. 미디어는 표시되지만 선택할 수는 없습니다.
먼저 미디어 2 위에 쓰여 있지만 특정 순서로 미디어를 만들 수 있습니까? 는 화면에 다른 항목에 초점을 통제하려는 것 같다
레이아웃
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/app_video_box"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="#000"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/media"
android:layout_marginLeft="32dp"
android:layout_marginRight="32dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:gravity="center_vertical|center_horizontal|center"
android:layout_marginLeft="32dp"
android:layout_marginRight="32dp"
android:animateLayoutChanges="true"
android:background="#e72a2a"
android:id="@+id/relativeLayout">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Back"
android:id="@+id/button2"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/button"
android:layout_toEndOf="@+id/button" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Play"
android:id="@+id/button" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Next"
android:id="@+id/button3"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/button2"
android:layout_toEndOf="@+id/button2" />
</RelativeLayout>
<SeekBar
android:id="@+id/app_video_seekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:layout_above="@+id/relativeLayout"
android:layout_alignLeft="@+id/relativeLayout"
android:layout_alignStart="@+id/relativeLayout"
android:layout_alignRight="@+id/relativeLayout"
android:layout_alignEnd="@+id/relativeLayout" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/media2"
android:layout_width="match_parent"
android:layout_height="match_parent">
<tcking.github.com.giraffeplayer.IjkVideoView
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
</RelativeLayout>
다른 컨트롤과 마찬가지로 media와 media2의 상대 위치를 지정해야합니다. – muratgu
좀 더 자세히 설명해 주시겠습니까? –