Guest User

Untitled

a guest
Jul 29th, 2012
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. Listview alterations with a 30px bar above?
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical" >
  7.  
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content" >
  11.  
  12. <Button
  13. android:id="@+id/button1"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:text="Button1" />
  17.  
  18. <Button
  19. android:id="@+id/button2"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:text="Button2" />
  23.  
  24. <Button
  25. android:id="@+id/button3"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:text="Button3" />
  29. </LinearLayout>
  30.  
  31. <ListView
  32. android:id="@+id/listView1"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content" >
  35. </ListView>
  36.  
  37. </LinearLayout>
  38.  
  39. listView.setDivider(getResources().getDrawable(R.drawable.list_view_divider));
Advertisement
Add Comment
Please, Sign In to add comment