Santosh Bhandary
3 years ago
14 changed files with 2249 additions and 2094 deletions
-
8app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientlisting/view/recipientaddedit/BeneficiaryAddEditFragment.java
-
19app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientlisting/view/recipientaddedit/RecipientAddEditActivity.java
-
25app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/RecipientAddEditBaseV3ViewModel.java
-
15app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/RecipientAddV3ContractInterface.java
-
3app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/RecipientPresenterInterface.java
-
44app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/add/RecipientAddV3ViewModel.java
-
104app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/edit/RecipientEditV3ViewModel.java
-
32app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/RecipientAddV3ViewModelFactory.java
-
32app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/RecipientEditV3ViewModelFactory.java
-
1270app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/recipientaddeditV3/BeneficiaryAddEditV3Fragment.java
-
72app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/recipientaddeditV3/BeneficiaryAddEditV3TermsFragment.java
-
1438app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/recipientaddeditV3/RecipientAddEditV3Activity.java
-
550app/src/main/res/layout/activity_recipient_add_edit_v3.xml
-
555app/src/main/res/layout/fragment_beneficiary_add_edit_v3.xml
@ -0,0 +1,32 @@ |
|||||
|
package com.swifttech.remit.jmecustomer.features.recipientmanagement.view; |
||||
|
|
||||
|
import androidx.annotation.NonNull; |
||||
|
import androidx.lifecycle.ViewModel; |
||||
|
import androidx.lifecycle.ViewModelProvider; |
||||
|
|
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.gateway.recipientaddeditV3.RecipientAddEditV3Gateway; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.model.recipientlistingV3.ReceiverInfoV3Model; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.presenter.recipientaddeditV3.RecipientAddV3ContractInterface; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.presenter.recipientaddeditV3.add.RecipientAddV3ViewModel; |
||||
|
|
||||
|
public class RecipientAddV3ViewModelFactory implements ViewModelProvider.Factory { |
||||
|
private RecipientAddV3ContractInterface view; |
||||
|
private ReceiverInfoV3Model receiverInfoV3Model; |
||||
|
|
||||
|
|
||||
|
public RecipientAddV3ViewModelFactory( |
||||
|
RecipientAddV3ContractInterface view, |
||||
|
ReceiverInfoV3Model receiverInfoV3Model |
||||
|
) { |
||||
|
this.view = view; |
||||
|
this.receiverInfoV3Model = receiverInfoV3Model; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
@SuppressWarnings("unchecked") |
||||
|
@NonNull |
||||
|
@Override |
||||
|
public <T extends ViewModel> T create(@NonNull Class<T> modelClass) { |
||||
|
return (T) new RecipientAddV3ViewModel(new RecipientAddEditV3Gateway(),view,receiverInfoV3Model); |
||||
|
} |
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.swifttech.remit.jmecustomer.features.recipientmanagement.view; |
||||
|
|
||||
|
import androidx.annotation.NonNull; |
||||
|
import androidx.lifecycle.ViewModel; |
||||
|
import androidx.lifecycle.ViewModelProvider; |
||||
|
|
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.gateway.recipientaddeditV3.RecipientAddEditV3Gateway; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.model.recipientlistingV3.ReceiverInfoV3Model; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.presenter.recipientaddeditV3.RecipientAddV3ContractInterface; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.presenter.recipientaddeditV3.edit.RecipientEditV3ViewModel; |
||||
|
|
||||
|
public class RecipientEditV3ViewModelFactory implements ViewModelProvider.Factory { |
||||
|
private final RecipientAddV3ContractInterface view; |
||||
|
private final ReceiverInfoV3Model receiverInfoV3Model; |
||||
|
|
||||
|
|
||||
|
public RecipientEditV3ViewModelFactory( |
||||
|
RecipientAddV3ContractInterface view, |
||||
|
ReceiverInfoV3Model receiverInfoV3Model |
||||
|
) { |
||||
|
this.view = view; |
||||
|
this.receiverInfoV3Model = receiverInfoV3Model; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
@SuppressWarnings("unchecked") |
||||
|
@NonNull |
||||
|
@Override |
||||
|
public <T extends ViewModel> T create(@NonNull Class<T> modelClass) { |
||||
|
return (T) new RecipientEditV3ViewModel(new RecipientAddEditV3Gateway(),view,receiverInfoV3Model); |
||||
|
} |
||||
|
} |
1270
app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/recipientaddeditV3/BeneficiaryAddEditV3Fragment.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,72 @@ |
|||||
|
package com.swifttech.remit.jmecustomer.features.recipientmanagement.view.recipientaddeditV3; |
||||
|
|
||||
|
import android.os.Bundle; |
||||
|
import android.util.Log; |
||||
|
import android.view.View; |
||||
|
import android.webkit.WebView; |
||||
|
|
||||
|
import androidx.annotation.Nullable; |
||||
|
import androidx.lifecycle.ViewModelProvider; |
||||
|
|
||||
|
import com.swifttech.remit.jmecustomer.features.kyc.newCustomer.view.termsAndCondition.NewKycTermsAndConditionFragment; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.model.recipientlistingV3.ReceiverInfoV3Model; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.presenter.recipientaddeditV3.RecipientAddEditBaseV3ViewModel; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.presenter.recipientaddeditV3.RecipientAddV3ContractInterface; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.presenter.recipientaddeditV3.add.RecipientAddV3ViewModel; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.presenter.recipientaddeditV3.edit.RecipientEditV3ViewModel; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.view.RecipientAddV3ViewModelFactory; |
||||
|
import com.swifttech.remit.jmecustomer.features.recipientmanagement.view.RecipientEditV3ViewModelFactory; |
||||
|
import com.swifttech.remit.jmecustomer.features.webbrowser.WebBrowserFragmentV2; |
||||
|
import com.swifttech.remit.jmecustomer.features.webbrowser.model.WebRequestModel; |
||||
|
|
||||
|
import static com.swifttech.remit.jmecustomer.features.recipientlisting.view.recipientaddedit.RecipientAddEditActivity.RECIPIENT_INFO_BUNDLE_KEY; |
||||
|
import static com.swifttech.remit.jmecustomer.utils.Constants.JME_TERMS_N_CONDITIONS; |
||||
|
|
||||
|
public class BeneficiaryAddEditV3TermsFragment extends WebBrowserFragmentV2 { |
||||
|
private RecipientAddEditBaseV3ViewModel viewModel; |
||||
|
private ReceiverInfoV3Model recipientToBeEdited; |
||||
|
private static String TAG = NewKycTermsAndConditionFragment.class.getSimpleName(); |
||||
|
private String currentLoadedUrl = ""; |
||||
|
|
||||
|
@Override |
||||
|
protected void doTask(WebRequestModel webRequestModel, WebView webView) { |
||||
|
if (webRequestModel != null && !currentLoadedUrl.equalsIgnoreCase(webRequestModel.getUrl())) { |
||||
|
this.currentLoadedUrl = webRequestModel.getUrl(); |
||||
|
webView.loadUrl(webRequestModel.getUrl()); |
||||
|
Log.d(this.getClass().getSimpleName(), currentLoadedUrl); |
||||
|
triggerWebviewEvent(webView); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void triggerWebviewEvent(WebView webView) { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
protected void proceedButtonClicked() { |
||||
|
if (recipientToBeEdited != null) { |
||||
|
viewModel.proceedToEditSucess(); |
||||
|
} else { |
||||
|
viewModel.proceedToAddSucess(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { |
||||
|
super.onViewCreated(view, savedInstanceState); |
||||
|
recipientToBeEdited = getArguments().getParcelable(RECIPIENT_INFO_BUNDLE_KEY); |
||||
|
if (recipientToBeEdited != null) { |
||||
|
RecipientEditV3ViewModelFactory recipientEditViewModelFactory = new RecipientEditV3ViewModelFactory((RecipientAddV3ContractInterface) getActivity(),recipientToBeEdited); |
||||
|
viewModel = new ViewModelProvider(requireActivity(), recipientEditViewModelFactory).get(RecipientEditV3ViewModel.class); |
||||
|
} else { |
||||
|
RecipientAddV3ViewModelFactory recipientAddViewModelFactory = new RecipientAddV3ViewModelFactory((RecipientAddV3ContractInterface)getActivity(),recipientToBeEdited); |
||||
|
viewModel = new ViewModelProvider(requireActivity(), recipientAddViewModelFactory).get(RecipientAddV3ViewModel.class); |
||||
|
} |
||||
|
showAcceptOption(true); |
||||
|
WebRequestModel webRequestModel = new WebRequestModel("", JME_TERMS_N_CONDITIONS, null); |
||||
|
setWebRequestData(webRequestModel); |
||||
|
loadWebView(); |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
1438
app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/recipientaddeditV3/RecipientAddEditV3Activity.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,555 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout 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/bright_gray" |
||||
|
android:orientation="vertical"> |
||||
|
|
||||
|
<ScrollView |
||||
|
android:id="@+id/scrollView" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="0dp" |
||||
|
android:layout_weight="1"> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="vertical" |
||||
|
android:paddingStart="@dimen/_8sdp" |
||||
|
android:paddingEnd="@dimen/_8sdp"> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:id="@+id/receiverFromViewContainer" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="vertical"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.customwidgets.GmeTextView |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="60dp" |
||||
|
android:gravity="center" |
||||
|
android:paddingTop="9dp" |
||||
|
android:paddingBottom="10dp" |
||||
|
android:text="@string/who_to_send_text" |
||||
|
android:textColor="@color/darkgray" |
||||
|
android:textSize="@dimen/_14ssp" /> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:id="@+id/recieverCountryViewContainer" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="horizontal" |
||||
|
android:visibility="visible"> |
||||
|
|
||||
|
<androidx.constraintlayout.widget.ConstraintLayout |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="match_parent"> |
||||
|
|
||||
|
<ImageView |
||||
|
android:id="@+id/recieverCountrySelectionCountryFlag" |
||||
|
android:layout_width="@dimen/_30sdp" |
||||
|
android:layout_height="@dimen/_30sdp" |
||||
|
android:layout_gravity="center_vertical" |
||||
|
android:layout_marginStart="8dp" |
||||
|
android:layout_marginEnd="@dimen/_4sdp" |
||||
|
android:src="@drawable/flag_default" |
||||
|
android:visibility="gone" |
||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toTopOf="parent" |
||||
|
app:layout_constraintVertical_bias="0.38" /> |
||||
|
|
||||
|
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverCountrySelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:layout_width="0dp" |
||||
|
android:layout_weight="1" |
||||
|
android:hint="@string/payout_country_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverCountrySelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
</LinearLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverPaymentMethodSelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/payment_mode_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverPaymentMethodSelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverBankSelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/bank_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorIconDrawable="@null" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverBankSelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverBranchSelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/branch_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverBranchSelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverAccountNoWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/account_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverAccountNo" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverFirstNameWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/first_name_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverFirstName" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverMiddleNameWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/middle_name_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverMiddleName" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverLastNameWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/last_name_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverLastName" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverFullNameWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/full_name_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverFullName" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverLocalFirstNameWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/first_name_local_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverLocalFirstName" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverLocalMiddleNameWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/middle_name_local_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverLocalMiddleName" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverLocalLastNameWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/last_name_local_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverLocalLastName" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverLocalFullNameWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/full_name_local_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverLocalFullName" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<androidx.constraintlayout.widget.ConstraintLayout |
||||
|
android:id="@+id/mobileViewContainer" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content"> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.customwidgets.GmeTextView |
||||
|
android:id="@+id/selectedCountryMobilePrefix" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginStart="8dp" |
||||
|
android:layout_marginEnd="8dp" |
||||
|
android:textSize="@dimen/_15ssp" |
||||
|
app:layout_constraintBottom_toBottomOf="@+id/selectedCountryIcon" |
||||
|
app:layout_constraintEnd_toStartOf="@+id/receiverMobileNoWrapper" |
||||
|
app:layout_constraintStart_toEndOf="@+id/selectedCountryIcon" |
||||
|
app:layout_constraintTop_toTopOf="@+id/selectedCountryIcon" |
||||
|
app:txtfontName="@string/semibold" |
||||
|
tools:text="+81" /> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverMobileNoWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:layout_width="0dp" |
||||
|
android:hint="@string/mobile_text" |
||||
|
android:weightSum="1" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle" |
||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||
|
app:layout_constraintStart_toEndOf="@+id/selectedCountryMobilePrefix" |
||||
|
app:layout_constraintTop_toTopOf="parent"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverMobileNo" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<ImageView |
||||
|
android:id="@+id/selectedCountryIcon" |
||||
|
android:layout_width="@dimen/_30sdp" |
||||
|
android:layout_height="@dimen/_30sdp" |
||||
|
android:layout_marginStart="8dp" |
||||
|
android:layout_marginBottom="8dp" |
||||
|
android:src="@drawable/flag_default" |
||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toTopOf="parent" |
||||
|
app:layout_constraintVertical_bias="0.55" /> |
||||
|
|
||||
|
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverIDTypeSelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/id_type_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverIDTypeSelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverIdNumberWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/id_number_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverIdNumber" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverStateSelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/id_type_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverStateSelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverDistrictSelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/district_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverDistrictSelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverCityWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/city_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverCity" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverAddressWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/address_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverAddress" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="text" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverEmailWrapper" |
||||
|
style="@style/MTextInputLayoutForm" |
||||
|
android:hint="@string/email_placeholder_text" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputEditText |
||||
|
android:id="@+id/ed_receiverEmail" |
||||
|
style="@style/MTextInputEditText" |
||||
|
android:inputType="textEmailAddress" |
||||
|
app:endIconMode="clear_text" |
||||
|
app:errorEnabled="true" |
||||
|
|
||||
|
app:maxLengthLimiter="100" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverRelationSelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/relation_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverRelationSelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverTransferReasonSelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/selectPurposeOfRemit_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverTransferReasonSelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:id="@+id/recieverNativeCountryViewContainer" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="horizontal" |
||||
|
android:visibility="visible"> |
||||
|
|
||||
|
<androidx.constraintlayout.widget.ConstraintLayout |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="match_parent"> |
||||
|
|
||||
|
<ImageView |
||||
|
android:id="@+id/recieverNativeCountrySelectionCountryFlag" |
||||
|
android:layout_width="@dimen/_30sdp" |
||||
|
android:layout_height="@dimen/_30sdp" |
||||
|
android:layout_gravity="center_vertical" |
||||
|
android:layout_marginStart="8dp" |
||||
|
android:layout_marginEnd="@dimen/_4sdp" |
||||
|
android:src="@drawable/flag_default" |
||||
|
android:visibility="gone" |
||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toTopOf="parent" |
||||
|
app:layout_constraintVertical_bias="0.38" /> |
||||
|
|
||||
|
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
|
|
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MTextInputLayout |
||||
|
android:id="@+id/receiverNativeCountrySelectionWrapper" |
||||
|
style="@style/MTextInputLayoutFormDropDown" |
||||
|
android:hint="@string/native_country_placeholder_text" |
||||
|
app:endIconDrawable="@drawable/icv_dropdown" |
||||
|
app:errorEnabled="true" |
||||
|
app:errorTextAppearance="@style/MTextInpuLayoutErrorStyle"> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.view.MAutoCompleteTextView |
||||
|
android:id="@+id/ed_receiverNativeCountrySelection" |
||||
|
style="@style/MAutoCompleteDropDown" /> |
||||
|
</com.swifttech.remit.jmecustomer.common.view.MTextInputLayout> |
||||
|
</LinearLayout> |
||||
|
</LinearLayout> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.customwidgets.GmeTextView |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginTop="@dimen/_8sdp" |
||||
|
android:gravity="center" |
||||
|
android:maxLines="2" |
||||
|
android:singleLine="false" |
||||
|
android:text="@string/i_have_read_to_text" |
||||
|
android:textColor="@color/darkgray2" |
||||
|
android:textSize="@dimen/_11ssp" /> |
||||
|
|
||||
|
<com.swifttech.remit.jmecustomer.common.customwidgets.GmeTextView |
||||
|
android:id="@+id/txv_jme_terms_n_condition" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginTop="@dimen/_5sdp" |
||||
|
android:gravity="center" |
||||
|
android:paddingTop="@dimen/_4sdp" |
||||
|
android:paddingBottom="@dimen/_4sdp" |
||||
|
android:text="@string/jme_terms_n_conditions" |
||||
|
android:textColor="@color/blue" |
||||
|
android:textSize="@dimen/_11ssp" /> |
||||
|
|
||||
|
<Button |
||||
|
android:id="@+id/btn_submit" |
||||
|
style="@style/MButton" |
||||
|
android:layout_gravity="center" |
||||
|
android:layout_marginTop="@dimen/_15sdp" |
||||
|
android:layout_marginBottom="@dimen/_15sdp" |
||||
|
android:text="@string/agree_and_submit_text" /> |
||||
|
</LinearLayout> |
||||
|
</ScrollView> |
||||
|
</LinearLayout> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue