0
我想创建一个像布局的向导应该看起来像描述: *在顶部应该是当前对话框的某种标题 *在底部应该是一个导航栏包含按钮下一个/上一个和各种操作。该酒吧应该始终(!)位于屏幕的最底部。 *在中心应该是一个列表(应该使用剩下的所有空间,除了上面描述的标题栏和导航栏)向导喜欢在Android的布局
我的第一次尝试在下面发布。我用framelayout但是我被告知这是一个坏主意。我碰到的问题是我列表的最后一行在屏幕底部的按钮下方。你有什么可以解决我的问题的建议吗?
感谢
这里是我不工作草案:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="vertical" >
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="horizontal" style="@android:style/ButtonBar">
<ImageView android:src="@drawable/person"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="@string/personstring"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textStyle="bold" android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
<ListView android:visibility="visible" android:id="@android:id/list"
android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
<LinearLayout android:id="@+id/footer"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:orientation="horizontal" android:layout_gravity="bottom|center"
android:layout_alignParentBottom="true" style="@android:style/ButtonBar">
<ImageButton android:id="@+id/loacreation.previousButton"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:src="@drawable/buttonarrowleft" />
<ImageButton android:id="@+id/loacreation.nextButton"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:src="@drawable/buttonarrowright" />
</LinearLayout>
</FrameLayout>