Browse Source

push

PankajBranch
pankaj 2 years ago
parent
commit
86b44f6b75
7 changed files with 476 additions and 2 deletions
  1. +60
    -0
      app/src/main/java/com/nivesh/production/niveshfd/partnerOnBoarding/ui/fragments1/getstart/GetStartedFragment.kt
  2. +20
    -0
      app/src/main/res/drawable/rounded_view.xml
  3. +15
    -0
      app/src/main/res/drawable/upload_background.xml
  4. +361
    -0
      app/src/main/res/layout/fragment_get_started.xml
  5. +6
    -0
      app/src/main/res/values-hi-rIN/strings.xml
  6. +6
    -0
      app/src/main/res/values-night/strings.xml
  7. +8
    -2
      app/src/main/res/values/strings.xml

+ 60
- 0
app/src/main/java/com/nivesh/production/niveshfd/partnerOnBoarding/ui/fragments1/getstart/GetStartedFragment.kt View File

@ -0,0 +1,60 @@
package com.nivesh.production.niveshfd.partnerOnBoarding.ui.fragments1.getstart
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.nivesh.production.niveshfd.R
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"
/**
* A simple [Fragment] subclass.
* Use the [GetStarted.newInstance] factory method to
* create an instance of this fragment.
*/
class GetStarted : Fragment() {
// TODO: Rename and change types of parameters
private var param1: String? = null
private var param2: String? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
param1 = it.getString(ARG_PARAM1)
param2 = it.getString(ARG_PARAM2)
}
}
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_get_started, container, false)
}
companion object {
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment GetStarted.
*/
// TODO: Rename and change types and number of parameters
@JvmStatic
fun newInstance(param1: String, param2: String) =
GetStarted().apply {
arguments = Bundle().apply {
putString(ARG_PARAM1, param1)
putString(ARG_PARAM2, param2)
}
}
}
}

+ 20
- 0
app/src/main/res/drawable/rounded_view.xml View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="1dp"
android:color="#F5F5F5" >
</stroke>
<solid android:color="#F5F5F5"/>
<corners
android:radius="12dp"/>
<padding
android:top="10dp"
android:bottom="10dp"
android:left="20dp"
android:right="20dp"/>
</shape>

+ 15
- 0
app/src/main/res/drawable/upload_background.xml View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="1dp"
android:color="#0050A1" >
</stroke>
<padding
android:top="10dp"
android:bottom="10dp"
android:left="20dp"
android:right="20dp"/>
</shape>

+ 361
- 0
app/src/main/res/layout/fragment_get_started.xml View File

