title_bar_nav.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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.NavigationBarPhone
  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/title_bg"
  20. android:layout_width="0dip"
  21. android:layout_weight="1.0"
  22. android:layout_height="match_parent"
  23. android:gravity="center_vertical"
  24. android:layout_marginLeft="8dip"
  25. android:layout_marginRight="8dip"
  26. android:orientation="horizontal">
  27. <ImageView
  28. android:id="@+id/magnify"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:paddingLeft="4dip"
  32. android:paddingRight="8dip"
  33. android:visibility="gone"
  34. android:src="@drawable/ic_search_category_suggest" />
  35. <ImageView
  36. android:id="@+id/incognito_icon"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:paddingLeft="4dip"
  40. android:visibility="gone"
  41. android:src="@drawable/ic_incognito_holo_dark" />
  42. <FrameLayout
  43. android:id="@+id/iconcombo"
  44. android:layout_width="44dip"
  45. android:layout_height="match_parent"
  46. android:contentDescription="@string/page_info"
  47. style="@style/HoloButton">
  48. <ImageView
  49. android:id="@+id/favicon"
  50. android:layout_width="32dip"
  51. android:layout_height="32dip"
  52. android:paddingLeft="4dip"
  53. android:paddingRight="8dip"
  54. android:layout_gravity="center" />
  55. <ImageView
  56. android:id="@+id/lock"
  57. android:layout_width="32dip"
  58. android:layout_height="32dip"
  59. android:layout_gravity="center"
  60. android:visibility="gone" />
  61. </FrameLayout>
  62. <ImageView
  63. android:id="@+id/stop"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_gravity="center_vertical"
  67. android:paddingLeft="4dip"
  68. android:contentDescription="@string/accessibility_button_stop"
  69. android:src="@drawable/ic_stop_holo_dark"
  70. style="@style/HoloButton" />
  71. <com.android.browser.UrlInputView
  72. android:id="@+id/url"
  73. android:focusable="true"
  74. android:layout_width="0dip"
  75. android:layout_weight="1.0"
  76. android:layout_height="match_parent"
  77. android:fadingEdge="horizontal"
  78. android:fadingEdgeLength="24dip"
  79. android:textAppearance="?android:attr/textAppearanceMedium"
  80. android:hint="@string/search_hint"
  81. android:singleLine="true"
  82. android:ellipsize="end"
  83. android:lines="1"
  84. android:scrollHorizontally="true"
  85. android:inputType="textUri"
  86. android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
  87. style="@style/Suggestions"
  88. android:background="@null" />
  89. <ImageView
  90. android:id="@+id/voice"
  91. android:layout_width="wrap_content"
  92. android:layout_height="match_parent"
  93. android:paddingRight="4dip"
  94. android:contentDescription="@string/accessibility_button_voice"
  95. android:src="@drawable/ic_voice_search_holo_dark"
  96. style="@style/HoloButton"
  97. android:visibility="gone" />
  98. <ImageView
  99. android:id="@+id/clear"
  100. android:layout_width="wrap_content"
  101. android:layout_height="match_parent"
  102. android:paddingRight="4dip"
  103. android:contentDescription="@string/accessibility_button_clear"
  104. android:src="@drawable/ic_close_window_holo_dark"
  105. style="@style/HoloButton"
  106. android:visibility="gone" />
  107. </LinearLayout>
  108. <ImageButton
  109. android:id="@+id/tab_switcher"
  110. android:layout_width="wrap_content"
  111. android:layout_height="match_parent"
  112. android:contentDescription="@string/accessibility_button_navscreen"
  113. android:src="@drawable/ic_windows_holo_dark"
  114. style="@style/HoloButton" />
  115. <ImageButton
  116. android:id="@+id/more"
  117. android:layout_width="wrap_content"
  118. android:layout_height="match_parent"
  119. style="@style/HoloButton"
  120. android:gravity="center_vertical"
  121. android:contentDescription="@string/accessibility_button_more"
  122. android:src="@drawable/ic_menu_overflow" />
  123. </com.android.browser.NavigationBarPhone>