에있는 LinearLayout 한 이미지 뷰 나는설정이 TextViews 안드로이드
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
android:orientation="vertical" >
<LinearLayout
<com.google.android.youtube.player.YouTubePlayerView>
<**Add textView1 here**>
<ImageView>
<**Add textView2 here**>
<ScrollView
<LinearLayout
<ImageView>
<ListView>
>
>
>
내가 거기 RelativeLayout
를 사용하여 YouTube 플레이어가 textView1는, 이미지 뷰 & 수평 올 textView2 후 aligned.I가 시도하도록 추가하는 대신하기 위해 노력하고 있습니다 LinearLayout
하지만 위의 세 위젯 중 하나가 표시되지 않습니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" >
<com.google.android.youtube.player.YouTubePlayerView>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" >
<**Add textView1 here**>
<ImageView>
<**Add textView2 here**>
</LinearLayout>
</LinearLayout>
아이디어가 Horizonrally 중심의 LinearLayout을 추가하는 것입니다, 그리고 내부의 의견을 넣어 :
여기에서 내 게시물을 확인하십시오. http://stackoverflow.com/questions/20397575/android-button-height-in-layout-not-filling-the-parent/20397742#20397742 – AndroidHacker
기본적으로 YouTube 플레이어가 textview1, imageview 및 textview2 (같은 "행"에 있음) 위에 있어야합니까? –
@MarioStoilov 당신은 바로 친구가 내 요구 사항을 알아 냈어. – onkar