@ -0,0 +1,361 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tool="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/margin_90"
android:fillViewport="true"
android:padding="@dimen/margin_15"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/signUp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/margin_10"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent">
<TextView
android:id="@+id/txtGetStart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="2"
android:padding="@dimen/margin_5"
android:text="@string/let_s_get_started"
android:textColor="@color/black"
android:textSize="@dimen/text_size_20"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/subHeader"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_8"
android:text="Start your online business in few steps"
android:textColor="@color/black"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/txtGetStart" />
<!--Full Name -->
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/tlArnNumber"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_22"
android:hint="@string/enter_your_arn_number"
android:padding="@dimen/margin_3"
app:layout_constraintTop_toBottomOf="@+id/subHeader">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtArnNumber"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:textColorHint="@color/greyColor2"
android:textSize="@dimen/text_size_14"
tool:ignore="TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
<!--Email -->
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/tlPanNumber"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_5"
android:hint="@string/enter_pan_card_number"
android:padding="@dimen/margin_3"
app:layout_constraintTop_toBottomOf="@+id/tlArnNumber">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtPanNumber"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:textColorHint="@color/greyColor2"
android:textSize="@dimen/text_size_14"
tool:ignore="TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
<!--Address Line 1 -->
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/tlFullNamePanCard"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_5"
android:hint="@string/full_name_as_on_pan_card"
android:padding="@dimen/margin_3"
app:layout_constraintTop_toBottomOf="@+id/tlPanNumber">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtFullNamePanCard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:textColorHint="@color/greyColor2"
android:textSize="@dimen/text_size_14"
tool:ignore="TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
<View
android:id="@+id/viewHelper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_16"
android:background="@drawable/rounded_view"
android:layout_marginBottom="@dimen/margin_16"
app:layout_constraintTop_toBottomOf="@+id/tlFullNamePanCard"
>
</View>
<TextView
android:id="@+id/addAddressProof"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/margin_4"
android:layout_marginStart="@dimen/margin_8"
android:text="Add ADDRESS PROOF"
android:textColor="@color/black"
android:textSize="@dimen/text_size_14"
android:textStyle="bold"
android:layout_marginTop="@dimen/margin_25"
app:layout_constraintTop_toBottomOf="@+id/tlFullNamePanCard"
app:layout_constraintStart_toStartOf= "parent"
app:layout_constraintHorizontal_chainStyle="spread"
app:layout_constraintHorizontal_bias="0.5"
/>
<TextView
android:id="@+id/format"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/margin_4"
android:text="@string/format_png_or_jpg"
android:textColor="#909090"
android:textSize="@dimen/text_size_14"
android:layout_marginTop="@dimen/margin_25"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tlFullNamePanCard"
/>
<TextView
android:id="@+id/docTypeHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/margin_4"
android:text="Choose the document type"
android:textColor="@color/black"
android:textSize="@dimen/text_size_14"
android:textStyle="bold"
android:layout_marginStart="@dimen/margin_8"
android:layout_marginTop="@dimen/margin_3"
app:layout_constraintTop_toBottomOf="@+id/addAddressProof"
app:layout_constraintStart_toStartOf= "parent"
/>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/spAddressType"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="@dimen/margin_48"
android:layout_marginTop="@dimen/margin_15"
android:layout_marginBottom="@dimen/margin_5"
android:layout_marginStart="@dimen/margin_8"
android:layout_marginEnd="@dimen/margin_15"
app:hintEnabled="false"
app:layout_constraintTop_toBottomOf="@+id/docTypeHeader">
<com.google.android.material.textfield.MaterialAutoCompleteTextView
android:id="@+id/spDocType"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/rounded_corner_with_line1"
android:hint="@string/addressProofType"
android:inputType="none"
android:padding="@dimen/margin_5"
android:labelFor="@+id/spInterestPayout"
android:textColorHint="@color/greyColor2"
android:textSize="@dimen/text_size_14"
/>
</com.google.android.material.textfield.TextInputLayout>
<TextView
android:id="@+id/txtFront"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/margin_4"
android:text="Front"
android:textColor="@color/black"
android:textSize="@dimen/text_size_14"
android:textStyle="bold"
android:layout_marginStart="@dimen/margin_8"
android:layout_marginTop="@dimen/margin_30"
app:layout_constraintTop_toBottomOf="@+id/spAddressType"
app:layout_constraintStart_toStartOf= "parent"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/uploadViewFront"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/txtFront"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginStart="@dimen/margin_8"
android:layout_marginTop="@dimen/margin_4"
app:layout_constraintHorizontal_chainStyle="spread_inside"
app:layout_constraintHorizontal_bias="0.5"
android:background="@drawable/upload_background">
<com.google.android.material.button.MaterialButton
android:id="@+id/uploadFront"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Upload"
android:backgroundTint="@color/white"
android:textColor="@color/red"
app:cornerRadius="@dimen/margin_15"
app:layout_constraintTop_toTopOf="@+id/uploadViewFront"
app:layout_constraintBottom_toBottomOf="@+id/uploadViewFront"
app:layout_constraintStart_toStartOf="@+id/uploadViewFront"
app:layout_constraintEnd_toEndOf="@+id/uploadViewFront"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/txtBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/margin_4"
android:text="Back"
android:textColor="@color/black"
android:textSize="@dimen/text_size_14"
android:textStyle="bold"
android:layout_marginTop="@dimen/margin_30"
app:layout_constraintTop_toBottomOf="@+id/spAddressType"
app:layout_constraintStart_toStartOf="@+id/uploadViewBack"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/uploadViewBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/txtBack"
android:layout_marginStart="@dimen/margin_25"
android:layout_marginTop="@dimen/margin_4"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toEndOf="@+id/uploadViewFront"
app:layout_constraintHorizontal_bias="0.5"
android:background="@drawable/upload_background">
<com.google.android.material.button.MaterialButton
android:id="@+id/uploadBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_15"
android:layout_marginEnd="@dimen/margin_5"
android:text="Upload"
android:backgroundTint="@color/white"
android:textColor="@color/red"
app:cornerRadius="@dimen/margin_15"
app:layout_constraintTop_toTopOf="@+id/uploadViewBack"
app:layout_constraintBottom_toBottomOf="@+id/uploadViewBack"
app:layout_constraintStart_toStartOf="@+id/uploadViewBack"
app:layout_constraintEnd_toEndOf="@+id/uploadViewBack"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
`
</androidx.core.widget.NestedScrollView>
<com.google.android.material.button.MaterialButton
android:id="@+id/saveDraft"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_15"
android:layout_marginEnd="@dimen/margin_5"
android:layout_marginBottom="@dimen/margin_20"
android:text="@string/save_draft"
android:backgroundTint="@color/white"
android:textColor="@color/red"
app:cornerRadius="@dimen/margin_15"
app:layout_constraintHorizontal_chainStyle="spread"
app:layout_constraintEnd_toStartOf="@+id/btnNext"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/btnNext"
app:layout_constraintBottom_toBottomOf="parent"
/>
<com.google.android.material.button.MaterialButton
android:id="@+id/btnNext"
android:layout_width="170dp"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/margin_20"
android:layout_marginStart="@dimen/margin_5"
android:layout_marginEnd="@dimen/margin_15"
android:text="@string/next"
android:textColor="@color/white"
android:backgroundTint="@color/red"
app:cornerRadius="@dimen/margin_15"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/saveDraft"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toRightOf="@+id/saveDraft"
app:layout_constraintRight_toRightOf="parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>

+ 6
- 0
app/src/main/res/values-hi-rIN/strings.xml View File

@ -276,6 +276,12 @@
<string name="mobileNumber">Mobile Number</string> <string name="mobileNumber">Mobile Number</string>
<string name="signUp">Sign Up</string> <string name="signUp">Sign Up</string>
<string name="continueText">CONTINUE</string> <string name="continueText">CONTINUE</string>
<string name="enter_pan_card_number">Enter PAN Card Number</string>
<string name="full_name_as_on_pan_card">Full name as on Pan card</string>
<string name="enter_your_arn_number">Enter your ARN number</string>
<string name="let_s_get_started">Let’s get started</string>
<string name="save_draft">SAVE DRAFT</string>
<string name="format_png_or_jpg">Format (.png or .jpg)</string>
</resources> </resources>

+ 6
- 0
app/src/main/res/values-night/strings.xml View File

@ -2,4 +2,10 @@
<resources> <resources>
<string name="add_new_account">Add New Account</string> <string name="add_new_account">Add New Account</string>
<string name="aadhar">Aadhar</string> <string name="aadhar">Aadhar</string>
<string name="enter_pan_card_number">Enter PAN Card Number</string>
<string name="full_name_as_on_pan_card">Full name as on Pan card</string>
<string name="enter_your_arn_number">Enter your ARN number</string>
<string name="let_s_get_started">Let’s get started</string>
<string name="save_draft">SAVE DRAFT</string>
<string name="format_png_or_jpg">Format (.png or .jpg)</string>
</resources> </resources>

+ 8
- 2
app/src/main/res/values/strings.xml View File

@ -262,8 +262,6 @@
<string name="validNRI">Sorry! We are not serving NRI residents at present.</string> <string name="validNRI">Sorry! We are not serving NRI residents at present.</string>
<!-- Partner OnBoarding --> <!-- Partner OnBoarding -->
<string name="hintEmailMobile">enter Mobile or Email</string> <string name="hintEmailMobile">enter Mobile or Email</string>
<string name="hintPassword">enter Password</string> <string name="hintPassword">enter Password</string>
@ -283,6 +281,14 @@
<string name="mobileNumber">Mobile Number</string> <string name="mobileNumber">Mobile Number</string>
<string name="signUp">Sign Up</string> <string name="signUp">Sign Up</string>
<string name="continueText">CONTINUE</string> <string name="continueText">CONTINUE</string>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
<string name="enter_pan_card_number">Enter PAN Card Number</string>
<string name="full_name_as_on_pan_card">Full name as on Pan card</string>
<string name="enter_your_arn_number">Enter your ARN number</string>
<string name="let_s_get_started">Let’s get started</string>
<string name="save_draft">SAVE DRAFT</string>
<string name="format_png_or_jpg">Format (.png or .jpg)</string>
</resources> </resources>

Loading…
Cancel
Save

Powered by TurnKey Linux.