• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 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<!-- Account Setup Layout - standard -->
18<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19            android:layout_width="match_parent"
20            android:layout_height="match_parent"
21            style="@style/account_setup_content"
22            android:fillViewport="true" >
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:orientation="vertical" >
27
28        <!-- Headline -->
29        <!-- Set headline for first fragment, change in code as we progress through screens -->
30        <TextView
31            android:id="@+id/headline"
32            android:layout_height="wrap_content"
33            android:layout_width="wrap_content"
34            android:text="@string/account_setup_options_headline"
35            style="@style/account_setup_headline" />
36
37        <!-- Primary Content -->
38        <FrameLayout
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:id="@+id/setup_fragment_content"
42            style="@style/account_setup_fragment_container"
43            />
44        <View
45            android:layout_width="match_parent"
46            android:layout_height="0dp"
47            android:layout_weight="1"/>
48
49        <!-- Buttons below that -->
50        <LinearLayout
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content"
53            android:paddingTop="@dimen/setup_nav_button_padding_top"
54            android:paddingLeft="@dimen/setup_nav_button_padding_side"
55            android:paddingRight="@dimen/setup_nav_button_padding_side"
56            android:paddingBottom="@dimen/setup_nav_button_padding_bottom"
57            android:orientation="horizontal">
58            <ImageButton
59                style="@style/account_setup_nav_button"
60                android:contentDescription="@string/previous"
61                android:id="@+id/previous"
62                android:layout_height="wrap_content"
63                android:layout_width="wrap_content"
64                android:src="@drawable/ic_nav_arrow_previous_button"
65                android:text="@string/next" />
66            <Button
67                android:id="@+id/manual_setup"
68                android:layout_height="wrap_content"
69                android:layout_width="wrap_content"
70                android:text="@string/account_setup_basics_manual_setup_action"
71                android:visibility="gone"
72                android:layout_gravity="center_vertical"
73                style="@style/account_setup_manual_button" />
74            <View
75                android:layout_height="match_parent"
76                android:layout_width="0dp"
77                android:layout_weight="1" />
78            <ImageButton
79                style="@style/account_setup_nav_button"
80                android:contentDescription="@string/next"
81                android:id="@+id/next"
82                android:layout_height="wrap_content"
83                android:layout_width="wrap_content"
84                android:src="@drawable/ic_nav_arrow_next_button"
85                android:text="@string/next" />
86        </LinearLayout>
87    </LinearLayout>
88</ScrollView>
89