GoogleGit

blob: 448f89abc31d06d5e8c06afa930d9d7be4acb920 [file] [log] [blame]
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2006 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. <!-- Layout for a Preference in a PreferenceActivity. The
  14. Preference is able to place a specific widget for its particular
  15. type in the "widget_frame" layout. -->
  16. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:minHeight="?android:attr/listPreferredItemHeight"
  20. android:gravity="center_vertical"
  21. android:paddingRight="?android:attr/scrollbarSize"
  22. android:background="?android:attr/selectableItemBackground" >
  23. <ImageView
  24. android:id="@+android:id/icon"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_gravity="center"
  28. />
  29. <RelativeLayout
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_marginLeft="15dip"
  33. android:layout_marginRight="6dip"
  34. android:layout_marginTop="6dip"
  35. android:layout_marginBottom="6dip"
  36. android:layout_weight="1">
  37. <TextView android:id="@+android:id/title"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:singleLine="true"
  41. android:textAppearance="?android:attr/textAppearanceLarge"
  42. android:ellipsize="marquee"
  43. android:fadingEdge="horizontal" />
  44. <TextView android:id="@+android:id/summary"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_below="@android:id/title"
  48. android:layout_alignLeft="@android:id/title"
  49. android:textAppearance="?android:attr/textAppearanceSmall"
  50. android:textColor="?android:attr/textColorSecondary"
  51. android:maxLines="4" />
  52. </RelativeLayout>
  53. <!-- Preference should place its actual preference widget here. -->
  54. <LinearLayout android:id="@+android:id/widget_frame"
  55. android:layout_width="wrap_content"
  56. android:layout_height="match_parent"
  57. android:gravity="center_vertical"
  58. android:orientation="vertical" />
  59. </LinearLayout>