Skip to content

Commit 9353d02

Browse files
committed
Zambia Mobile Money Refactor
1 parent 1329de6 commit 9353d02

File tree

3 files changed

+103
-3
lines changed

3 files changed

+103
-3
lines changed

raveandroid/src/main/java/com/flutterwave/raveandroid/zmmobilemoney/ZmMobileMoneyFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
6969

7070
injectComponents();
7171

72-
v = inflater.inflate(R.layout.fragment_gh_mobile_money, container, false);
72+
v = inflater.inflate(R.layout.fragment_zm_mobile_money, container, false);
7373

7474
initializeViews();
7575

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:app="http://schemas.android.com/apk/res-auto"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
android:layout_width="match_parent"
5+
android:layout_height="match_parent"
6+
android:descendantFocusability="beforeDescendants"
7+
android:focusableInTouchMode="true"
8+
android:orientation="vertical"
9+
tools:context="com.flutterwave.raveandroid.zmmobilemoney.ZmMobileMoneyFragment">
10+
11+
<ScrollView
12+
android:layout_width="match_parent"
13+
android:layout_height="match_parent"
14+
android:fillViewport="true"
15+
android:orientation="vertical"
16+
app:layout_constraintTop_toTopOf="parent">
17+
18+
<LinearLayout
19+
android:layout_width="match_parent"
20+
android:layout_height="wrap_content"
21+
android:orientation="vertical"
22+
android:padding="20dp"
23+
android:paddingTop="10dp">
24+
25+
<Button
26+
android:id="@+id/rave_payButton"
27+
style="?PayButtonStyle"
28+
android:layout_width="match_parent"
29+
android:layout_height="wrap_content"
30+
android:layout_marginLeft="10dp"
31+
android:layout_marginRight="10dp"
32+
android:layout_marginBottom="15dp"
33+
android:text="@string/pay" />
34+
35+
<Spinner
36+
android:id="@+id/rave_networkSpinner"
37+
android:layout_width="match_parent"
38+
android:layout_height="50dp"
39+
android:layout_marginBottom="10dp" />
40+
41+
42+
<TextView
43+
android:id="@+id/instructionsTv"
44+
android:layout_width="wrap_content"
45+
android:layout_height="wrap_content"
46+
android:layout_marginBottom="20dp"
47+
android:gravity="left"
48+
tools:text="@string/vodafone_msg" />
49+
50+
<android.support.design.widget.TextInputLayout
51+
android:id="@+id/rave_phoneTil"
52+
android:layout_width="match_parent"
53+
android:layout_height="wrap_content"
54+
android:layout_marginBottom="10dp">
55+
56+
<android.support.design.widget.TextInputEditText
57+
android:id="@+id/rave_phoneEt"
58+
android:layout_width="match_parent"
59+
android:layout_height="wrap_content"
60+
android:layout_below="@+id/rave_card1"
61+
android:hint="Phone no"
62+
android:inputType="phone" />
63+
64+
</android.support.design.widget.TextInputLayout>
65+
66+
<android.support.design.widget.TextInputLayout
67+
android:id="@+id/rave_voucherTil"
68+
android:layout_width="match_parent"
69+
android:layout_height="wrap_content"
70+
android:layout_marginBottom="20dp">
71+
72+
<android.support.design.widget.TextInputEditText
73+
android:id="@+id/rave_voucherEt"
74+
android:layout_width="match_parent"
75+
android:layout_height="wrap_content"
76+
android:layout_below="@+id/rave_card1"
77+
android:hint="Voucher"
78+
android:inputType="text" />
79+
80+
</android.support.design.widget.TextInputLayout>
81+
82+
83+
<android.support.design.widget.TextInputLayout
84+
android:id="@+id/rave_amountTil"
85+
android:layout_width="match_parent"
86+
android:layout_height="wrap_content"
87+
android:layout_marginBottom="10dp">
88+
89+
<android.support.design.widget.TextInputEditText
90+
android:id="@+id/rave_amountTV"
91+
android:layout_width="match_parent"
92+
android:layout_height="wrap_content"
93+
android:layout_below="@+id/rave_card1"
94+
android:hint="@string/amount"
95+
android:inputType="numberDecimal" />
96+
97+
</android.support.design.widget.TextInputLayout>
98+
</LinearLayout>
99+
100+
</ScrollView>
101+
102+
</android.support.design.widget.CoordinatorLayout>

raveandroid/src/main/res/values/strings.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@
151151
<string-array name="zm_mobile_money_networks">
152152
<item>Select network</item>
153153
<item>MTN</item>
154-
<item>Tigo</item>
155-
<item>Vodafone</item>
156154
</string-array>
157155

158156
</resources>

0 commit comments

Comments
 (0)