/WebVox/res/layout/browser_add_bookmark.xml

http://eyes-free.googlecode.com/ · XML · 106 lines · 80 code · 12 blank · 14 comment · 0 complexity · 3e823f4ecab3b5e4bf64849704c71127 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2007 The Android Open Source Project
  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. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14. android:layout_width="fill_parent"
  15. android:layout_height="wrap_content"
  16. android:orientation="vertical"
  17. >
  18. <ImageView android:id="@+id/titleDivider"
  19. android:layout_width="fill_parent"
  20. android:layout_height="1dip"
  21. android:scaleType="fitXY"
  22. android:gravity="fill_horizontal"
  23. android:src="@drawable/dialog_divider_horizontal_light"
  24. android:layout_marginLeft="10dip"
  25. android:layout_marginRight="10dip"/>
  26. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  27. android:layout_width="fill_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_weight="1"
  30. android:orientation="vertical"
  31. android:paddingTop="5dip"
  32. android:paddingBottom="13dip"
  33. android:paddingLeft="20dip"
  34. android:paddingRight="20dip" >
  35. <TextView
  36. android:id="@+id/titleText"
  37. android:layout_height="wrap_content"
  38. android:layout_width="wrap_content"
  39. android:text="@string/name"
  40. android:gravity="left"
  41. android:textAppearance="?android:attr/textAppearanceMedium" />
  42. <EditText
  43. android:id="@+id/title"
  44. android:layout_height="wrap_content"
  45. android:layout_width="250dip"
  46. android:gravity="fill_horizontal"
  47. android:inputType="textCapSentences"
  48. android:selectAllOnFocus="true"
  49. android:textAppearance="?android:attr/textAppearanceMedium" />
  50. <TextView
  51. android:id="@+id/addressText"
  52. android:layout_height="wrap_content"
  53. android:layout_width="wrap_content"
  54. android:text="@string/location"
  55. android:gravity="left"
  56. android:textAppearance="?android:attr/textAppearanceMedium" />
  57. <EditText
  58. android:id="@+id/address"
  59. android:layout_height="wrap_content"
  60. android:layout_width="250dip"
  61. android:hint="@string/http"
  62. android:gravity="fill_horizontal"
  63. android:inputType="textUri"
  64. android:selectAllOnFocus="true"
  65. android:textAppearance="?android:attr/textAppearanceMedium" />
  66. </LinearLayout>
  67. <LinearLayout
  68. android:layout_width="fill_parent"
  69. android:layout_height="wrap_content"
  70. android:background="#c6c3c6"
  71. android:minHeight="54dip"
  72. android:orientation="horizontal"
  73. android:paddingTop="4dip"
  74. android:paddingLeft="2dip"
  75. android:paddingRight="2dip" >
  76. <Button android:id="@+id/OK"
  77. android:text="@string/save"
  78. android:layout_width="0dip"
  79. android:layout_gravity="left"
  80. android:layout_weight="1"
  81. android:maxLines="2"
  82. android:layout_height="wrap_content" />
  83. <Button android:id="@+id/cancel"
  84. android:text="@string/do_not_save"
  85. android:layout_width="0dip"
  86. android:layout_gravity="right"
  87. android:layout_weight="1"
  88. android:maxLines="2"
  89. android:layout_height="wrap_content" />
  90. </LinearLayout>
  91. </LinearLayout>