• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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<!-- Small-screen holder - see layout-xlarge for large-screen version -->
18<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:fillViewport="true">
22
23    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:paddingTop="@dimen/setup_fragment_padding_top"
27        android:paddingLeft="@dimen/setup_fragment_padding_left"
28        android:paddingRight="@dimen/setup_fragment_padding_right"
29        >
30
31        <!-- Frame on the left containing the (common) setup info -->
32        <!-- TODO need phone-sized UX here -->
33        <FrameLayout
34            android:id="@+id/common"
35            android:layout_below="@+id/top_divider"
36            android:layout_alignParentLeft="true"
37            android:layout_alignParentRight="true"
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:layout_weight="1"
41            >
42            <include
43                layout="@layout/account_setup_basics_common"
44                />
45        </FrameLayout>
46
47        <!-- Buttons below -->
48        <!-- In order to show these buttons above the IME keyboard, we need to special case the to
49        padding to a smaller height. -->
50        <LinearLayout
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content"
53            android:layout_below="@+id/common"
54            android:orientation="horizontal"
55            android:paddingTop="16dip"
56            android:paddingBottom="@dimen/settings_buttons_padding_bottom"
57            >
58            <Button
59                android:id="@+id/manual_setup"
60                style="@style/accountSetupButton"
61                android:layout_width="0dip"
62                android:layout_weight="1"
63                android:text="@string/account_setup_basics_manual_setup_action" />
64            <Button
65                android:id="@+id/next"
66                style="@style/accountSetupButton"
67                android:layout_width="0dip"
68                android:layout_weight="1"
69                android:text="@string/next_action" />
70        </LinearLayout>
71
72    </RelativeLayout>
73
74</ScrollView>
75