Es gibt eine Lücke zwischen zwei relativen Layouts. Ich möchte diese Lücke beseitigen.Es gibt eine Lücke zwischen zwei relativen Layouts
Mein xml des Bildes wird unter
<RelativeLayout
android:id="@+id/live_view_surface_view_rl"
android:layout_width="fill_parent"
android:layout_height="@dimen/video_height">
<RelativeLayout
android:id="@+id/surfaceview_rl"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/palette_rl">
<SurfaceView
android:id="@+id/surfaceview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_centerInParent="true">
</SurfaceView>
</RelativeLayout>
<RelativeLayout
android:id="@+id/palette_rl"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:background="@color/transperent_black_color">
<RelativeLayout
android:id="@+id/snapshot_button_rl"
android:layout_width="50dp"
android:layout_height="fill_parent"
android:layout_marginLeft="@dimen/margin_left_right">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/snapshotselection" />
</RelativeLayout>
<LinearLayout
android:id="@+id/mic_btn_rl_parent"
android:layout_width="100dp"
android:layout_height="fill_parent"
android:layout_toRightOf="@+id/snapshot_button_rl"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/mic_button_rl"
android:layout_width="50dp"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/mic_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/talkbackbtn_selector" />
<ProgressBar
android:id="@+id/start_talkback_progress"
android:layout_width="@dimen/field_width_small"
android:layout_height="@dimen/field_width_small"
android:layout_centerInParent="true"
android:visibility="gone" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/live_view_audio_icon_rl"
android:layout_width="@dimen/field_width_medium"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/live_view_audio_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/icon_volume" />
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
gegeben Diese Lücke bleibt gleich, auch erhöhe ich die Höhe der unten relativ Layout. Beide Layouts haben die gleichen Eltern, aber sie sind immer noch nicht in der gleichen angepasst.
Ihre xml hinterlassen bitte – Nisarg
@Nisarg das ist mein xml – UserSharma
jetzt gut mir lassen –