Browse Source

Verification page changed

master
preyearegmi 6 years ago
parent
commit
d84ef1ea2f
  1. 12
      app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/model/verification/VerificationViewModel.java
  2. 2
      app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/presenter/SendMoneyV2Presenter.java
  3. 11
      app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/view/verification/VerificationSendMoneyFragment.java
  4. 33
      app/src/main/res/layout/fragment_verification_send_money_v2.xml

12
app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/model/verification/VerificationViewModel.java

@ -11,8 +11,9 @@ public class VerificationViewModel {
String exRate;
String serviceCharge;
String pAgent;
String bankAcNo;
public VerificationViewModel(String firstName, String address, String country, String mobile, String pCountry, String pMode, String pAmount, String exRate, String serviceCharge, String pAgent) {
public VerificationViewModel(String firstName, String address, String country, String mobile, String pCountry, String pMode, String pAmount, String exRate, String serviceCharge, String pAgent, String bankAcNo) {
this.firstName = firstName;
this.address = address;
this.country = country;
@ -23,6 +24,7 @@ public class VerificationViewModel {
this.exRate = exRate;
this.serviceCharge = serviceCharge;
this.pAgent = pAgent;
this.bankAcNo=bankAcNo;
}
public String getFirstName() {
@ -104,4 +106,12 @@ public class VerificationViewModel {
public void setpAgent(String pAgent) {
this.pAgent = pAgent;
}
public String getBankAcNo() {
return bankAcNo;
}
public void setBankAcNo(String bankAcNo) {
this.bankAcNo = bankAcNo;
}
}

2
app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/presenter/SendMoneyV2Presenter.java

@ -149,7 +149,7 @@ public class SendMoneyV2Presenter extends BasePresenter implements SendMoneyV2Pr
pAgent = selectedBankData.getName();
return new VerificationViewModel(fullName, address, country, mobile, pCountry, pMode, pAmount, exRate, serviceCharge, pAgent);
return new VerificationViewModel(fullName, address, country, mobile, pCountry, pMode, pAmount, exRate, serviceCharge, pAgent,this.selectedAccountNo);
}
@Override

11
app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/view/verification/VerificationSendMoneyFragment.java

@ -47,6 +47,12 @@ public class VerificationSendMoneyFragment extends BaseFragment implements View
TextView txt_pagent ;
@BindView(R.id.pAgentContainerView)
ViewGroup pAgentContainerView ;
@BindView(R.id.bankAcNoContainer)
View bankAcNoContainer ;
@BindView(R.id.txt_bankAcNo)
TextView txt_bankAcNo ;
@BindView(R.id.txt_user_aggreement)
@ -131,6 +137,11 @@ public class VerificationSendMoneyFragment extends BaseFragment implements View
txt_pcountry.setText(verificationViewModel.getpCountry());
txt_pmode.setText(verificationViewModel.getpMode());
txt_servicechargeAmount.setText(verificationViewModel.getServiceCharge());
if(verificationViewModel.getBankAcNo()!=null&&verificationViewModel.getBankAcNo().length()>1)
{
bankAcNoContainer.setVisibility(View.VISIBLE);
txt_bankAcNo.setText(verificationViewModel.getBankAcNo());
}
String pAgent=verificationViewModel.getpAgent();
if(pAgent!=null) {

33
app/src/main/res/layout/fragment_verification_send_money_v2.xml

@ -294,13 +294,14 @@
android:id="@+id/pAgentContainerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:orientation="horizontal">
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="top"
android:paddingTop="10dp"
android:text="Payout Agent/Bank: "
android:textColor="@color/dark_gray"
android:textSize="13sp" />
@ -316,11 +317,39 @@
android:textSize="13sp"
android:textStyle="bold"
android:singleLine="false"
android:minLines="3"
android:inputType="textMultiLine"
app:txtfontName="@string/semibold" />
</LinearLayout>
<LinearLayout
android:visibility="gone"
android:id="@+id/bankAcNoContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingTop="10dp"
android:text="Bank A/C No: "
android:textColor="@color/dark_gray"
android:textSize="13sp" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:id="@+id/txt_bankAcNo"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:textColor="@color/black"
android:textSize="13sp"
android:textStyle="bold"
app:txtfontName="@string/semibold" />
</LinearLayout>
</LinearLayout>

Loading…
Cancel
Save