リストビューに問題があり、上部にボタンがあり、下部にリストビューがあるはずです。
ただし、アプリケーションを実行すると、リストビューがボタンを完全にカバーします。この問題の主な原因は何ですか?
編集 - 大きな画像で申し訳ありません。サイズを変更する方法がわかりません
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<Button
android:id="@+id/buttonList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="@string/buttonShow" />
<ListView
android:id="@+id/listDays"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/buttonList"/>
</RelativeLayout>
public class SimpleListView extends ListActivity{
String[] days;
Button mButtonList;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mButtonList = (Button)findViewById(R.id.buttonList);
//mButtonList.setOnClickListener(btnListener);
//setContentView(R.layout.activity_list);
ListView lstView = getListView();
lstView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
days = getResources().getStringArray(R.array.daysArray);
setListAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_checked, days));
}