magic_create.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<layout xmlns:android="http://schemas.android.com/apk/res/android">
  3
  4    <LinearLayout
  5
  6        android:layout_width="match_parent"
  7        android:layout_height="match_parent"
  8        android:orientation="vertical">
  9
 10        <include layout="@layout/toolbar" android:id="@+id/toolbar"/>
 11
 12        <ScrollView
 13            android:layout_width="match_parent"
 14            android:layout_height="match_parent"
 15            android:fillViewport="true">
 16
 17            <RelativeLayout
 18                android:layout_width="match_parent"
 19                android:layout_height="wrap_content"
 20                android:background="?attr/color_background_primary">
 21
 22                <LinearLayout
 23                    android:id="@+id/linearLayout"
 24                    android:layout_width="match_parent"
 25                    android:layout_height="wrap_content"
 26                    android:layout_alignParentStart="true"
 27                    android:layout_alignParentLeft="true"
 28                    android:layout_alignParentBottom="true"
 29                    android:minHeight="256dp"
 30                    android:orientation="vertical"
 31                    android:paddingLeft="16dp"
 32                    android:paddingRight="16dp"
 33                    android:paddingBottom="10dp">
 34
 35                    <Space
 36                        android:layout_width="match_parent"
 37                        android:layout_height="0dp"
 38                        android:layout_weight="1" />
 39
 40                    <TextView
 41                        android:id="@+id/title"
 42                        android:layout_width="wrap_content"
 43                        android:layout_height="wrap_content"
 44                        android:text="@string/pick_your_username"
 45                        android:textAppearance="@style/TextAppearance.Conversations.Title" />
 46
 47                    <TextView
 48                        android:id="@+id/instructions"
 49                        android:layout_width="wrap_content"
 50                        android:layout_height="wrap_content"
 51                        android:layout_marginTop="8dp"
 52                        android:text="@string/magic_create_text"
 53                        android:textAppearance="@style/TextAppearance.Conversations.Body1" />
 54
 55                    <EditText
 56                        android:id="@+id/username"
 57                        android:layout_width="match_parent"
 58                        android:layout_height="wrap_content"
 59                        android:layout_gravity="center_horizontal"
 60                        android:hint="@string/username_hint"
 61                        android:textColor="?attr/edit_text_color"
 62                        android:inputType="textNoSuggestions" />
 63
 64                    <TextView
 65                        android:id="@+id/full_jid"
 66                        android:layout_width="wrap_content"
 67                        android:layout_height="wrap_content"
 68                        android:layout_marginTop="8dp"
 69                        android:text="@string/your_full_jid_will_be"
 70                        android:textAppearance="@style/TextAppearance.Conversations.Caption"
 71                        android:visibility="invisible" />
 72
 73                    <Button
 74                        android:id="@+id/create_account"
 75                        style="@style/Widget.Conversations.Button.Borderless"
 76                        android:layout_width="wrap_content"
 77                        android:layout_height="wrap_content"
 78                        android:layout_gravity="right"
 79                        android:text="@string/next"
 80                        android:textColor="?colorAccent" />
 81                </LinearLayout>
 82
 83                <RelativeLayout
 84                    android:layout_width="match_parent"
 85                    android:layout_height="match_parent"
 86                    android:layout_above="@+id/linearLayout"
 87                    android:layout_alignParentStart="true"
 88                    android:layout_alignParentLeft="true">
 89
 90                    <ImageView
 91                        android:layout_width="wrap_content"
 92                        android:layout_height="wrap_content"
 93                        android:layout_centerHorizontal="true"
 94                        android:layout_centerVertical="true"
 95                        android:padding="8dp"
 96                        android:src="@drawable/main_logo" />
 97                </RelativeLayout>
 98            </RelativeLayout>
 99        </ScrollView>
100    </LinearLayout>
101</layout>