Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 21st, 2012  |  syntax: None  |  size: 1.03 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Setting a footer in a ListView
  2. <LinearLayout android:layout_width="match_parent"
  3.     android:layout_height="wrap_content" android:orientation="vertical"
  4.     android:id="@+id/bottom_control_bar"
  5.     android:layout_alignParentBottom="true">
  6.  
  7.     <Button android:layout_width="match_parent"
  8.         android:layout_height="wrap_content" android:text="Spara total tid"
  9.         android:id="@+id/bSave" android:textStyle="bold"
  10.         android:visibility="invisible"></Button>
  11. </LinearLayout>
  12.        
  13. <RelativeLayout
  14.     android:orientation="vertical" android:layout_width="fill_parent"
  15.     android:layout_height="fill_parent">
  16.  
  17.     <ListView android:id="@android:id/list"
  18.         android:layout_width="fill_parent" android:layout_height="wrap_content"
  19.         android:layout_above="@id/bottom_control_bar"></ListView>
  20.     <TextView android:id="@android:id/empty"
  21.         android:layout_width="wrap_content"
  22.         android:layout_height="wrap_content" />
  23.  
  24. </RelativeLayout>
  25.        
  26. <LinearLayout>
  27. <ScrollView>
  28. </ScrollView>
  29.  
  30. <Button>
  31. </Button>
  32.  
  33. </LinearLayout>