/WebVox/res/layout/title_bar.xml

http://eyes-free.googlecode.com/ · XML · 85 lines · 66 code · 4 blank · 15 comment · 0 complexity · e79b8a534b22070d4c5af4c88e58a69f MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2009, 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. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:layout_width="fill_parent"
  16. android:layout_height="wrap_content"
  17. android:orientation="vertical"
  18. android:paddingLeft="8dip"
  19. android:paddingRight="12dip"
  20. android:paddingTop="2dip"
  21. android:paddingBottom="1dip"
  22. android:background="@drawable/search_plate_browser" >
  23. <ProgressBar android:id="@+id/progress_horizontal"
  24. style="?android:attr/progressBarStyleHorizontal"
  25. android:layout_width="fill_parent"
  26. android:layout_height="5dip"
  27. android:max="100"
  28. />
  29. <LinearLayout
  30. android:layout_width="fill_parent"
  31. android:layout_height="wrap_content"
  32. android:orientation="horizontal"
  33. >
  34. <LinearLayout android:id="@+id/title_bg"
  35. android:background="@drawable/title_text"
  36. android:layout_width="0dip"
  37. android:layout_weight="1.0"
  38. android:layout_height="wrap_content"
  39. android:gravity="center_vertical"
  40. android:orientation="horizontal"
  41. >
  42. <ImageView android:id="@+id/favicon"
  43. android:layout_width="20dip"
  44. android:layout_height="20dip"
  45. android:layout_marginLeft="3dip"
  46. />
  47. <ImageView android:id="@+id/lock"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_marginLeft="6dip"
  51. android:visibility="gone"
  52. />
  53. <TextView
  54. android:id="@+id/title"
  55. android:layout_height="wrap_content"
  56. android:layout_width="0dip"
  57. android:layout_weight="1.0"
  58. android:paddingLeft="8dip"
  59. android:paddingRight="6dip"
  60. android:textAppearance="?android:attr/textAppearanceMedium"
  61. android:textColor="@color/black"
  62. android:gravity="center_vertical"
  63. android:singleLine="true"
  64. android:ellipsize="end"
  65. />
  66. </LinearLayout>
  67. <ImageView
  68. android:id="@+id/rt_btn"
  69. android:layout_width="wrap_content"
  70. android:layout_height="fill_parent"
  71. android:layout_marginLeft="6dip"
  72. android:scaleType="center"
  73. android:layout_marginBottom="4dip"
  74. android:background="@drawable/btn_bookmark"
  75. android:src="@drawable/ic_btn_bookmarks"
  76. />
  77. </LinearLayout>
  78. </LinearLayout>