Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical" >
  6.  
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:orientation="horizontal" >
  11.  
  12. <TextView
  13. android:id="@+id/textView1"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:textSize="20sp"
  17. android:textColor="#ffffff"
  18. android:background="#19396a"
  19. />
  20.  
  21. <TextView
  22. android:id="@+id/textView2"
  23. android:layout_weight="1"
  24. android:layout_width="0dp"
  25. android:layout_height="wrap_content"
  26. android:textSize="20sp"
  27. android:textColor="#ffffff"
  28. android:background="#19396a"
  29. />
  30. </LinearLayout>
  31. <ListView
  32. android:id="@+id/uilistView"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content" >
  35. </ListView>
  36.  
  37. </LinearLayout>
  38.  
  39. //used to initialize UI elements
  40. //called in oncreate() method
  41. public void initializeUIelements() {
  42. ......
  43. activity_listView = (ListView) findViewById(R.id.uilistView);
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement