umeng_update_dialog.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="#99232323" >
  6. <LinearLayout
  7. android:layout_width="280dp"
  8. android:layout_height="wrap_content"
  9. android:layout_centerInParent="true"
  10. android:background="@drawable/umeng_update_dialog_bg"
  11. android:orientation="vertical" >
  12. <!-- Title -->
  13. <RelativeLayout
  14. android:layout_width="fill_parent"
  15. android:layout_height="40dp" >
  16. <ImageView
  17. android:id="@+id/umeng_update_wifi_indicator"
  18. android:layout_width="30dp"
  19. android:layout_height="30dp"
  20. android:layout_centerVertical="true"
  21. android:layout_marginLeft="10dp"
  22. android:contentDescription="@string/UMGprsCondition"
  23. android:src="@drawable/umeng_update_wifi_disable" />
  24. <TextView
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_centerInParent="true"
  28. android:text="@string/UMUpdateTitle"
  29. android:textAppearance="?android:attr/textAppearanceLarge"
  30. android:textColor="#63C2FF" />
  31. <Button
  32. android:id="@+id/umeng_update_id_close"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_alignParentRight="true"
  36. android:layout_centerVertical="true"
  37. android:layout_marginRight="10dp"
  38. android:focusable="true"
  39. android:visibility="gone"
  40. android:background="@drawable/umeng_update_button_close_bg_selector"/>
  41. </RelativeLayout>
  42. <!-- split -->
  43. <View
  44. android:layout_width="fill_parent"
  45. android:layout_height="2dp"
  46. android:layout_marginLeft="10dp"
  47. android:layout_marginRight="10dp"
  48. android:background="#2AACFF" />
  49. <!-- Content -->
  50. <ScrollView
  51. android:layout_width="fill_parent"
  52. android:layout_height="0dp"
  53. android:layout_weight="1"
  54. android:padding="10dp" >
  55. <LinearLayout
  56. android:layout_width="fill_parent"
  57. android:layout_height="wrap_content"
  58. android:orientation="vertical" >
  59. <TextView
  60. android:id="@+id/umeng_update_content"
  61. android:layout_width="fill_parent"
  62. android:layout_height="wrap_content"
  63. android:layout_marginLeft="5dp"
  64. android:layout_marginRight="5dp"
  65. android:layout_marginTop="10dp"
  66. android:focusable="true"
  67. android:textColor="#AAABAF" />
  68. </LinearLayout>
  69. </ScrollView>
  70. <!-- Ignore CheckBox -->
  71. <CheckBox
  72. android:id="@+id/umeng_update_id_check"
  73. android:layout_width="fill_parent"
  74. android:layout_height="32dp"
  75. android:text="@string/UMIgnore"
  76. android:button="@drawable/umeng_update_button_check_selector"
  77. android:textColor="#AAABAF" />
  78. <!-- OK&Cancel Button -->
  79. <LinearLayout
  80. android:layout_width="fill_parent"
  81. android:layout_height="wrap_content" >
  82. <Button
  83. android:id="@+id/umeng_update_id_ok"
  84. android:layout_width="0dp"
  85. android:layout_height="wrap_content"
  86. android:layout_margin="5dp"
  87. android:layout_weight="1"
  88. android:background="@drawable/umeng_update_button_ok_bg_selector"
  89. android:gravity="center"
  90. android:padding="12dp"
  91. android:text="@string/UMUpdateNow"
  92. android:focusable="true"
  93. android:textColor="#FFFFFF" />
  94. <Button
  95. android:id="@+id/umeng_update_id_cancel"
  96. android:layout_width="0dp"
  97. android:layout_height="wrap_content"
  98. android:layout_margin="5dp"
  99. android:layout_weight="1"
  100. android:background="@drawable/umeng_update_button_cancel_bg_selector"
  101. android:gravity="center"
  102. android:padding="12dp"
  103. android:text="@string/UMNotNow"
  104. android:focusable="true"
  105. android:textColor="#AAABAF" />
  106. <Button
  107. android:id="@+id/umeng_update_id_ignore"
  108. android:visibility="gone"
  109. android:layout_width="0dp"
  110. android:layout_height="wrap_content"
  111. android:layout_margin="5dp"
  112. android:layout_weight="1"
  113. android:background="@drawable/umeng_update_button_cancel_bg_selector"
  114. android:gravity="center"
  115. android:padding="12dp"
  116. android:text="@string/UMIgnore"
  117. android:focusable="true"
  118. android:textColor="#AAABAF" />
  119. </LinearLayout>
  120. </LinearLayout>
  121. </RelativeLayout>