ボタンと下画面の隙間からリストビューが見えてしまいます。
http://d.hatena.ne.jp/itmammoth/20110427/1303909099
を参考にButtonをandroid:layout_alignParentBottom="true"
にしました。
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="com.example.tsuyoshiokaprofile.Main" tools:showIn="@layout/activity_main" android:orientation="horizontal" android:weightSum="1"> <ListView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/listView1"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="ボタンです" android:layout_alignParentBottom="true"/> </RelativeLayout>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。