考虑适用于 Android 的 Hotmail 应用程序。当您选中一个电子邮件项目时,底部会出现三个按钮: [标记已读] [标记未读] [删除] 当您取消选中它时,这些按钮又会消失。
这是什么布局?我已经尝试过了,但它会在底部产生滚动问题(看不到最后一项):
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@android:color/darker_gray"
android:orientation="horizontal"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:paddingTop="5dip" >
<Button
android:id="@+id/bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:enabled="false"
android:text="@string/mark_read" />
</LinearLayout>
那么,我还需要显示/隐藏这些东西吗?