snapshot_item.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2011 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
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:padding="@dimen/combo_horizontalSpacing">
  18. <ImageView
  19. android:id="@+id/thumb"
  20. android:src="@drawable/thumbnail_bookmarks_widget_no_bookmark_holo"
  21. android:layout_width="@dimen/bookmarkThumbnailWidth"
  22. android:layout_height="@dimen/bookmarkThumbnailHeight"
  23. android:scaleType="centerCrop"
  24. android:cropToPadding="true"
  25. android:background="@drawable/border_thumb_bookmarks_widget_holo" />
  26. <TextView
  27. android:id="@+id/date"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_alignBottom="@id/thumb"
  31. android:layout_alignLeft="@id/thumb"
  32. android:layout_alignRight="@id/thumb"
  33. android:background="@drawable/overlay_url_bookmark_widget_holo"
  34. android:singleLine="true"
  35. android:ellipsize="end"
  36. android:textSize="14sp"
  37. android:typeface="sans"
  38. android:textColor="#AAAAAA"
  39. android:paddingLeft="6dip"
  40. android:paddingRight="2dip"
  41. android:gravity="center_vertical" />
  42. <TextView android:id="@+id/title"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_below="@+id/thumb"
  46. android:layout_alignLeft="@+id/thumb"
  47. android:layout_alignRight="@+id/thumb"
  48. android:layout_marginTop="6dip"
  49. android:paddingLeft="8dip"
  50. android:gravity="center_vertical"
  51. android:typeface="sans"
  52. android:textSize="12sp"
  53. android:textColor="#AAAAAA"
  54. android:lines="2" />
  55. <ImageView
  56. android:id="@+id/divider"
  57. android:src="?android:attr/dividerVertical"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_alignLeft="@+id/title"
  61. android:layout_alignTop="@+id/title"
  62. android:layout_alignBottom="@+id/title"
  63. android:scaleType="fitXY" />
  64. </RelativeLayout>