From 7f58417c691c4253b2711ab1c0b7053dc880c7cb Mon Sep 17 00:00:00 2001 From: Hemant Khadase Date: Tue, 20 Dec 2022 20:39:17 +0530 Subject: [PATCH] working on step 2 bajaj fd --- .../ui/fragment/StepTwoBajajFDFragment.kt | 526 +++++++++++++++--- .../nivesh/production/bajajfd/util/Common.kt | 23 + .../res/layout/fragment_bajajfd_step_two.xml | 366 ++++++------ app/src/main/res/values/strings.xml | 2 - 4 files changed, 663 insertions(+), 254 deletions(-) diff --git a/app/src/main/java/com/nivesh/production/bajajfd/ui/fragment/StepTwoBajajFDFragment.kt b/app/src/main/java/com/nivesh/production/bajajfd/ui/fragment/StepTwoBajajFDFragment.kt index 4797069..4c8ed32 100644 --- a/app/src/main/java/com/nivesh/production/bajajfd/ui/fragment/StepTwoBajajFDFragment.kt +++ b/app/src/main/java/com/nivesh/production/bajajfd/ui/fragment/StepTwoBajajFDFragment.kt @@ -1,16 +1,21 @@ package com.nivesh.production.bajajfd.ui.fragment -import android.R.attr -import android.R.attr.phoneNumber import android.os.Bundle +import android.text.Editable import android.text.InputFilter import android.text.InputFilter.LengthFilter +import android.text.TextWatcher import android.view.LayoutInflater import android.view.View import android.view.ViewGroup +import android.widget.ArrayAdapter import androidx.fragment.app.Fragment +import com.nivesh.production.bajajfd.R import com.nivesh.production.bajajfd.databinding.FragmentBajajfdStepTwoBinding import com.nivesh.production.bajajfd.interfaces.BajajFDInterface +import com.nivesh.production.bajajfd.ui.activity.BajajFdMainActivity +import com.nivesh.production.bajajfd.util.Common.Companion.commonErrorMethod +import com.nivesh.production.bajajfd.util.Common.Companion.commonSpinnerErrorMethod import com.nivesh.production.bajajfd.util.Common.Companion.isIndianMobileNo import com.nivesh.production.bajajfd.util.Common.Companion.isValidEmail import com.nivesh.production.bajajfd.util.Common.Companion.isValidName @@ -38,23 +43,402 @@ class StepTwoBajajFDFragment : Fragment() { bajajFDInterface = bajajFDInterfaces } - - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - - } - override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View { - _binding = FragmentBajajfdStepTwoBinding.inflate(inflater,container,false) + _binding = FragmentBajajfdStepTwoBinding.inflate(inflater, container, false) val root = binding.root + // Personal Details binding.edtMobileNumber.filters = arrayOf(LengthFilter(10)) binding.edtPANNumber.filters = arrayOf(LengthFilter(10)) + binding.edtMobileNumber.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlMobileNumber.error = null + } + }) + binding.edtDOB.setOnClickListener{ + + } + binding.edtPANNumber.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlPanNumber.error = null + } + }) + + val titleAdapter = ArrayAdapter( + activity as BajajFdMainActivity, + R.layout.spinner_dropdown, + resources.getStringArray( + R.array.title + ) + ) + binding.spTitle.setAdapter(titleAdapter) + binding.spTitle.setOnItemClickListener { parent, view, position, id -> + binding.tlTitle.error = null + } + + binding.edtFirstName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlFirstName.error = null + } + }) + binding.edtMiddleName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlMiddleName.error = null + } + }) + binding.edtLastName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlLastName.error = null + } + }) + + val genderAdapter = ArrayAdapter( + activity as BajajFdMainActivity, + R.layout.spinner_dropdown, + resources.getStringArray( + R.array.gender + ) + ) + binding.spGender.setAdapter(genderAdapter) + binding.spGender.setOnItemClickListener { parent, view, position, id -> + binding.tlGender.error = null + } + + binding.edtEmail.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlEmail.error = null + } + }) + binding.edtOccupation.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlOccupation.error = null + } + }) + binding.edtQualification.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlQualification.error = null + } + }) + + val maritalAdapter = ArrayAdapter( + activity as BajajFdMainActivity, + R.layout.spinner_dropdown, + resources.getStringArray( + R.array.maritalStatus + ) + ) + binding.spMarital.setAdapter(maritalAdapter) + binding.spMarital.setOnItemClickListener { parent, view, position, id -> + binding.tlMarital.error = null + } + + val relationShipAdapter = ArrayAdapter( + activity as BajajFdMainActivity, + R.layout.spinner_dropdown, + resources.getStringArray( + R.array.maritalStatus + ) + ) + binding.spRelation.setAdapter(relationShipAdapter) + binding.spRelation.setOnItemClickListener { parent, view, position, id -> + binding.tlRelation.error = null + } + + binding.edtRelationName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlRelationName.error = null + } + }) + binding.edtAddressLine1.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlAddressLine1.error = null + } + }) + binding.edtAddressLine2.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlAddressLine2.error = null + } + }) + binding.edtState.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlState.error = null + } + }) + binding.edtCity.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlCity.error = null + } + }) + binding.edtPinCode.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlPinCode.error = null + } + }) + + // Nominee Details + binding.spNomineeTitle.setAdapter(titleAdapter) + binding.spNomineeTitle.setOnItemClickListener { parent, view, position, id -> + binding.tlNomineeTitle.error = null + } + + binding.edtNomineeFirstName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlNomineeFirstName.error = null + } + }) + binding.edtNomineeMiddleName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlNomineeMiddleName.error = null + } + }) + binding.edtNomineeLastName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlNomineeLastName.error = null + } + }) + + binding.edtNomineeDOB.setOnClickListener{ + + } + + binding.spNomineeRelation.setAdapter(relationShipAdapter) + binding.spNomineeRelation.setOnItemClickListener { parent, view, position, id -> + binding.tlNomineeRelation.error = null + } + + binding.cbNomineeSameAddress.setOnCheckedChangeListener { compoundButton, b -> + + } + + // Guardian Details + binding.edtGuardianName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlGuardianName.error = null + } + }) + binding.edtGuardianAge.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlGuardianAge.error = null + } + }) + + binding.spGuardianRelation.setAdapter(relationShipAdapter) + binding.spGuardianRelation.setOnItemClickListener { parent, view, position, id -> + binding.tlGuardianRelation.error = null + } + + binding.edtGuardianAddress.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlGuardianAddress.error = null + } + }) + binding.edtGuardianPinCode.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.edtGuardianPinCode.error = null + } + }) + + // Bank Details + binding.edtIFSC.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlIFSC.error = null + } + }) + binding.edtAccountNumber.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlAccountNumber.error = null + } + }) + binding.edtBankName.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlBankName.error = null + } + }) + binding.edtbankBranch.addTextChangedListener(object : TextWatcher { + + override fun afterTextChanged(s: Editable?) { + } + + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + } + + override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { + binding.tlBankBranchName.error = null + } + }) binding.tvPersonalDetails.setOnClickListener { @@ -68,70 +452,74 @@ class StepTwoBajajFDFragment : Fragment() { binding.tvBankDetails.setOnClickListener { } - // if ( validation()) + // if ( validation()) return root } private fun validation(): Boolean { - if (binding.edtMobileNumber.text.toString().isEmpty()){ - return false - }else if (binding.edtMobileNumber.text?.length != 10){ - return false - }else if (binding.edtMobileNumber.text?.length == 10 && isIndianMobileNo(binding.edtMobileNumber.text.toString())){ - return false - } else if (binding.edtDOB.text.toString().isEmpty()){ - return false - }else if (binding.edtPANNumber.text.toString().isEmpty()){ - return false - }else if (isValidPan(binding.edtPANNumber.text.toString())){ - return false - }else if (binding.spTitle.text.isEmpty()){ - return false - }else if (binding.edtFirstName.text.toString().isEmpty()){ - return false - }else if (isValidName(binding.edtFirstName.text.toString())){ - return false - }else if (binding.edtMiddleName.text.toString().isEmpty()){ - return false - }else if (isValidName(binding.edtMiddleName.text.toString())){ - return false - }else if (binding.edtLastName.text.toString().isEmpty()){ - return false - }else if (isValidName(binding.edtLastName.text.toString())){ - return false - }else if (binding.spGender.text.toString().isEmpty()){ - return false - }else if (binding.edtEmail.text.toString().isEmpty()){ - return false - }else if (isValidEmail(binding.edtEmail.text.toString())){ - return false - }else if (binding.edtOccupation.text.toString().isEmpty()){ - return false - }else if (binding.edtQualification.text.toString().isEmpty()){ - return false - }else if (binding.spMarital.text.toString().isEmpty()){ - return false - }else if (binding.spRelation.text.toString().isEmpty()){ - return false - }else if (binding.edtRelationName.text.toString().isEmpty()){ - return false - }else if (binding.edtAddressLine1.text.toString().isEmpty()){ - return false - }else if (binding.edtAddressLine2.text.toString().isEmpty()){ - return false - }else if (binding.edtState.text.toString().isEmpty()){ - return false - }else if (binding.edtCity.text.toString().isEmpty()){ - return false - }else if (binding.edtPinCode.text.toString().isEmpty()){ - return false - }else if (binding.edtIFSC.text.toString().isEmpty()){ - return false - }else if (binding.edtAccountNumber.text.toString().isEmpty()){ - return false - }else if (binding.edtBankName.text.toString().isEmpty()){ - return false - }else return !binding.edtbankBranch.text.toString().isEmpty() + if (binding.edtMobileNumber.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtMobileNumber, binding.tlMobileNumber, "") + } else if (binding.edtMobileNumber.text?.length != 10) { // EditText + return commonErrorMethod(binding.edtMobileNumber, binding.tlMobileNumber, "") + } else if (binding.edtMobileNumber.text?.length == 10 && !isIndianMobileNo(binding.edtMobileNumber.text.toString())) { // EditText + return commonErrorMethod(binding.edtMobileNumber, binding.tlMobileNumber, "") + } else if (binding.edtDOB.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtDOB, binding.tlDOB, "") + } else if (binding.edtPANNumber.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtPANNumber, binding.tlPanNumber, "") + } else if (isValidPan(binding.edtPANNumber.text.toString())) { // EditText + return commonErrorMethod(binding.edtPANNumber, binding.tlPanNumber, "") + } else if (binding.spTitle.text.isEmpty()) { // Spinner + return commonSpinnerErrorMethod(binding.spTitle, binding.tlTitle, "") + } else if (binding.edtFirstName.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtFirstName, binding.tlFirstName, "") + } else if (isValidName(binding.edtFirstName.text.toString())) { // EditText + return commonErrorMethod(binding.edtFirstName, binding.tlFirstName, "") + } else if (binding.edtMiddleName.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtMiddleName, binding.tlMiddleName, "") + } else if (isValidName(binding.edtMiddleName.text.toString())) { // EditText + return commonErrorMethod(binding.edtMiddleName, binding.tlMiddleName, "") + } else if (binding.edtLastName.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtLastName, binding.tlLastName, "") + } else if (isValidName(binding.edtLastName.text.toString())) { // EditText + return commonErrorMethod(binding.edtLastName, binding.tlLastName, "") + } else if (binding.spGender.text.toString().isEmpty()) { // Spinner + return commonSpinnerErrorMethod(binding.spGender, binding.tlGender, "") + } else if (binding.edtEmail.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtEmail, binding.tlEmail, "") + } else if (isValidEmail(binding.edtEmail.text.toString())) { // EditText + return commonErrorMethod(binding.edtEmail, binding.tlEmail, "") + } else if (binding.edtOccupation.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtOccupation, binding.tlOccupation, "") + } else if (binding.edtQualification.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtQualification, binding.tlQualification, "") + } else if (binding.spMarital.text.toString().isEmpty()) { // Spinner + return commonSpinnerErrorMethod(binding.spMarital, binding.tlMarital, "") + } else if (binding.spRelation.text.toString().isEmpty()) { // Spinner + return commonSpinnerErrorMethod(binding.spRelation, binding.tlRelation, "") + } else if (binding.edtRelationName.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtRelationName, binding.tlRelationName, "") + } else if (binding.edtAddressLine1.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtAddressLine1, binding.tlAddressLine1, "") + } else if (binding.edtAddressLine2.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtAddressLine2, binding.tlAddressLine2, "") + } else if (binding.edtState.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtState, binding.tlState, "") + } else if (binding.edtCity.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtCity, binding.tlCity, "") + } else if (binding.edtPinCode.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtPinCode, binding.tlPinCode, "") + } else if (binding.edtIFSC.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtIFSC, binding.tlIFSC, "") + } else if (binding.edtAccountNumber.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtAccountNumber, binding.tlAccountNumber, "") + } else if (binding.edtBankName.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtBankName, binding.tlBankName, "") + } else if (binding.edtbankBranch.text.toString().isEmpty()) { // EditText + return commonErrorMethod(binding.edtbankBranch, binding.tlBankBranchName, "") + } else { + return true + } } diff --git a/app/src/main/java/com/nivesh/production/bajajfd/util/Common.kt b/app/src/main/java/com/nivesh/production/bajajfd/util/Common.kt index 9658265..b48c13c 100644 --- a/app/src/main/java/com/nivesh/production/bajajfd/util/Common.kt +++ b/app/src/main/java/com/nivesh/production/bajajfd/util/Common.kt @@ -8,6 +8,9 @@ import android.net.NetworkCapabilities import android.os.Build import android.provider.ContactsContract import android.util.Patterns +import com.google.android.material.textfield.MaterialAutoCompleteTextView +import com.google.android.material.textfield.TextInputEditText +import com.google.android.material.textfield.TextInputLayout import com.nivesh.production.bajajfd.BajajApplication import java.util.regex.Matcher import java.util.regex.Pattern @@ -103,5 +106,25 @@ class Common { builder.show() } + fun commonErrorMethod( + inputText: TextInputEditText, + inputError: TextInputLayout, + strMessage: String + ): Boolean { + inputText.requestFocus() + inputError.error = strMessage + return false + } + + fun commonSpinnerErrorMethod( + inputText: MaterialAutoCompleteTextView, + inputError: TextInputLayout, + strMessage: String + ): Boolean { + inputText.requestFocus() + inputError.error = strMessage + return false + } + } } \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_bajajfd_step_two.xml b/app/src/main/res/layout/fragment_bajajfd_step_two.xml index d113a91..bdde337 100644 --- a/app/src/main/res/layout/fragment_bajajfd_step_two.xml +++ b/app/src/main/res/layout/fragment_bajajfd_step_two.xml @@ -1,6 +1,5 @@ - + app:layout_constraintTop_toTopOf="parent"> + + app:layout_constraintVertical_bias="0.02" /> + android:orientation="vertical" + android:padding="@dimen/margin_10"> + android:maxEms="10" + android:textSize="@dimen/text_size_14" /> @@ -128,8 +128,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:drawableEnd="@drawable/svg_cal" - android:textSize="@dimen/text_size_14" - android:inputType="date" /> + android:inputType="date" + android:textSize="@dimen/text_size_14" /> @@ -143,10 +143,10 @@ + android:maxEms="10" + android:textSize="@dimen/text_size_14" /> @@ -186,8 +186,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="40" /> + android:maxEms="40" + android:textSize="@dimen/text_size_14" /> @@ -205,8 +205,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="40" /> + android:maxEms="40" + android:textSize="@dimen/text_size_14" /> @@ -225,22 +225,22 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="40" /> + android:maxEms="40" + android:textSize="@dimen/text_size_14" /> - - - - - - - - - - - + + + + + + + + + + + + android:maxEms="50" + android:textSize="@dimen/text_size_14" /> @@ -296,8 +296,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="60" /> + android:maxEms="60" + android:textSize="@dimen/text_size_14" /> @@ -314,22 +314,22 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="60" /> + android:maxEms="60" + android:textSize="@dimen/text_size_14" /> - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - + + + + + + + + + android:maxEms="100" + android:textSize="@dimen/text_size_14" /> @@ -419,8 +419,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="100" /> + android:maxEms="100" + android:textSize="@dimen/text_size_14" /> @@ -437,44 +437,44 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="100" /> + android:maxEms="100" + android:textSize="@dimen/text_size_14" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:maxEms="100" + android:textSize="@dimen/text_size_14" /> @@ -507,8 +507,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="100" /> + android:maxEms="100" + android:textSize="@dimen/text_size_14" /> @@ -518,8 +518,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/margin_5" - android:textSize="@dimen/text_size_14" - android:hint="PinCode"> + android:hint="PinCode" + android:textSize="@dimen/text_size_14"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:textColor="@color/black" + android:textSize="@dimen/text_size_14" + app:drawableEndCompat="@drawable/svg_down_arrow" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + android:orientation="vertical" + android:padding="@dimen/margin_10"> + + + + + + + + + + android:maxEms="100" + android:textSize="@dimen/text_size_14" /> @@ -646,8 +646,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="100" /> + android:maxEms="100" + android:textSize="@dimen/text_size_14" /> @@ -664,8 +664,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="100" /> + android:maxEms="100" + android:textSize="@dimen/text_size_14" /> @@ -682,8 +682,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:drawableEnd="@drawable/svg_cal" - android:textSize="@dimen/text_size_14" - android:inputType="date" /> + android:inputType="date" + android:textSize="@dimen/text_size_14" /> @@ -703,7 +703,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/rounded_corner_with_line" - android:hint="@string/selectTitle" + android:hint="@string/selectRelation" android:inputType="none" android:labelFor="@+id/spInterestPayout" android:textColorHint="#757575" @@ -720,7 +720,7 @@ android:textSize="@dimen/text_size_10" /> + android:maxEms="60" + android:textSize="@dimen/text_size_14" /> @@ -750,8 +750,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="60" /> + android:maxEms="60" + android:textSize="@dimen/text_size_14" /> @@ -771,7 +771,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/rounded_corner_with_line" - android:hint="@string/selectTitle" + android:hint="@string/selectRelation" android:inputType="none" android:labelFor="@+id/spInterestPayout" android:textColorHint="#757575" @@ -792,8 +792,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="60" /> + android:maxEms="60" + android:textSize="@dimen/text_size_14" /> @@ -810,8 +810,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="text" - android:textSize="@dimen/text_size_14" - android:maxEms="60" /> + android:maxEms="60" + android:textSize="@dimen/text_size_14" /> @@ -825,8 +825,8 @@ android:background="@color/grey_bg" android:padding="@dimen/margin_3" android:text="Bank Details" - android:textSize="@dimen/text_size_14" android:textColor="@color/black" + android:textSize="@dimen/text_size_14" app:drawableRightCompat="@drawable/svg_down_arrow" /> + android:orientation="vertical" + android:padding="@dimen/margin_10"> @@ -857,8 +857,8 @@ + android:textSize="@dimen/text_size_14" /> @@ -914,7 +914,7 @@ android:id="@+id/edtBankName" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textSize="@dimen/text_size_14"/> + android:textSize="@dimen/text_size_14" /> @@ -931,7 +931,7 @@ android:id="@+id/edtbankBranch" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textSize="@dimen/text_size_14"/> + android:textSize="@dimen/text_size_14" /> @@ -952,8 +952,8 @@ android:layout_marginTop="12dp" android:padding="@dimen/margin_3" android:text="Payment mode" - android:textSize="@dimen/text_size_14" android:textColor="@color/black" + android:textSize="@dimen/text_size_14" tools:layout_editor_absoluteX="5dp" /> @@ -978,10 +978,10 @@ android:orientation="horizontal"> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 70734a3..7ac97cf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -93,13 +93,11 @@ - Select Title Mr Mrs - Select Gender Male Female