| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- Layout for an static item displayed in the 2 pane dialog. --> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:focusable="true" |
| android:minHeight="@dimen/lb_dialog_list_item_min_height" |
| android:paddingBottom="@dimen/lb_dialog_list_item_vertical_padding" |
| android:paddingLeft="@dimen/lb_dialog_list_item_left_padding" |
| android:paddingRight="@dimen/lb_dialog_list_item_right_padding" |
| android:paddingTop="@dimen/lb_dialog_list_item_vertical_padding" > |
| |
| <ImageView |
| android:id="@+id/action_checkmark" |
| android:layout_width="@dimen/lb_dialog_list_item_checkmark_diameter" |
| android:layout_height="@dimen/lb_dialog_list_item_checkmark_diameter" |
| android:layout_gravity="center" |
| android:layout_marginRight="@dimen/lb_dialog_list_item_delimiter_padding" |
| android:scaleType="center" |
| android:src="@drawable/lb_dialog_list_item_checkmark" |
| android:visibility="invisible" |
| tools:ignore="ContentDescription" /> |
| |
| <ImageView |
| android:id="@+id/action_icon" |
| android:layout_width="@dimen/lb_dialog_list_item_icon_width" |
| android:layout_height="@dimen/lb_dialog_list_item_icon_height" |
| android:layout_gravity="center" |
| android:layout_marginRight="@dimen/lb_dialog_list_item_delimiter_padding" |
| android:scaleType="fitCenter" |
| android:visibility="gone" |
| tools:ignore="ContentDescription" /> |
| |
| <LinearLayout |
| android:id="@+id/action_content" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_gravity="left|center_vertical" |
| android:layout_weight="1" |
| android:orientation="vertical" > |
| |
| <TextView |
| android:id="@+id/action_title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:alpha="@string/lb_dialog_list_item_unselected_text_alpha" |
| android:ellipsize="marquee" |
| android:fontFamily="sans-serif-light" |
| android:maxLines="@integer/lb_dialog_action_title_min_lines" |
| android:textColor="@color/lb_dialog_list_item_unselected_text_color" |
| android:textSize="@dimen/lb_dialog_list_item_description_font_size" /> |
| |
| <View |
| android:layout_width="fill_parent" |
| android:layout_height="1dp" |
| android:layout_marginTop="6dp" |
| android:alpha="@string/lb_dialog_list_item_unselected_text_alpha" |
| android:background="@color/lb_dialog_list_item_unselected_text_color"/> |
| |
| </LinearLayout> |
| |
| <ImageView |
| android:id="@+id/action_next_chevron" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:layout_marginLeft="@dimen/lb_dialog_list_item_delimiter_padding" |
| android:scaleType="fitCenter" |
| android:src="@drawable/lb_ic_list_chevron" |
| android:visibility="gone" |
| tools:ignore="ContentDescription" /> |
| |
| </LinearLayout> |