thkouk00

bill payment success dialog v1 WIP

...@@ -3,6 +3,7 @@ package ly.warp.sdk.activities; ...@@ -3,6 +3,7 @@ package ly.warp.sdk.activities;
3 import android.app.Activity; 3 import android.app.Activity;
4 import android.os.Bundle; 4 import android.os.Bundle;
5 import android.view.View; 5 import android.view.View;
6 +import android.widget.Button;
6 import android.widget.ImageView; 7 import android.widget.ImageView;
7 8
8 import ly.warp.sdk.R; 9 import ly.warp.sdk.R;
...@@ -19,6 +20,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene ...@@ -19,6 +20,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
19 // =========================================================== 20 // ===========================================================
20 21
21 private ImageView mIvBack; 22 private ImageView mIvBack;
23 + private Button mPayBtn;
22 24
23 // =========================================================== 25 // ===========================================================
24 // Methods for/from SuperClass/Interfaces 26 // Methods for/from SuperClass/Interfaces
...@@ -30,6 +32,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene ...@@ -30,6 +32,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
30 setContentView(R.layout.activity_bill_payment); 32 setContentView(R.layout.activity_bill_payment);
31 33
32 mIvBack = findViewById(R.id.iv_bill_payment_close); 34 mIvBack = findViewById(R.id.iv_bill_payment_close);
35 + mPayBtn = findViewById(R.id.button_pay);
33 36
34 initViews(); 37 initViews();
35 } 38 }
...@@ -43,6 +46,13 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene ...@@ -43,6 +46,13 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
43 public void onClick(View view) { 46 public void onClick(View view) {
44 if (view.getId() == R.id.iv_bill_payment_close) { 47 if (view.getId() == R.id.iv_bill_payment_close) {
45 onBackPressed(); 48 onBackPressed();
49 + } else if (view.getId() == R.id.button_pay) {
50 + // open dialog
51 + // PopUpDialogNew dialogMyEac = PopUpDialogNew.dialogErrorWindow(BaseActivity.this,
52 + // getString(R.string.error_wrong_response),
53 + // getString(R.string.error_wrong_credentials),
54 + // null
55 + // );
46 } 56 }
47 } 57 }
48 58
...@@ -52,6 +62,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene ...@@ -52,6 +62,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
52 62
53 private void initViews() { 63 private void initViews() {
54 mIvBack.setOnClickListener(this); 64 mIvBack.setOnClickListener(this);
65 + mPayBtn.setOnClickListener(this);
55 } 66 }
56 67
57 // =========================================================== 68 // ===========================================================
......
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android">
3 + <solid android:color="#91E5E6E7"/>
4 + <corners android:radius="10dp"/>
5 + <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
6 +</shape>
...\ No newline at end of file ...\ No newline at end of file
...@@ -101,9 +101,9 @@ ...@@ -101,9 +101,9 @@
101 app:layout_constraintVertical_bias="0.208" /> 101 app:layout_constraintVertical_bias="0.208" />
102 102
103 <Button 103 <Button
104 - android:id="@+id/button2" 104 + android:id="@+id/button_pay"
105 - android:layout_width="wrap_content" 105 + android:layout_width="122dp"
106 - android:layout_height="wrap_content" 106 + android:layout_height="44dp"
107 android:layout_marginBottom="28dp" 107 android:layout_marginBottom="28dp"
108 android:background="@drawable/round_border_green" 108 android:background="@drawable/round_border_green"
109 android:text="Πληρωμή" 109 android:text="Πληρωμή"
......
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="match_parent">
7 +
8 + <TextView
9 + android:id="@+id/textView5"
10 + android:layout_width="177dp"
11 + android:layout_height="35dp"
12 + android:layout_marginTop="36dp"
13 + android:text="Συγχαρητήρια!"
14 + android:textColor="#0072C9"
15 + android:textSize="25dp"
16 + android:textFontWeight="1000"
17 + android:gravity="center"
18 + app:layout_constraintEnd_toEndOf="parent"
19 + app:layout_constraintStart_toStartOf="parent"
20 + app:layout_constraintTop_toTopOf="parent" />
21 +
22 + <TextView
23 + android:id="@+id/textView6"
24 + android:layout_width="269dp"
25 + android:layout_height="42dp"
26 + android:layout_marginTop="24dp"
27 + android:gravity="center"
28 + android:text="Κέρδισες 1GB για 7 ημέρες!"
29 + android:textColor="#5B5B5B"
30 + android:textSize="18dp"
31 + app:layout_constraintEnd_toEndOf="parent"
32 + app:layout_constraintStart_toStartOf="parent"
33 + app:layout_constraintTop_toBottomOf="@+id/textView5" />
34 +
35 + <TextView
36 + android:id="@+id/textView7"
37 + android:layout_width="315dp"
38 + android:layout_height="61dp"
39 + android:layout_marginTop="60dp"
40 + android:gravity="center"
41 + android:text="Για σένα που είσαι πολλά χρόνια μαζί μας έχουμε επιπλέον δώρα!"
42 + android:textColor="#858C96"
43 + android:textSize="15dp"
44 + app:layout_constraintEnd_toEndOf="parent"
45 + app:layout_constraintStart_toStartOf="parent"
46 + app:layout_constraintTop_toBottomOf="@+id/textView6" />
47 +
48 + <androidx.constraintlayout.widget.ConstraintLayout
49 + android:layout_width="358dp"
50 + android:layout_height="61dp"
51 + android:background="@drawable/banner_border_grey_bg"
52 + tools:layout_editor_absoluteX="26dp"
53 + tools:layout_editor_absoluteY="319dp">
54 +
55 + <TextView
56 + android:id="@+id/textView8"
57 + android:layout_width="wrap_content"
58 + android:layout_height="wrap_content"
59 + android:layout_marginStart="16dp"
60 + android:text="Μy Lucky Day Draw"
61 + android:textFontWeight="800"
62 + android:textSize="17dp"
63 + app:layout_constraintBottom_toBottomOf="parent"
64 + app:layout_constraintStart_toStartOf="parent"
65 + app:layout_constraintTop_toTopOf="parent" />
66 +
67 + <TextView
68 + android:id="@+id/textView9"
69 + android:layout_width="wrap_content"
70 + android:layout_height="wrap_content"
71 + android:text=" 10 συμμετοχές αντί για 1"
72 + android:textColor="#3A5266"
73 + app:layout_constraintBottom_toBottomOf="@+id/textView8"
74 + app:layout_constraintEnd_toEndOf="parent"
75 + app:layout_constraintHorizontal_bias="0.428"
76 + app:layout_constraintStart_toEndOf="@+id/textView8"
77 + app:layout_constraintTop_toTopOf="@+id/textView8" />
78 + </androidx.constraintlayout.widget.ConstraintLayout>
79 +
80 + <androidx.constraintlayout.widget.ConstraintLayout
81 + android:layout_width="358dp"
82 + android:layout_height="61dp"
83 + android:background="@drawable/banner_border_grey_bg"
84 + tools:layout_editor_absoluteX="26dp"
85 + tools:layout_editor_absoluteY="415dp"
86 + android:paddingHorizontal="5dp">
87 +
88 + <TextView
89 + android:id="@+id/tv_cosmote_tv_pass"
90 + android:layout_width="match_parent"
91 + android:layout_height="wrap_content"
92 + android:layout_marginStart="16dp"
93 + android:text="Day Free COSMOTE TV pass στο κινητό"
94 + android:textSize="17dp"
95 + app:layout_constraintBottom_toBottomOf="parent"
96 + app:layout_constraintStart_toStartOf="parent"
97 + app:layout_constraintTop_toTopOf="parent" />
98 + </androidx.constraintlayout.widget.ConstraintLayout>
99 +
100 + <androidx.constraintlayout.widget.ConstraintLayout
101 + android:layout_width="358dp"
102 + android:layout_height="61dp"
103 + android:background="@drawable/banner_border_grey_bg"
104 + android:paddingHorizontal="5dp"
105 + tools:layout_editor_absoluteX="26dp"
106 + tools:layout_editor_absoluteY="518dp">
107 +
108 + <TextView
109 + android:id="@+id/tv_ikea_coupon"
110 + android:layout_width="match_parent"
111 + android:layout_height="wrap_content"
112 + android:layout_marginStart="16dp"
113 + android:text="Δωρεάν κουπόνι ΙΚΕΑ αξίας 10€"
114 + android:textSize="17dp"
115 + app:layout_constraintBottom_toBottomOf="parent"
116 + app:layout_constraintStart_toStartOf="parent"
117 + app:layout_constraintTop_toTopOf="parent" />
118 + </androidx.constraintlayout.widget.ConstraintLayout>
119 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file