Advertisement
Guest User

Untitled

a guest
Jan 14th, 2013
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. Current XML files, the other listview is basically identical. (and I changed @+id/android:list back to @android:id/list)
  2.  
  3. Simplified listroot.xml (layout with listview):
  4. -------------------
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7. android:layout_width="fill_parent"
  8. android:layout_height="fill_parent"
  9. android:orientation="vertical" >
  10.  
  11. <ListView android:id="@android:id/list"
  12. android:layout_width="fill_parent"
  13. android:layout_height="wrap_content"
  14. android:cacheColorHint="@android:color/transparent"
  15. android:dividerHeight="1px" />
  16.  
  17. </LinearLayout>
  18. -------------------
  19.  
  20.  
  21. Simplified vlist.xml (list element):
  22. -------------------
  23. <?xml version="1.0" encoding="utf-8"?>
  24. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  25. android:layout_width="fill_parent"
  26. android:layout_height="wrap_content"
  27. android:orientation="vertical">
  28.  
  29. <TextView android:id="@+id/logleft"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:textSize="12sp"
  33. android:textColor="@color/main" />
  34.  
  35. <TextView android:id="@+id/logcenter"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:textSize="12sp"
  39. android:textColor="@color/main" />
  40.  
  41. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement