Browse Source

Before fixing keyboard

master
preyearegmi 6 years ago
parent
commit
0fe3ae3b69
  1. 2
      app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/exchangecountrylistingdialog/CountryFlagMapper.java
  2. 7
      app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/exchangecountrylistingdialog/CountrySelectionListener.java
  3. 2
      app/src/main/java/com/gmeremit/online/gmeremittance_native/exchange_rate/presenter/ExchangeRateV2Presenter.java
  4. BIN
      app/src/main/res/drawable/flag_mongolia.png
  5. 125
      app/src/main/res/layout/activity_exchange_method_v2.xml

2
app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/exchangecountrylistingdialog/CountryFlagMapper.java

@ -57,6 +57,8 @@ public class CountryFlagMapper {
return R.drawable.flag_uzbekistn;
case "BY":
return R.drawable.flag_belarus;
case "MN":
return R.drawable.flag_mongolia;
default:
return -1;

7
app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/exchangecountrylistingdialog/CountrySelectionListener.java

@ -0,0 +1,7 @@
package com.gmeremit.online.gmeremittance_native.customwidgets.exchangecountrylistingdialog;
import com.gmeremit.online.gmeremittance_native.exchange_rate.model.datav2.CountryPaymentService;
public interface CountrySelectionListener {
void onCountrySelected(CountryPaymentService countryPaymentService);
}

2
app/src/main/java/com/gmeremit/online/gmeremittance_native/exchange_rate/presenter/ExchangeRateV2Presenter.java

@ -188,7 +188,7 @@ public class ExchangeRateV2Presenter extends BasePresenter implements ExchangeRa
view.updateExchangeRates(recipientAmount, sendAmount, transferDisplay, exRateDisplay);
}
else {
view.showPopUpMessage(exchangeCalculationApiResponse.getMsg(), CustomAlertDialog.AlertType.FAILED, alertType -> view.exitView());
view.showPopUpMessage(exchangeCalculationApiResponse.getMsg(), CustomAlertDialog.AlertType.FAILED, null);
}
}

BIN
app/src/main/res/drawable/flag_mongolia.png

After

Width: 512  |  Height: 512  |  Size: 13 KiB

125
app/src/main/res/layout/activity_exchange_method_v2.xml

@ -17,6 +17,39 @@
android:orientation="vertical">
<include layout="@layout/layout_sendmoney_toolbar"/>
<LinearLayout
android:id="@+id/paymentModeViewContainer"
android:layout_marginTop="15dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:layout_marginLeft="10dp"
android:layout_marginBottom="15dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Select Payment Mode"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:textColor="@color/darkgray"
android:gravity="start|left"
android:textSize="14sp"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/paymentModeRV"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:orientation="horizontal"
android:layout_gravity="center_vertical|start"
app:layoutManager="android.support.v7.widget.LinearLayoutManager" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="10dp"
android:layout_marginStart="10dp"
@ -93,53 +126,53 @@
</FrameLayout>
</LinearLayout>
<LinearLayout
android:paddingStart="10dp"
android:paddingRight="10dp"
android:paddingLeft="10dp"
android:paddingEnd="10dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="match_parent" >
<com.gmeremit.online.gmeremittance_native.customwidgets.PaddedVerticalView
android:layout_width="wrap_content"
android:paddingStart="3dp"
android:paddingEnd="3dp"
android:layout_height="match_parent" />
</FrameLayout>
<LinearLayout
android:id="@+id/paymentModeViewContainer"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Select Payment Mode"
android:paddingTop="6dp"
android:paddingBottom="12dp"
android:textColor="@color/darkgray"
android:gravity="start|left"
android:textSize="14sp"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/paymentModeRV"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
<!--<LinearLayout-->
<!--android:paddingStart="10dp"-->
<!--android:paddingRight="10dp"-->
<!--android:paddingLeft="10dp"-->
<!--android:paddingEnd="10dp"-->
<!--android:orientation="horizontal"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content">-->
<!--<FrameLayout-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="match_parent" >-->
<!--<com.gmeremit.online.gmeremittance_native.customwidgets.PaddedVerticalView-->
<!--android:layout_width="wrap_content"-->
<!--android:paddingStart="3dp"-->
<!--android:paddingEnd="3dp"-->
<!--android:layout_height="match_parent" />-->
<!--</FrameLayout>-->
<!--<LinearLayout-->
<!--android:id="@+id/paymentModeViewContainer"-->
<!--android:layout_marginTop="20dp"-->
<!--android:layout_marginBottom="20dp"-->
<!--android:layout_width="0dp"-->
<!--android:layout_weight="1"-->
<!--android:layout_height="wrap_content"-->
<!--android:orientation="vertical">-->
<!--<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:text="Select Payment Mode"-->
<!--android:paddingTop="6dp"-->
<!--android:paddingBottom="12dp"-->
<!--android:textColor="@color/darkgray"-->
<!--android:gravity="start|left"-->
<!--android:textSize="14sp"/>-->
<!--<android.support.v7.widget.RecyclerView-->
<!--android:id="@+id/paymentModeRV"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginLeft="6dp"-->
<!--android:layout_marginRight="6dp"-->
android:orientation="horizontal"
android:layout_gravity="center_vertical|start"
app:layoutManager="android.support.v7.widget.LinearLayoutManager" />
</LinearLayout>
<!--android:orientation="horizontal"-->
<!--android:layout_gravity="center_vertical|start"-->
<!--app:layoutManager="android.support.v7.widget.LinearLayoutManager" />-->
<!--</LinearLayout>-->
</LinearLayout>
<!--</LinearLayout>-->
<LinearLayout
android:paddingStart="10dp"
android:paddingRight="10dp"
@ -153,7 +186,7 @@
android:layout_width="wrap_content"
android:paddingStart="3dp"
android:paddingEnd="3dp"
android:layout_height="45dp" />
android:layout_height="50dp" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView
android:id="@+id/transferFeeTxtView"
android:layout_width="match_parent"

Loading…
Cancel
Save