You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
4.4 KiB
119 lines
4.4 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="@color/background">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="@color/surface"
|
|
android:elevation="4dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:padding="24dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_register"
|
|
android:textSize="24sp"
|
|
android:textColor="@color/text_primary"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="32dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:gravity="center_vertical">
|
|
|
|
<EditText
|
|
android:id="@+id/et_register_username"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_username"
|
|
android:inputType="text"
|
|
android:maxLines="1"
|
|
android:layout_marginBottom="16dp"
|
|
android:padding="12dp"
|
|
android:background="@drawable/edit_white" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_register_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_login_password"
|
|
android:inputType="textPassword"
|
|
android:maxLines="1"
|
|
android:layout_marginBottom="16dp"
|
|
android:padding="12dp"
|
|
android:background="@drawable/edit_white" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_register_confirm_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_confirm_password"
|
|
android:inputType="textPassword"
|
|
android:maxLines="1"
|
|
android:layout_marginBottom="24dp"
|
|
android:padding="12dp"
|
|
android:background="@drawable/edit_white" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="8dp">
|
|
|
|
<Button
|
|
android:id="@+id/btn_register_cancel"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/cancel"
|
|
android:layout_marginEnd="8dp"
|
|
android:backgroundTint="@color/surface"
|
|
android:textColor="@color/text_primary" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_register"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/btn_register"
|
|
android:layout_marginStart="8dp"
|
|
android:backgroundTint="@color/primary"
|
|
android:textColor="@color/on_primary" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|