/WebVox/res/layout/permission_dialog.xml

http://eyes-free.googlecode.com/ · XML · 158 lines · 119 code · 22 blank · 17 comment · 0 complexity · bb35f2ec25730d500f313c04a3e93465 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /*
  4. * Copyright 2009, The Android Open Source Project
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. -->
  19. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  20. android:drawingCacheQuality="auto"
  21. android:layout_width="fill_parent"
  22. android:layout_height="wrap_content"
  23. android:orientation="vertical"
  24. android:padding="0dip">
  25. <LinearLayout
  26. android:layout_width="fill_parent"
  27. android:layout_height="wrap_content"
  28. android:orientation="horizontal"
  29. android:padding="10dip">
  30. <ImageView
  31. android:id="@+id/icon"
  32. android:paddingRight="10dip"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_centerHorizontal="true"/>
  36. <TextView
  37. android:id="@+id/dialog_title"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_centerVertical="true"
  41. android:gravity="center_vertical"
  42. android:visibility="gone"
  43. android:textSize="16dip"
  44. android:textStyle="bold"
  45. android:textColor="@color/white"/>
  46. </LinearLayout>
  47. <LinearLayout
  48. android:layout_width="fill_parent"
  49. android:layout_height="wrap_content"
  50. android:orientation="vertical">
  51. <ImageView android:id="@+id/titleDivider"
  52. android:layout_width="fill_parent"
  53. android:layout_height="1dip"
  54. android:scaleType="fitXY"
  55. android:gravity="fill_horizontal"
  56. android:src="@drawable/dialog_divider_horizontal_light"
  57. android:layout_marginLeft="10dip"
  58. android:layout_marginRight="10dip"/>
  59. </LinearLayout>
  60. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  61. android:layout_width="fill_parent"
  62. android:layout_height="wrap_content"
  63. android:paddingBottom="10dip"
  64. android:layout_weight="1">
  65. <LinearLayout
  66. android:orientation="vertical"
  67. android:layout_width="fill_parent"
  68. android:paddingTop="10dip"
  69. android:paddingLeft="10dip"
  70. android:paddingRight="10dip"
  71. android:layout_height="wrap_content">
  72. <TextView
  73. android:id="@+id/origin"
  74. android:layout_width="fill_parent"
  75. android:layout_height="wrap_content"
  76. android:visibility="gone"
  77. android:textStyle="bold"
  78. android:gravity="left"
  79. android:textSize="16dip"
  80. android:textColor="@color/white"/>
  81. <TextView
  82. android:id="@+id/dialog_message"
  83. android:layout_width="fill_parent"
  84. android:layout_height="wrap_content"
  85. android:paddingLeft="4dip"
  86. android:paddingTop="10dip"
  87. android:gravity="left"
  88. android:textSize="16dip"
  89. android:textColor="@color/white"/>
  90. </LinearLayout>
  91. </ScrollView>
  92. <LinearLayout
  93. android:layout_width="fill_parent"
  94. android:background="@color/gray"
  95. android:layout_height="wrap_content"
  96. android:paddingTop="4dip"
  97. android:paddingLeft="0dip"
  98. android:paddingRight="0dip">
  99. <LinearLayout android:id="@+id/leftSpacer"
  100. android:layout_weight="0.25"
  101. android:layout_width="0dip"
  102. android:layout_height="wrap_content"
  103. android:orientation="horizontal"
  104. android:visibility="gone"/>
  105. <Button
  106. android:id="@+id/button_allow"
  107. android:layout_width="96dip"
  108. android:layout_height="48dip"
  109. android:layout_gravity="left"
  110. android:layout_weight="1"
  111. android:maxLines="2"
  112. android:textSize="13dip"/>
  113. <Button
  114. android:id="@+id/button_alwaysdeny"
  115. android:layout_width="96dip"
  116. android:layout_height="48dip"
  117. android:layout_gravity="left"
  118. android:layout_weight="1"
  119. android:maxLines="2"
  120. android:textSize="13dip"/>
  121. <Button
  122. android:id="@+id/button_deny"
  123. android:layout_width="96dip"
  124. android:layout_height="48dip"
  125. android:layout_gravity="right"
  126. android:layout_weight="1"
  127. android:maxLines="2"
  128. android:textSize="13dip"/>
  129. <LinearLayout android:id="@+id/rightSpacer"
  130. android:layout_width="0dip"
  131. android:layout_weight="0.25"
  132. android:layout_height="wrap_content"
  133. android:orientation="horizontal"
  134. android:visibility="gone" />
  135. </LinearLayout>
  136. </LinearLayout>