Android 用の Hotmail アプリについて考えてみましょう。メールをチェックすると、下部に「既読にする」「未読にする」「削除する」という3つのボタンが表示されます。 チェックを外すと、ボタンが消えます。
これのレイアウトは何ですか?私はこれを試しましたが、下部にスクロールの問題が発生します (最後の項目が表示されません):
<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>
次に、このようなものも表示/非表示にする必要がありますか?