Signup Page App Ui Design

Jan 2, 2024 - 16:29
Jan 2, 2024 - 16:41
 0  23

Signup Page App Ui Design

 

Step 01. Add this in your setting.gradle file

repositories {
    google()
    mavenCentral()
    jcenter()
    maven { url "https://jitpack.io" }
}

Step 02.Add this in your root directory build.gradle file

//Shape style
implementation 'com.github.fornewid:neumorphism:0.3.2'
//Lottie animation
implementation "com.airbnb.android:lottie:3.4.0"

Step 03.Add this in your Activity Xml Code


    

xml version="1.0" encoding="utf-8"?>
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:background="@color/background_white"
tools:context=".SignInActivity">

android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/_7sdp"
android:fontFamily="@font/russoone_regular"
android:text="Welcome to Dot Com"
android:textColor="@color/black"
android:textSize="@dimen/_20ssp"
app:layout_constraintBottom_toTopOf="@+id/textView2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/_15sdp"
android:layout_marginTop="@dimen/_10sdp"
android:layout_marginEnd="@dimen/_15sdp"
android:layout_marginBottom="@dimen/_20sdp"
android:fontFamily="@font/kalam_regular"
android:gravity="center"
android:text="Do you want your monthly hand consumption?Here is this soliution,earn here without any investment by playing different types of games."
android:textColor="@color/black"
android:textSize="@dimen/_13ssp"
app:layout_constraintBottom_toTopOf="@+id/lottieAnimationView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

android:id="@+id/lottieAnimationView"
android:layout_width="@dimen/_250sdp"
android:layout_height="@dimen/_250sdp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:lottie_autoPlay="true"
app:lottie_loop="true"
app:lottie_rawRes="@raw/signup" />

style="@style/Widget.Neumorph.CardView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/textView3"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lottieAnimationView"
app:neumorph_lightSource="leftTop"
app:neumorph_shapeType="flat">

android:id="@+id/signInBtn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">

android:layout_width="@dimen/_25sdp"
android:layout_height="@dimen/_25sdp"
android:layout_marginStart="@dimen/_20sdp"
android:layout_marginTop="@dimen/_7sdp"
android:layout_marginBottom="@dimen/_7sdp"
android:src="@drawable/google" />

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/_7sdp"
android:layout_marginEnd="@dimen/_20sdp"
android:fontFamily="@font/anton_regular"
android:text="Continue with google"
android:textSize="@dimen/_17ssp" />



android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/_10sdp"
android:layout_marginEnd="@dimen/_10sdp"
android:layout_marginBottom="@dimen/_10sdp"
android:fontFamily="@font/roboto"
android:gravity="center"
android:text="By signin up with our Terms of Service and Privacy and Policy"
android:textColor="@color/black"
android:textSize="@dimen/_12ssp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />





Step 04.Add this in your Activity Java code

TextView textView = findViewById(R.id.textView3);
String fullText = "By signing up with our Terms of Service and Privacy and Policy";
SpannableString spannableString = new SpannableString(fullText);
int blueColor = Color.BLUE;
spannableString.setSpan(new ForegroundColorSpan(blueColor), fullText.indexOf("Terms"), fullText.indexOf("Terms") + "Terms".length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
spannableString.setSpan(new ForegroundColorSpan(blueColor), fullText.indexOf("Service"), fullText.indexOf("Service") + "Service".length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
spannableString.setSpan(new ForegroundColorSpan(blueColor), fullText.indexOf("Privacy"), fullText.indexOf("Privacy") + "Privacy".length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
spannableString.setSpan(new ForegroundColorSpan(blueColor), fullText.indexOf("Policy"), fullText.indexOf("Policy") + "Policy".length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
textView.setText(spannableString);

 

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow