/WebVox/res/layout/tab_view.xml

http://eyes-free.googlecode.com/ · XML · 73 lines · 56 code · 1 blank · 16 comment · 0 complexity · 0056f32b0f0e904ecaaa8e796a9cb15a MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2009 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_height="wrap_content"
  15. android:minHeight="?android:attr/listPreferredItemHeight"
  16. android:layout_width="fill_parent"
  17. android:orientation="horizontal"
  18. android:gravity="center_vertical"
  19. >
  20. <!-- This ImageView has the same width as the ImageView in
  21. tab_view_add_tab.xml. -->
  22. <ImageView android:id="@+id/favicon"
  23. android:layout_width="20dip"
  24. android:layout_height="20dip"
  25. android:layout_marginLeft="18dip"
  26. android:layout_marginRight="18dip"
  27. android:background="@drawable/fav_icn_background"
  28. android:padding="2dip"/>
  29. <LinearLayout
  30. android:layout_width="0dip"
  31. android:layout_height="wrap_content"
  32. android:layout_weight="1"
  33. android:orientation="vertical"
  34. >
  35. <TextView android:id="@+id/title"
  36. android:layout_width="fill_parent"
  37. android:layout_height="wrap_content"
  38. android:textAppearance="?android:attr/textAppearanceMedium"
  39. android:maxLines="1"
  40. android:singleLine="true"
  41. android:ellipsize="end"
  42. />
  43. <TextView android:id="@+id/url"
  44. android:layout_width="fill_parent"
  45. android:layout_height="wrap_content"
  46. android:textAppearance="?android:attr/textAppearanceSmall"
  47. android:maxLines="1"
  48. android:singleLine="true"
  49. android:ellipsize="end"
  50. />
  51. </LinearLayout>
  52. <View android:id="@+id/divider"
  53. android:background="#ff313431"
  54. android:layout_width="1dip"
  55. android:layout_height="fill_parent"
  56. android:layout_marginLeft="8dip"
  57. android:layout_marginTop="5dip"
  58. android:layout_marginBottom="5dip"
  59. />
  60. <view class="com.marvin.webvox.ActiveTabsPage$CloseHolder" android:id="@+id/close"
  61. android:layout_width="wrap_content"
  62. android:layout_height="fill_parent"
  63. android:paddingLeft="18dip"
  64. android:paddingRight="18dip"
  65. android:background="@drawable/close_background"
  66. android:src="@drawable/btn_close_window"
  67. android:scaleType="center"
  68. />
  69. </LinearLayout>