android - How do i solve repeating footer button in the listview -


i'm new @ android development. after spending time figured out how make custom listview. here code.

<?xml version="1.0" encoding="utf-8"?> <scrollview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scrollview1" android:layout_width="fill_parent" android:layout_height="fill_parent" >  <linearlayout     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="vertical" >          <textview             android:id="@+id/title"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_marginleft="15dp"             android:layout_margintop="10dp"             android:textappearance="?android:attr/textappearancelarge" />          <textview             android:id="@+id/notedate"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_marginbottom="10dp"             android:layout_marginleft="15dp"             android:textappearance="?android:attr/textappearancesmall" />          <listview             android:id="@android:id/list"             android:layout_width="fill_parent"             android:layout_height="wrap_content" />     </linearlayout>      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:orientation="vertical" >          <!-- filler -->          <textview             android:layout_width="fill_parent"             android:layout_height="0dip"             android:layout_weight="1" />          <button             android:id="@+id/button1"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="add note" />     </linearlayout> </linearlayout> 

listview okey @ time, want add button , should one.but it's repeating.

enter image description here

also if it's possible want put button on bottom of area.

i think you're adding entire scrollview "element". may suggest reorganizing layout listview?

take at:
http://www.youtube.com/watch?v=wdbm6wveo70
@ 26 min, on how add footers/headers listview


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -