Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:scrollbars="none"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
- tools:context=".MainActivity">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="200dp"
- android:background="@drawable/img_top"
- android:orientation="vertical">
- <com.google.android.material.appbar.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@android:color/transparent">
- <com.google.android.material.appbar.MaterialToolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:menu="@menu/menu"
- app:navigationIcon="@drawable/ic_back" />
- </com.google.android.material.appbar.AppBarLayout>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="24dp"
- android:layout_marginTop="4dp"
- android:text="@string/register"
- android:textColor="@color/white"
- android:textSize="32sp"
- android:textStyle="bold" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="24dp"
- android:text="@string/second_slogan"
- android:textColor="@color/white" />
- </LinearLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/margin"
- android:gravity="center">
- <de.hdodenhof.circleimageview.CircleImageView
- android:id="@+id/img_avatar"
- android:layout_width="150dp"
- android:layout_height="150dp"
- android:scaleType="centerCrop"
- android:src="@drawable/img_avatar" />
- <Button
- android:id="@+id/btn_add_avatar"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:layout_alignParentBottom="true"
- android:layout_marginStart="-25dp"
- android:layout_toEndOf="@+id/img_avatar"
- android:background="@drawable/ic_add" />
- </RelativeLayout>
- <com.google.android.material.textfield.TextInputLayout
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/margin"
- android:layout_marginTop="12dp"
- android:layout_marginEnd="@dimen/margin"
- android:textColorHint="@color/black"
- app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
- app:boxCornerRadiusBottomStart="@dimen/roundedBox"
- app:boxCornerRadiusTopEnd="@dimen/roundedBox"
- app:boxCornerRadiusTopStart="@dimen/roundedBox"
- app:endIconMode="clear_text"
- app:startIconDrawable="@drawable/ic_username"
- app:startIconTint="@color/black">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_username"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:hint="@string/username"
- android:inputType="text"
- android:maxLines="1" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/margin"
- android:layout_marginTop="12dp"
- android:layout_marginEnd="@dimen/margin"
- android:textColorHint="@color/black"
- app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
- app:boxCornerRadiusBottomStart="@dimen/roundedBox"
- app:boxCornerRadiusTopEnd="@dimen/roundedBox"
- app:boxCornerRadiusTopStart="@dimen/roundedBox"
- app:endIconMode="clear_text"
- app:startIconDrawable="@drawable/ic_email"
- app:startIconTint="@color/black">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_email"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:hint="@string/email"
- android:inputType="textEmailAddress"
- android:maxLines="1" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/margin"
- android:layout_marginTop="12dp"
- android:layout_marginEnd="@dimen/margin"
- android:textColorHint="@color/black"
- app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
- app:boxCornerRadiusBottomStart="@dimen/roundedBox"
- app:boxCornerRadiusTopEnd="@dimen/roundedBox"
- app:boxCornerRadiusTopStart="@dimen/roundedBox"
- app:endIconMode="clear_text"
- app:startIconDrawable="@drawable/ic_phone"
- app:startIconTint="@color/black">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_phone_number"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:hint="@string/phone_number"
- android:inputType="phone"
- android:maxLines="1" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/margin"
- android:layout_marginTop="12dp"
- android:layout_marginEnd="@dimen/margin"
- android:textColorHint="@color/black"
- app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
- app:boxCornerRadiusBottomStart="@dimen/roundedBox"
- app:boxCornerRadiusTopEnd="@dimen/roundedBox"
- app:boxCornerRadiusTopStart="@dimen/roundedBox"
- app:passwordToggleEnabled="true"
- app:startIconDrawable="@drawable/ic_password"
- app:startIconTint="@color/black">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_password"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:hint="@string/password"
- android:inputType="textPassword"
- android:maxLines="1" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/margin"
- android:layout_marginTop="12dp"
- android:layout_marginEnd="@dimen/margin"
- android:textColorHint="@color/black"
- app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
- app:boxCornerRadiusBottomStart="@dimen/roundedBox"
- app:boxCornerRadiusTopEnd="@dimen/roundedBox"
- app:boxCornerRadiusTopStart="@dimen/roundedBox"
- app:passwordToggleEnabled="true"
- app:startIconDrawable="@drawable/ic_password"
- app:startIconTint="@color/black">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/edt_confirm_password"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:hint="@string/confirm_password"
- android:inputType="textPassword"
- android:maxLines="1" />
- </com.google.android.material.textfield.TextInputLayout>
- <RadioGroup
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="12dp"
- android:gravity="center"
- android:orientation="horizontal">
- <RadioButton
- android:id="@+id/rb_male"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/male" />
- <RadioButton
- android:id="@+id/rb_female"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="24dp"
- android:text="@string/female" />
- </RadioGroup>
- <Button
- android:id="@+id/btn_sign_up"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_marginStart="@dimen/margin"
- android:layout_marginTop="@dimen/margin"
- android:layout_marginEnd="@dimen/margin"
- android:background="@drawable/rounded_button"
- android:text="@string/sign_up"
- android:textSize="22sp"
- android:textStyle="bold" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:gravity="center"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/already_have_an_account"
- android:textSize="16sp" />
- <Button
- android:id="@+id/tv_sign_in"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/sign_in"
- android:textAllCaps="false"
- android:textColor="@color/purple_200"
- android:textSize="16sp"
- android:textStyle="bold" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/margin"
- android:layout_marginTop="44dp"
- android:layout_marginEnd="@dimen/margin"
- android:gravity="center"
- android:orientation="horizontal">
- <View
- android:layout_width="wrap_content"
- android:layout_height="1dp"
- android:layout_weight="1"
- android:background="#BBBBBB" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginStart="4dp"
- android:layout_marginEnd="4dp"
- android:text="@string/or_sign_up_with"
- android:textSize="16sp" />
- <View
- android:layout_width="wrap_content"
- android:layout_height="1dp"
- android:layout_weight="1"
- android:background="#BBBBBB" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="44dp"
- android:gravity="center"
- android:orientation="horizontal">
- <ImageButton
- android:id="@+id/btn_google"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_marginEnd="12dp"
- android:background="@drawable/ic_google"
- android:contentDescription="@string/desc_image" />
- <ImageButton
- android:id="@+id/btn_fb"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_marginStart="12dp"
- android:layout_marginEnd="12dp"
- android:background="@drawable/ic_facebook"
- android:contentDescription="@string/desc_image" />
- <ImageButton
- android:id="@+id/btn_twitter"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_marginStart="12dp"
- android:background="@drawable/ic_twitter"
- android:contentDescription="@string/desc_image" />
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement