title_bar_nav.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2011, The Android Open Source Project
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <com.android.browser.NavigationBarTablet
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:orientation="horizontal"
  17. android:background="@drawable/bg_urlbar">
  18. <LinearLayout
  19. android:id="@+id/navbuttons"
  20. android:layout_width="wrap_content"
  21. android:layout_height="match_parent"
  22. android:orientation="horizontal">
  23. <ImageButton
  24. android:id="@+id/back"
  25. android:src="@drawable/ic_back_holo_dark"
  26. android:layout_width="wrap_content"
  27. android:layout_height="match_parent"
  28. android:contentDescription="@string/accessibility_button_back"
  29. style="@style/HoloButton" />
  30. <ImageButton
  31. android:id="@+id/forward"
  32. android:src="@drawable/ic_forward_holo_dark"
  33. android:layout_width="wrap_content"
  34. android:layout_height="match_parent"
  35. android:contentDescription="@string/accessibility_button_forward"
  36. style="@style/HoloButton" />
  37. <ImageButton
  38. android:id="@+id/stop"
  39. android:layout_width="wrap_content"
  40. android:layout_height="match_parent"
  41. style="@style/HoloButton"
  42. android:gravity="center_vertical"
  43. android:contentDescription="@string/accessibility_button_stop"
  44. android:src="@drawable/ic_stop_holo_dark" />
  45. </LinearLayout>
  46. <LinearLayout
  47. android:id="@+id/urlbar_focused"
  48. android:layout_width="0dip"
  49. android:layout_height="match_parent"
  50. android:layout_weight="1.0"
  51. android:orientation="horizontal"
  52. android:background="@drawable/url_background">
  53. <ImageView
  54. android:id="@+id/url_icon"
  55. android:layout_width="32dip"
  56. android:layout_height="20dip"
  57. android:src="@drawable/ic_web_holo_dark"
  58. android:layout_gravity="center" />
  59. <ImageView
  60. android:id="@+id/lock"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_gravity="center_vertical"
  64. android:layout_marginLeft="0dip"
  65. style="@style/HoloIcon"
  66. android:visibility="gone" />
  67. <com.android.browser.UrlInputView
  68. android:id="@+id/url"
  69. android:layout_width="0dip"
  70. android:layout_weight="1.0"
  71. android:layout_height="match_parent"
  72. android:paddingLeft="4dip"
  73. android:paddingRight="0dip"
  74. android:background="@null"
  75. android:textAppearance="?android:attr/textAppearanceMedium"
  76. android:hint="@string/search_hint"
  77. android:singleLine="true"
  78. android:ellipsize="end"
  79. android:lines="1"
  80. android:scrollHorizontally="true"
  81. android:inputType="textUri"
  82. android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
  83. style="@style/Suggestions" />
  84. <ImageButton
  85. android:id="@+id/star"
  86. android:src="@drawable/btn_imageview_star"
  87. android:layout_width="wrap_content"
  88. android:layout_height="match_parent"
  89. android:contentDescription="@string/accessibility_button_addbookmark"
  90. style="@style/HoloButton" />
  91. <ImageButton
  92. android:id="@+id/clear"
  93. android:src="@drawable/ic_stop_holo_dark"
  94. android:layout_width="wrap_content"
  95. android:layout_height="match_parent"
  96. android:contentDescription="@string/accessibility_button_clear"
  97. style="@style/HoloButton" />
  98. <ImageButton
  99. android:id="@+id/voice"
  100. android:src="@drawable/ic_voice_search_holo_dark"
  101. android:layout_width="wrap_content"
  102. android:layout_height="match_parent"
  103. android:contentDescription="@string/accessibility_button_voice"
  104. style="@style/HoloButton" />
  105. </LinearLayout>
  106. <ImageButton
  107. android:id="@+id/search"
  108. android:src="@drawable/ic_search_holo_dark"
  109. android:layout_width="wrap_content"
  110. android:layout_height="match_parent"
  111. android:gravity="center_vertical"
  112. android:contentDescription="@string/accessibility_button_search"
  113. style="@style/HoloButton" />
  114. <ImageButton
  115. android:id="@+id/all_btn"
  116. android:layout_width="wrap_content"
  117. android:layout_height="match_parent"
  118. android:scaleType="center"
  119. style="@style/HoloButton"
  120. android:contentDescription="@string/accessibility_button_bookmarks"
  121. android:src="@drawable/ic_bookmarks_history_holo_dark" />
  122. </com.android.browser.NavigationBarTablet>