0
wrap_content
의 너비와 높이로 RelativeLayout
이 간단합니다. 그러나 그것을 포장하지 않습니다. 어쩌면 나는 뭔가를 놓친다.대화 상자 창에 내용이 없습니다.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/Wheat">
<LinearLayout
android:id="@+id/btn_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:background="@android:color/black">
<Button
android:id="@+id/saveNewBtn"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="saveData"
android:text="Save" />
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="cancelAction"
android:text="Cancel" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:id="@+id/linearlayout"
android:orientation="vertical">
</LinearLayout>
</RelativeLayout>
초 동안 스크린 샷으로 업데이트됩니다.
PFF ... ... Duh ... 건배! – Martynas
@Martynas 문제 없으므로 작동하는데 도움이됩니다.) – REG1