suggestion_item.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /* //device/apps/common/assets/res/any/layout/simple_spinner_item.xml
  4. **
  5. ** Copyright 2010, The Android Open Source Project
  6. **
  7. ** Licensed under the Apache License, Version 2.0 (the "License");
  8. ** you may not use this file except in compliance with the License.
  9. ** You may obtain a copy of the License at
  10. **
  11. ** http://www.apache.org/licenses/LICENSE-2.0
  12. **
  13. ** Unless required by applicable law or agreed to in writing, software
  14. ** distributed under the License is distributed on an "AS IS" BASIS,
  15. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. ** See the License for the specific language governing permissions and
  17. ** limitations under the License.
  18. */
  19. -->
  20. <LinearLayout
  21. xmlns:android="http://schemas.android.com/apk/res/android"
  22. android:layout_width="match_parent"
  23. android:layout_height="48dip"
  24. android:orientation="horizontal"
  25. android:gravity="center_vertical"
  26. android:baselineAligned="false"
  27. >
  28. <LinearLayout
  29. android:id="@+id/suggestion"
  30. android:layout_width="0dip"
  31. android:layout_height="match_parent"
  32. android:layout_weight="1"
  33. android:orientation="horizontal"
  34. android:background="?android:attr/selectableItemBackground"
  35. android:padding="0dp">
  36. <ImageView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:id="@+id/icon1"
  40. android:layout_gravity="center_vertical"
  41. android:layout_marginLeft="@dimen/suggest_item_padding"
  42. android:layout_marginRight="@dimen/suggest_item_padding" />
  43. <LinearLayout
  44. android:layout_width="0dip"
  45. android:layout_height="wrap_content"
  46. android:layout_weight="1"
  47. android:layout_gravity="center_vertical"
  48. android:orientation="vertical">
  49. <TextView
  50. android:id="@android:id/text1"
  51. style="@style/SuggestionLineMedium"
  52. android:maxLines="1"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content" />
  55. <TextView
  56. android:id="@android:id/text2"
  57. style="@style/SuggestionLineSmall"
  58. android:singleLine="true"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content" />
  61. </LinearLayout>
  62. </LinearLayout>
  63. <ImageView
  64. android:layout_width="wrap_content"
  65. android:layout_height="match_parent"
  66. android:id="@+id/divider"
  67. android:scaleType="center"
  68. android:background="@*android:drawable/list_divider_holo_light"
  69. />
  70. <ImageView
  71. android:layout_width="wrap_content"
  72. android:layout_height="match_parent"
  73. android:id="@+id/icon2"
  74. android:scaleType="center"
  75. android:src="@drawable/ic_querybuilder"
  76. android:background="?android:attr/selectableItemBackground"
  77. android:paddingRight="@dimen/suggest_item_padding"
  78. android:paddingLeft="@dimen/suggest_item_padding"
  79. />
  80. </LinearLayout>