• 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 -->
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="vertical" >
22    <ScrollView
23        android:layout_width="match_parent"
24        android:layout_height="0dp"
25        android:layout_weight="1"
26        style="@style/account_setup_content" >
27        <LinearLayout
28            android:layout_width="match_parent"
29            android:layout_height="wrap_content"
30            android:orientation="vertical" >
31
32            <!-- Headline -->
33            <!-- Set headline for first fragment, change in code as we progress through screens -->
34            <TextView
35                android:id="@+id/headline"
36                android:layout_height="wrap_content"
37                android:layout_width="wrap_content"
38                android:text="@string/account_setup_options_headline"
39                style="@style/account_setup_headline" />
40
41            <!-- Primary Content -->
42            <FrameLayout
43                android:layout_width="match_parent"
44                android:layout_height="wrap_content"
45                android:id="@+id/setup_fragment_content"
46                style="@style/account_setup_fragment_container"
47                />
48
49        </LinearLayout>
50    </ScrollView>
51        <!-- Buttons below that -->
52    <LinearLayout
53        android:layout_width="match_parent"
54        android:layout_height="wrap_content"
55        android:minHeight="56dp"
56        android:orientation="horizontal"
57        android:background="@color/account_setup_button_bar_background" >
58        <TextView
59            android:id="@+id/previous"
60            android:layout_height="wrap_content"
61            android:layout_width="wrap_content"
62            android:layout_gravity="center_vertical"
63            android:drawableStart="@drawable/ic_prev"
64            android:drawableLeft="@drawable/ic_prev"
65            android:drawablePadding="@dimen/setup_nav_button_drawable_padding"
66            android:text="@string/previous"
67            style="@style/account_setup_nav_button" />
68        <TextView
69            android:id="@+id/manual_setup"
70            android:layout_height="wrap_content"
71            android:layout_width="wrap_content"
72            android:layout_gravity="center_vertical"
73            android:text="@string/account_setup_basics_manual_setup_action"
74            android:visibility="gone"
75            style="@style/account_setup_nav_button" />
76        <Space
77            android:layout_width="0dp"
78            android:layout_height="match_parent"
79            android:layout_weight="1" />
80        <TextView
81            android:id="@+id/next"
82            android:layout_height="wrap_content"
83            android:layout_width="wrap_content"
84            android:layout_gravity="center_vertical"
85            android:drawableEnd="@drawable/ic_next"
86            android:drawableRight="@drawable/ic_next"
87            android:drawablePadding="@dimen/setup_nav_button_drawable_padding"
88            android:text="@string/next"
89            style="@style/account_setup_nav_button" />
90    </LinearLayout>
91</LinearLayout>
92