/Sky/res/layout/configure.xml

http://android-sky.googlecode.com/ · XML · 140 lines · 101 code · 22 blank · 17 comment · 0 complexity · 794f11925abe282c92d5f88ae9c64c36 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2009 Jeff Sharkey, http://jsharkey.org/
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  14. android:layout_width="fill_parent"
  15. android:layout_height="fill_parent"
  16. android:fillViewport="true">
  17. <LinearLayout
  18. android:layout_width="fill_parent"
  19. android:layout_height="fill_parent"
  20. android:orientation="vertical">
  21. <TextView
  22. android:layout_width="fill_parent"
  23. android:layout_height="wrap_content"
  24. android:padding="10dip"
  25. android:text="@string/conf_descrip"
  26. android:textAppearance="?android:attr/textAppearanceSmall" />
  27. <RadioGroup
  28. android:id="@+id/conf_location"
  29. android:layout_width="fill_parent"
  30. android:layout_height="wrap_content"
  31. android:paddingLeft="20dip"
  32. android:paddingRight="20dip"
  33. android:orientation="vertical">
  34. <RadioButton
  35. android:id="@+id/conf_current"
  36. android:layout_width="fill_parent"
  37. android:layout_height="wrap_content"
  38. android:checked="true"
  39. android:text="@string/conf_current"
  40. android:textAppearance="?android:attr/textAppearanceMedium" />
  41. <RadioButton
  42. android:id="@+id/conf_manual"
  43. android:layout_width="fill_parent"
  44. android:layout_height="wrap_content"
  45. android:text="@string/conf_manual"
  46. android:textAppearance="?android:attr/textAppearanceMedium" />
  47. </RadioGroup>
  48. <!--
  49. TODO: insert geolocation status message?
  50. -->
  51. <TextView
  52. android:layout_width="fill_parent"
  53. android:layout_height="wrap_content"
  54. android:padding="10dip"
  55. android:text="@string/conf_near"
  56. android:textAppearance="?android:attr/textAppearanceSmall" />
  57. <EditText
  58. android:id="@+id/conf_title"
  59. android:layout_width="fill_parent"
  60. android:layout_height="wrap_content"
  61. android:layout_marginLeft="20dip"
  62. android:layout_marginRight="20dip"
  63. android:freezesText="true" />
  64. <TextView
  65. android:layout_width="fill_parent"
  66. android:layout_height="wrap_content"
  67. android:padding="10dip"
  68. android:text="@string/conf_units"
  69. android:textAppearance="?android:attr/textAppearanceSmall" />
  70. <RadioGroup
  71. android:id="@+id/conf_units"
  72. android:layout_width="fill_parent"
  73. android:layout_height="wrap_content"
  74. android:paddingLeft="20dip"
  75. android:paddingRight="20dip"
  76. android:paddingBottom="20dip"
  77. android:orientation="vertical">
  78. <RadioButton
  79. android:id="@+id/conf_units_f"
  80. android:layout_width="fill_parent"
  81. android:layout_height="wrap_content"
  82. android:checked="true"
  83. android:text="@string/conf_units_f"
  84. android:textAppearance="?android:attr/textAppearanceMedium" />
  85. <RadioButton
  86. android:id="@+id/conf_units_c"
  87. android:layout_width="fill_parent"
  88. android:layout_height="wrap_content"
  89. android:text="@string/conf_units_c"
  90. android:textAppearance="?android:attr/textAppearanceMedium" />
  91. </RadioGroup>
  92. <View
  93. android:layout_width="fill_parent"
  94. android:layout_height="0dip"
  95. android:layout_weight="1" />
  96. <LinearLayout
  97. android:layout_width="fill_parent"
  98. android:layout_height="wrap_content"
  99. android:orientation="horizontal"
  100. style="@android:style/ButtonBar">
  101. <Button
  102. android:id="@+id/conf_map"
  103. android:layout_width="0dip"
  104. android:layout_height="wrap_content"
  105. android:layout_weight="1"
  106. android:text="@string/conf_map" />
  107. <Button
  108. android:id="@+id/conf_save"
  109. android:layout_width="0dip"
  110. android:layout_height="wrap_content"
  111. android:layout_weight="1"
  112. android:text="@string/conf_save" />
  113. </LinearLayout>
  114. </LinearLayout>
  115. </ScrollView>