我是新的android开发。下面我附上我的布局文件。
在我的布局中,我有一个和ListView
一个。当我插入任务并按下该任务时,该任务将被一一添加。EditText
ImageButton
EditText
ImageButton
ListView
我的问题是假设我添加了超过 4 个任务意味着视图不可见EditText
,ImageButton
因为列表项占据了那个位置。我在上面添加了我的屏幕截图,请提供解决方案谢谢...
`**Layout:**
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3" >
<Button
android:id="@+id/todaytaskbtnid"
style="?android:attr/buttonStyleSmall"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_weight="1"
android:background="@drawable/buttonselector"
android:text="TODAY" />
<Button
android:id="@+id/tomorrowtaskbtnid"
style="?android:attr/buttonStyleSmall"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/buttonselector"
android:text="TOMORROW" />
<Button
android:id="@+id/futuretaskbtnid"
style="?android:attr/buttonStyleSmall"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/buttonselector"
android:text="FUTURE" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ListView
android:id="@+id/frontpagetasklistid"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom" >
<RelativeLayout
android:id="@+id/relativelayoutid"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom" >
<EditText
android:id="@+id/edittextidAddTodayTask"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/edittextselector"
android:hint="Add Today Task" />
<ImageButton
android:id="@+id/imagebuttonidAddTodayTask"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_gravity="right"
android:src="@drawable/addtask" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>