1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4* Copyright 2012, The Android Open Source Project
5*
6* Licensed under the Apache License, Version 2.0 (the "License");
7* you may not use this file except in compliance with the License.
8* You may obtain a copy of the License at
9*
10*     http://www.apache.org/licenses/LICENSE-2.0
11*
12* Unless required by applicable law or agreed to in writing, software
13* distributed under the License is distributed on an "AS IS" BASIS,
14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15* See the License for the specific language governing permissions and
16* limitations under the License.
17*/
18-->
19<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20              android:layout_width="match_parent"
21              android:layout_height="match_parent"
22              android:orientation="vertical"
23              android:divider="?android:attr/dividerHorizontal"
24              android:showDividers="middle"
25              android:dividerPadding="0dip">
26    <FrameLayout android:layout_width="match_parent"
27                 android:layout_height="wrap_content"
28                 android:layout_weight="1">
29        <GridView
30            android:layout_gravity="center"
31            android:layout_width="wrap_content"
32            android:layout_height="match_parent"
33            android:id="@+id/resolver_grid"
34            android:numColumns="4"
35            android:columnWidth="128dp"
36            android:padding="16dp"
37            android:clipToPadding="false"
38            android:scrollbarStyle="outsideOverlay" />
39    </FrameLayout>
40    <LinearLayout
41        android:id="@+id/button_bar"
42        android:visibility="gone"
43        style="?android:attr/buttonBarStyle"
44        android:layout_width="match_parent"
45        android:layout_height="wrap_content"
46        android:orientation="horizontal"
47        android:layoutDirection="locale"
48        android:measureWithLargestChild="true">
49        <Button android:id="@+id/button_always"
50                android:layout_width="wrap_content"
51                android:layout_gravity="end"
52                android:layout_weight="1"
53                android:maxLines="2"
54                android:minHeight="@dimen/alert_dialog_button_bar_height"
55                style="?android:attr/buttonBarButtonStyle"
56                android:textSize="14sp"
57                android:layout_height="wrap_content"
58                android:enabled="false"
59                android:text="@string/activity_resolver_use_always"
60                android:onClick="onButtonClick" />
61        <Button android:id="@+id/button_once"
62                android:layout_width="wrap_content"
63                android:layout_gravity="start"
64                android:layout_weight="1"
65                android:maxLines="2"
66                style="?android:attr/buttonBarButtonStyle"
67                android:textSize="14sp"
68                android:minHeight="@dimen/alert_dialog_button_bar_height"
69                android:layout_height="wrap_content"
70                android:enabled="false"
71                android:text="@string/activity_resolver_use_once"
72                android:onClick="onButtonClick" />
73    </LinearLayout>
74</LinearLayout>