Browse Source

Mobile number with num pad added

master
Preyea Regmi 5 years ago
parent
commit
b36c8e0176
  1. 1
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/adapter/PayoutModeSelectionRVAdapter.java
  2. 9
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/PayoutModeSelectionItemViewHolder.java
  3. 2
      app/src/main/res/layout/activity_register_v2.xml
  4. 36
      app/src/main/res/layout/splash_exchange_paymentmode_rv_viewholder.xml

1
app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/adapter/PayoutModeSelectionRVAdapter.java

@ -44,7 +44,6 @@ public class PayoutModeSelectionRVAdapter extends RecyclerView.Adapter<PayoutMod
listener.onPaymentModeSelected(data.get(payoutModeSelectionItemViewHolder.getAdapterPosition()));
}
});
payoutModeSelectionItemViewHolder.setImage(PaymentModeMapper.getPaymentModeImageFromId(data.get(payoutModeSelectionItemViewHolder.getAdapterPosition()).getId()));
payoutModeSelectionItemViewHolder.setTitle(data.get(payoutModeSelectionItemViewHolder.getAdapterPosition()).getText());
}

9
app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/PayoutModeSelectionItemViewHolder.java

@ -17,8 +17,6 @@ public class PayoutModeSelectionItemViewHolder extends RecyclerView.ViewHolder {
@BindView(R.id.paymentModeLogo)
ImageView paymentModeLogo;
public PayoutModeSelectionItemViewHolder(@NonNull View itemView) {
@ -28,13 +26,6 @@ public class PayoutModeSelectionItemViewHolder extends RecyclerView.ViewHolder {
public void setImage(int resId) {
if(resId!=-1)
paymentModeLogo.setImageResource(resId);
}
public void setTitle(String title) {
paymentModeTitle.setText(title);
}

2
app/src/main/res/layout/activity_register_v2.xml

@ -155,6 +155,7 @@
android:maxLines="1"
android:paddingTop="5dp"
android:paddingBottom="5dp"
app:applyASCIIFilter="false"
android:paddingStart="8dp"
android:background="@android:color/transparent"
android:paddingEnd="8dp"
@ -196,6 +197,7 @@
android:paddingBottom="5dp"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:inputType="phone"
android:textSize="16sp"
android:minHeight="40dp"
android:hint="@string/mobile_number_text"

36
app/src/main/res/layout/splash_exchange_paymentmode_rv_viewholder.xml

@ -1,42 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:id="@+id/relativeLayout6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:background="@drawable/ic_rounded_country_listing_gray">
<ImageView
android:id="@+id/paymentModeLogo"
android:layout_width="@dimen/_25sdp"
android:layout_height="@dimen/_25sdp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:scaleType="centerCrop"
android:visibility="gone"
android:src="@drawable/ic_home_delivery"
app:layout_constraintBottom_toTopOf="@+id/paymentModeTitleTxt"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView 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:id="@+id/paymentModeTitleTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/_4sdp"
android:layout_margin="4dp"
android:background="@drawable/ic_rounded_country_listing_gray"
android:gravity="center"
android:text="Home Delivery"
android:padding="@dimen/_4sdp"
android:textColor="@color/darkgray"
android:textSize="@dimen/_11ssp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/paymentModeLogo" />
app:layout_constraintTop_toBottomOf="@+id/paymentModeLogo"
tools:text="Home Delivery" />
</android.support.constraint.ConstraintLayout>
Loading…
Cancel
Save