/WebVox/res/layout/bookmark_thumbnail.xml

http://eyes-free.googlecode.com/ · XML · 79 lines · 57 code · 6 blank · 16 comment · 0 complexity · 4268a6e5eaa56582a980f731acdf6774 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2008 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. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14. android:layout_width="fill_parent"
  15. android:layout_height="fill_parent"
  16. android:orientation="vertical"
  17. android:padding="0dip"
  18. >
  19. <ImageView android:id="@+id/thumb"
  20. android:src="@drawable/browser_thumbnail"
  21. android:scaleType="center"
  22. android:layout_height="wrap_content"
  23. android:layout_width="wrap_content"
  24. android:layout_gravity="center"
  25. />
  26. <!-- FIXME: Want to have a gradient over the thumb -->
  27. <!-- This holds the star for addbookmark -->
  28. <LinearLayout android:id="@+id/holder"
  29. android:layout_height="fill_parent"
  30. android:layout_width="fill_parent"
  31. android:orientation="horizontal"
  32. android:background="#99000000"
  33. android:gravity="center"
  34. android:layout_alignBottom="@+id/thumb"
  35. android:layout_alignTop="@+id/thumb"
  36. >
  37. <ImageView
  38. android:layout_height="wrap_content"
  39. android:layout_width="wrap_content"
  40. android:src="@drawable/ic_list_bookmark"
  41. />
  42. <TextView
  43. android:layout_height="wrap_content"
  44. android:layout_width="wrap_content"
  45. android:textAppearance="?android:attr/textAppearanceSmall"
  46. android:textStyle="bold"
  47. android:textColor="@color/white"
  48. android:text="@string/add_bookmark_short"
  49. />
  50. </LinearLayout>
  51. <TextView android:id="@+id/label"
  52. android:layout_width="fill_parent"
  53. android:layout_height="wrap_content"
  54. android:layout_gravity="bottom"
  55. android:textAppearance="?android:attr/textAppearanceSmall"
  56. android:textStyle="bold"
  57. android:textColor="@color/white"
  58. android:maxLines="1"
  59. android:paddingLeft="2dip"
  60. android:paddingRight="2dip"
  61. android:paddingTop="0dip"
  62. android:paddingBottom="0dip"
  63. android:layout_marginTop="0dip"
  64. android:scrollHorizontally="true"
  65. android:ellipsize="marquee"
  66. android:layout_below="@+id/thumb"
  67. android:layout_alignLeft="@+id/thumb"
  68. android:layout_alignRight="@+id/thumb"
  69. />
  70. </RelativeLayout>