webview_preview.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:minHeight="?android:attr/listPreferredItemHeight"
  17. android:gravity="center_vertical"
  18. android:paddingRight="?android:attr/scrollbarSize">
  19. <LinearLayout
  20. android:layout_width="wrap_content"
  21. android:layout_height="match_parent"
  22. android:gravity="center"
  23. android:minWidth="@*android:dimen/preference_icon_minWidth"
  24. android:orientation="horizontal">
  25. <ImageView
  26. android:id="@android:id/icon"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_gravity="center"
  30. android:minWidth="48dp"
  31. />
  32. </LinearLayout>
  33. <RelativeLayout
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_marginLeft="16dip"
  37. android:layout_marginRight="8dip"
  38. android:layout_marginTop="6dip"
  39. android:layout_marginBottom="6dip"
  40. android:layout_weight="1">
  41. <TextView android:id="@android:id/title"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:singleLine="true"
  45. android:textAppearance="?android:attr/textAppearanceMedium"
  46. android:ellipsize="marquee"
  47. android:fadingEdge="horizontal" />
  48. <TextView android:id="@android:id/summary"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:layout_below="@android:id/title"
  52. android:layout_alignLeft="@android:id/title"
  53. android:textAppearance="?android:attr/textAppearanceSmall"
  54. android:textColor="?android:attr/textColorSecondary"
  55. android:maxLines="4" />
  56. <!-- Preference should place its actual preference widget here. -->
  57. <LinearLayout android:id="@android:id/widget_frame"
  58. android:layout_width="wrap_content"
  59. android:layout_height="match_parent"
  60. android:layout_below="@android:id/summary"
  61. android:layout_alignLeft="@android:id/title"
  62. android:minWidth="@dimen/preference_widget_width"
  63. android:gravity="center"
  64. android:orientation="vertical" />
  65. <WebView
  66. android:id="@+id/webview"
  67. android:layout_width="match_parent"
  68. android:layout_height="180dp"
  69. android:layout_below="@android:id/summary"
  70. android:layout_toRightOf="@android:id/widget_frame"
  71. android:layout_alignParentRight="true" />
  72. </RelativeLayout>
  73. </LinearLayout>