1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:animateLayoutChanges="true" 19 android:layout_height="wrap_content" 20 android:layout_width="match_parent" 21 android:minHeight="?android:attr/listPreferredItemHeightSmall" 22 android:orientation="vertical" 23 android:paddingLeft="@dimen/list_item_padding" 24 android:paddingRight="@dimen/list_item_padding" 25 android:paddingTop="@dimen/list_item_padding"> 26 27 <LinearLayout 28 android:id="@+id/container_info" 29 android:layout_height="wrap_content" 30 android:layout_width="wrap_content" 31 android:orientation="horizontal" 32 android:visibility="gone"> 33 34 <FrameLayout 35 android:layout_height="@dimen/icon_size" 36 android:layout_width="@dimen/icon_size"> 37 38 <ImageView 39 android:contentDescription="@null" 40 android:id="@+id/icon_info" 41 android:layout_height="match_parent" 42 android:layout_width="wrap_content" 43 android:scaleType="centerInside"/> 44 45 </FrameLayout> 46 47 <TextView 48 android:id="@+id/textview_info" 49 android:layout_gravity="center_vertical" 50 android:layout_height="wrap_content" 51 android:layout_width="match_parent" 52 android:selectAllOnFocus="true"/> 53 54 </LinearLayout> 55 56 <LinearLayout 57 android:id="@+id/container_error" 58 android:layout_height="wrap_content" 59 android:layout_width="wrap_content" 60 android:orientation="horizontal" 61 android:visibility="gone"> 62 63 <FrameLayout 64 android:layout_height="@dimen/icon_size" 65 android:layout_width="@dimen/icon_size"> 66 67 <ImageView 68 android:contentDescription="@null" 69 android:id="@+id/icon_error" 70 android:layout_height="match_parent" 71 android:layout_width="wrap_content" 72 android:scaleType="centerInside"/> 73 74 </FrameLayout> 75 76 <TextView 77 android:id="@+id/textview_error" 78 android:layout_gravity="center_vertical" 79 android:layout_height="wrap_content" 80 android:layout_width="match_parent" 81 android:selectAllOnFocus="true"/> 82 83 </LinearLayout> 84 85 <LinearLayout 86 android:layout_gravity="right" 87 android:layout_height="wrap_content" 88 android:layout_width="wrap_content" 89 android:orientation="horizontal"> 90 91 <Button 92 android:id="@+id/button_dismiss" 93 android:layout_height="wrap_content" 94 android:layout_width="wrap_content" 95 android:text="@string/button_dismiss" 96 style="?android:attr/buttonBarPositiveButtonStyle"/> 97 98 </LinearLayout> 99 100</LinearLayout> 101