title_bar_snapshot.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.SnapshotBar
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:orientation="horizontal"
  19. android:background="@drawable/bg_urlbar">
  20. <ImageView
  21. android:src="@drawable/ic_search_category_history"
  22. android:layout_width="wrap_content"
  23. android:layout_height="match_parent"
  24. android:paddingLeft="8dip" />
  25. <ImageView
  26. android:id="@+id/favicon"
  27. android:layout_width="52dip"
  28. android:layout_height="match_parent"
  29. android:paddingLeft="16dip"
  30. android:paddingRight="16dip"
  31. android:scaleType="fitCenter" />
  32. <FrameLayout
  33. android:id="@+id/toggle_container"
  34. android:layout_width="0dip"
  35. android:layout_height="match_parent"
  36. android:layout_weight="1">
  37. <TextView
  38. android:id="@+id/title"
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. android:singleLine="true"
  42. android:gravity="center_vertical"
  43. android:textAppearance="?android:attr/textAppearanceMedium" />
  44. <TextView
  45. android:id="@+id/date"
  46. android:layout_width="wrap_content"
  47. android:layout_height="match_parent"
  48. android:singleLine="true"
  49. android:gravity="center_vertical"
  50. android:textAppearance="?android:attr/textAppearanceMedium" />
  51. </FrameLayout>
  52. <ImageButton
  53. android:id="@+id/tab_switcher"
  54. android:layout_width="wrap_content"
  55. android:layout_height="match_parent"
  56. android:src="@drawable/ic_windows_holo_dark"
  57. android:contentDescription="@string/accessibility_button_navscreen"
  58. style="@style/HoloButton" />
  59. <ImageButton
  60. android:id="@+id/more"
  61. android:layout_width="wrap_content"
  62. android:layout_height="match_parent"
  63. style="@style/HoloButton"
  64. android:gravity="center_vertical"
  65. android:src="@*android:drawable/ic_menu_moreoverflow_normal_holo_dark"
  66. android:contentDescription="@string/accessibility_button_more" />
  67. </com.android.browser.SnapshotBar>