Browse Source

Inbound account add bank icon showed

master
Preyea Regmi 5 years ago
parent
commit
cb642ba13c
  1. 5
      app/src/main/java/com/gmeremit/online/gmeremittance_native/accountmanage/view/inboundaccountmanage/InboundAddAccountConfirmFragment.java
  2. 5
      app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/common/GenericImageWithTextListingDialog.java
  3. 25
      app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/presenter/SendMoneyV2Presenter.java
  4. 16
      app/src/main/res/layout/generic_image_with_text_listing_dialog_item_layout.xml
  5. 13
      app/src/main/res/layout/generic_text_listing_dialog_item_layout.xml

5
app/src/main/java/com/gmeremit/online/gmeremittance_native/accountmanage/view/inboundaccountmanage/InboundAddAccountConfirmFragment.java

@ -17,6 +17,7 @@ import com.gmeremit.online.gmeremittance_native.base.BaseFragment;
import com.gmeremit.online.gmeremittance_native.customwidgets.GMEFormInputField; import com.gmeremit.online.gmeremittance_native.customwidgets.GMEFormInputField;
import com.gmeremit.online.gmeremittance_native.customwidgets.TextWatcherAdapter; import com.gmeremit.online.gmeremittance_native.customwidgets.TextWatcherAdapter;
import com.gmeremit.online.gmeremittance_native.customwidgets.banklistingdialog.BankIconMapper; import com.gmeremit.online.gmeremittance_native.customwidgets.banklistingdialog.BankIconMapper;
import com.gmeremit.online.gmeremittance_native.customwidgets.common.GenericImageWithTextListingDialog;
import com.gmeremit.online.gmeremittance_native.customwidgets.common.GenericTextListingDialog; import com.gmeremit.online.gmeremittance_native.customwidgets.common.GenericTextListingDialog;
import butterknife.BindView; import butterknife.BindView;
@ -40,7 +41,7 @@ public class InboundAddAccountConfirmFragment extends BaseFragment {
@BindView(R.id.startPennyTestButton) @BindView(R.id.startPennyTestButton)
Button startPennyTestButton; Button startPennyTestButton;
private BankSelectClickListener bankSelectionClickListener; private BankSelectClickListener bankSelectionClickListener;
private GenericTextListingDialog<BankInfo> bankListingDialog;
private GenericImageWithTextListingDialog<BankInfo> bankListingDialog;
private BankAccountNumberTextWatcher bankAccountNoTextWatcher; private BankAccountNumberTextWatcher bankAccountNoTextWatcher;
@Override @Override
@ -130,7 +131,7 @@ public class InboundAddAccountConfirmFragment extends BaseFragment {
public void onClick(View v) { public void onClick(View v) {
if (bankListingDialog == null) if (bankListingDialog == null)
bankListingDialog = new GenericTextListingDialog<>();
bankListingDialog = new GenericImageWithTextListingDialog<>();
bankListingDialog.setData(((InboundAccountAddActionListener) getActivity()).getPresenter().getKoreanBankList()); bankListingDialog.setData(((InboundAccountAddActionListener) getActivity()).getPresenter().getKoreanBankList());
bankListingDialog.setListener(selectedBank -> bankListingDialog.setListener(selectedBank ->
{ {

5
app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/common/GenericImageWithTextListingDialog.java

@ -58,7 +58,6 @@ public class GenericImageWithTextListingDialog<T extends GenericImageWithTextLis
searchViewContainer = view.findViewById(R.id.searchViewContainer); searchViewContainer = view.findViewById(R.id.searchViewContainer);
builder.setView(view); builder.setView(view);
initialize(); initialize();
return builder.create(); return builder.create();
@ -70,8 +69,8 @@ public class GenericImageWithTextListingDialog<T extends GenericImageWithTextLis
genericTextListingRvAdapter = new GenericImageWithTextListingRvAdapter<>(this.listener); genericTextListingRvAdapter = new GenericImageWithTextListingRvAdapter<>(this.listener);
genericTextListingRvAdapter.setData(this.data); genericTextListingRvAdapter.setData(this.data);
textListRv.setAdapter(genericTextListingRvAdapter); textListRv.setAdapter(genericTextListingRvAdapter);
LineDividerItemDecoration lineDividerItemDecoration = new LineDividerItemDecoration(getActivity(), LineDividerItemDecoration.VERTICAL_LIST);
textListRv.addItemDecoration(lineDividerItemDecoration);
// LineDividerItemDecoration lineDividerItemDecoration = new LineDividerItemDecoration(textListRv.getContext(), LineDividerItemDecoration.VERTICAL_LIST);
// textListRv.addItemDecoration(lineDividerItemDecoration);
titleView.setText(titleText != null && titleText.length() > 0 ? titleText : "Select Data"); titleView.setText(titleText != null && titleText.length() > 0 ? titleText : "Select Data");
searchEditTextView.setHint(hintText != null && hintText.length() > 0 ? hintText : "Search Data"); searchEditTextView.setHint(hintText != null && hintText.length() > 0 ? hintText : "Search Data");
noDataFoundView.setHint(noDataFoundText != null && noDataFoundText.length() > 0 ? noDataFoundText : "No Data Found"); noDataFoundView.setHint(noDataFoundText != null && noDataFoundText.length() > 0 ? noDataFoundText : "No Data Found");

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

@ -347,31 +347,6 @@ public class SendMoneyV2Presenter extends BasePresenter implements SendMoneyV2Pr
} }
private Observable<AccountValidationApiResponse> sendDataForAccountValidation() {
// String idType = "1";
// String idNumber = gateway.getUserIDNumber();
// String customerFirstName = gateway.getUserFirstName();
// String customerLastName = gateway.getUserLastName();
// String receiverFirstName = selectedRecipient.getFirstName();
// String receiverLastName = selectedRecipient.getLastName();
// String country = selectedRecipient.getCountryCode();
// String accountType = "1";
// String issuerCode = selectedBankData.getCode();
// String accountNo = selectedAccountNo;
// String amount = "10000.0";
// String bankCode = selectedBankData.getCode();
// String payoutPartner = selectedPaymentModeData.getPayoutPartner();
// String processId = "";
//
// String bankId = selectedBankData.getId();
// String receiverCountryId = selectedRecipient.getCountryId();
// String deliveryMethodID = selectedPaymentModeData.getId();
// return gateway.validateAccountFromServer(gateway.getAuth(), idType, idNumber, customerFirstName, customerLastName, receiverFirstName, receiverLastName, country,
// accountType, issuerCode, accountNo, amount, bankCode, payoutPartner, processId, bankId, receiverCountryId, deliveryMethodID);
return null;
}
@Override @Override
public Observable<PayoutModeApiResponse> getAllPayoutMode() { public Observable<PayoutModeApiResponse> getAllPayoutMode() {

16
app/src/main/res/layout/generic_image_with_text_listing_dialog_item_layout.xml

@ -7,8 +7,8 @@
<ImageView <ImageView
android:id="@+id/imageView" android:id="@+id/imageView"
android:layout_width="60dp"
android:layout_height="55dp"
android:layout_width="@dimen/_35sdp"
android:layout_height="@dimen/_35sdp"
android:layout_marginStart="@dimen/_20sdp" android:layout_marginStart="@dimen/_20sdp"
android:layout_marginTop="@dimen/_6sdp" android:layout_marginTop="@dimen/_6sdp"
android:layout_marginBottom="@dimen/_6sdp" android:layout_marginBottom="@dimen/_6sdp"
@ -20,13 +20,13 @@
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView <com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:id="@+id/textView" android:id="@+id/textView"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="60dp"
android:layout_marginStart="24dp"
android:layout_height="@dimen/_50sdp"
android:layout_marginStart="@dimen/_18sdp"
android:gravity="center_vertical|start" android:gravity="center_vertical|start"
android:minHeight="45dp"
android:paddingStart="7dp"
android:paddingLeft="7dp"
android:textSize="14sp"
android:minHeight="@dimen/_40sdp"
android:paddingStart="@dimen/_5sdp"
android:paddingLeft="@dimen/_5sdp"
android:textSize="@dimen/text_medium"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/imageView" app:layout_constraintStart_toEndOf="@+id/imageView"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />

13
app/src/main/res/layout/generic_text_listing_dialog_item_layout.xml

@ -5,10 +5,11 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/textName" android:id="@+id/textName"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_height="@dimen/_48sdp"
android:gravity="center_vertical|start" android:gravity="center_vertical|start"
android:paddingStart="20dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingEnd="20dp"
android:textSize="@dimen/_10ssp" />
android:paddingStart="@dimen/_18sdp"
android:paddingLeft="@dimen/_18sdp"
android:paddingRight="@dimen/_18sdp"
android:paddingEnd="@dimen/_18sdp"
android:textSize="@dimen/text_medium"
/>
Loading…
Cancel
Save