| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2017 The Cobalt Authors. All Rights Reserved. |
| |
| 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. |
| --> |
| |
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/error_frame" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:focusable="true" |
| android:focusableInTouchMode="true" |
| android:descendantFocusability="afterDescendants" |
| android:nextFocusLeft="@id/error_frame" |
| android:nextFocusRight="@id/error_frame" |
| android:nextFocusUp="@id/error_frame" |
| android:nextFocusDown="@id/error_frame"> |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:orientation="vertical"> |
| |
| <ImageView |
| android:id="@+id/image" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/lb_error_image_max_height" |
| android:layout_gravity="center" /> |
| <TextView |
| android:id="@+id/message" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:maxWidth="@dimen/lb_error_message_max_width" |
| style="?attr/errorMessageStyle"/> |
| <Button |
| android:id="@+id/button_1" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:visibility="gone" |
| style="?android:attr/buttonStyle"/> |
| <Button |
| android:id="@+id/button_2" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:visibility="gone" |
| style="?android:attr/buttonStyle"/> |
| <Button |
| android:id="@+id/button_3" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:visibility="gone" |
| style="?android:attr/buttonStyle"/> |
| </LinearLayout> |
| |
| </FrameLayout> |