Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* //device/apps/common/assets/res/any/layout/simple_spinner_item.xml |
| 4 | ** |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 5 | ** Copyright 2010, The Android Open Source Project |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 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 | |
| 21 | <LinearLayout |
| 22 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 23 | android:layout_width="match_parent" |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 24 | android:layout_height="wrap_content" |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 25 | android:orientation="horizontal" |
| 26 | android:gravity="center_vertical" |
| 27 | android:baselineAligned="false"> |
| 28 | <ImageView |
| 29 | android:layout_width="wrap_content" |
| 30 | android:layout_height="wrap_content" |
| 31 | android:id="@+id/icon1" |
| 32 | android:scaleType="center" |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 33 | style="@style/HoloButton" /> |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 34 | <TwoLineListItem |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 35 | android:paddingTop="16dip" |
| 36 | android:paddingBottom="16dip" |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 37 | android:layout_width="0dip" |
| 38 | android:layout_weight="1" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:mode="twoLine"> |
| 41 | <TextView |
| 42 | android:id="@android:id/text1" |
| 43 | style="?android:attr/dropDownItemStyle" |
| 44 | android:textAppearance="?android:attr/textAppearanceLargeInverse" |
| 45 | android:singleLine="true" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="wrap_content" /> |
| 48 | <TextView |
| 49 | android:id="@android:id/text2" |
| 50 | style="?android:attr/dropDownItemStyle" |
| 51 | android:textAppearance="?android:attr/textAppearanceSmallInverse" |
| 52 | android:textColor="#323232" |
| 53 | android:singleLine="true" |
| 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:layout_below="@android:id/text1" |
| 57 | android:layout_alignLeft="@android:id/text1" /> |
| 58 | </TwoLineListItem> |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 59 | <ImageButton |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:id="@+id/icon2" |
| 63 | android:scaleType="center" |
| 64 | style="@style/HoloButton" |
| 65 | android:src="@drawable/ic_add_string" |
| 66 | android:background="@drawable/browserbarbutton" |
| 67 | /> |
Michael Kolb | fe25199 | 2010-07-08 15:41:55 -0700 | [diff] [blame] | 68 | </LinearLayout> |