chat_uimain.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="276dp"
  4. android:layout_height="246.66dp"
  5. android:background="@drawable/ui_main_bkg"
  6. android:orientation="vertical" >
  7. <LinearLayout
  8. android:id="@+id/title_bkg"
  9. android:layout_width="fill_parent"
  10. android:layout_height="wrap_content"
  11. android:background="@drawable/ui_title_bkg"
  12. android:orientation="horizontal" >
  13. <ImageButton
  14. android:id="@+id/ui_back_button"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:layout_gravity="left"
  18. android:background="@drawable/ui_close" />
  19. <View
  20. android:layout_width="1px"
  21. android:layout_height="match_parent"
  22. android:background="#262829"/>
  23. <TextView
  24. android:id="@+id/ui_pkgname"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_gravity="center"
  28. android:layout_weight="1"
  29. android:ellipsize="end"
  30. android:gravity="center"
  31. android:singleLine="true"
  32. android:textColor="#FFFFFF"
  33. android:textSize="16dp" />
  34. <View
  35. android:layout_width="1px"
  36. android:layout_height="match_parent"
  37. android:background="#262829"/>
  38. <ImageButton
  39. android:id="@+id/ui_enter_button"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_gravity="right"
  43. android:background="@drawable/ui_start" />
  44. </LinearLayout>
  45. <LinearLayout
  46. android:id="@+id/content_bkg"
  47. android:layout_width="fill_parent"
  48. android:layout_height="fill_parent"
  49. android:layout_marginLeft="10dp"
  50. android:layout_marginRight="10dp"
  51. android:layout_weight="1"
  52. android:gravity="center"
  53. android:orientation="vertical" >
  54. <RelativeLayout
  55. android:layout_width="fill_parent"
  56. android:layout_height="wrap_content" >
  57. <TextView
  58. android:id="@+id/ui_title"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_alignParentLeft="true"
  62. android:ellipsize="end"
  63. android:gravity="center"
  64. android:singleLine="true"
  65. android:textColor="#FFFFFF"
  66. android:textSize="18dp" />
  67. <TextView
  68. android:id="@+id/ui_time"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:layout_alignParentRight="true"
  72. android:gravity="center"
  73. android:singleLine="true"
  74. android:text=""
  75. android:textColor="#FFFFFF"
  76. android:textSize="14dp" />
  77. </RelativeLayout>
  78. <ListView
  79. android:id="@+id/content_list"
  80. android:layout_width="fill_parent"
  81. android:layout_height="fill_parent"
  82. android:cacheColorHint="@android:color/transparent"
  83. android:divider="@null"
  84. android:gravity="center"
  85. android:listSelector="@android:color/transparent" >
  86. </ListView>
  87. </LinearLayout>
  88. <View
  89. android:layout_width="match_parent"
  90. android:layout_height="1px"
  91. android:background="#000000" />
  92. <LinearLayout
  93. android:id="@+id/input_bkg"
  94. android:layout_width="fill_parent"
  95. android:layout_height="wrap_content"
  96. android:gravity="center_vertical"
  97. android:orientation="horizontal" >
  98. <EditText
  99. android:id="@+id/ui_edit"
  100. android:layout_width="match_parent"
  101. android:layout_height="wrap_content"
  102. android:layout_marginBottom="5dp"
  103. android:layout_marginLeft="10dp"
  104. android:layout_marginRight="5dp"
  105. android:layout_marginTop="5dp"
  106. android:layout_weight="1"
  107. android:background="@drawable/ui_input_bkg" >
  108. </EditText>
  109. <ImageButton
  110. android:id="@+id/publish"
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:layout_marginRight="5dp"
  114. android:background="@drawable/ui_send" />
  115. </LinearLayout>
  116. </LinearLayout>