Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
thkouk00
2022-03-24 12:33:06 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ff6a1f6f4657459fcff578946c30803895a4e8c2
ff6a1f6f
1 parent
bd480dcc
bill payment success dialog v1 WIP
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
139 additions
and
3 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/BillPaymentActivity.java
warply_android_sdk/src/main/res/drawable/banner_border_grey_bg.xml
warply_android_sdk/src/main/res/layout/activity_bill_payment.xml
warply_android_sdk/src/main/res/layout/payment_success_dialog.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/BillPaymentActivity.java
View file @
ff6a1f6
...
...
@@ -3,6 +3,7 @@ package ly.warp.sdk.activities;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
ly.warp.sdk.R
;
...
...
@@ -19,6 +20,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
// ===========================================================
private
ImageView
mIvBack
;
private
Button
mPayBtn
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
...
...
@@ -30,6 +32,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
setContentView
(
R
.
layout
.
activity_bill_payment
);
mIvBack
=
findViewById
(
R
.
id
.
iv_bill_payment_close
);
mPayBtn
=
findViewById
(
R
.
id
.
button_pay
);
initViews
();
}
...
...
@@ -43,6 +46,13 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_bill_payment_close
)
{
onBackPressed
();
}
else
if
(
view
.
getId
()
==
R
.
id
.
button_pay
)
{
// open dialog
// PopUpDialogNew dialogMyEac = PopUpDialogNew.dialogErrorWindow(BaseActivity.this,
// getString(R.string.error_wrong_response),
// getString(R.string.error_wrong_credentials),
// null
// );
}
}
...
...
@@ -52,6 +62,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
private
void
initViews
()
{
mIvBack
.
setOnClickListener
(
this
);
mPayBtn
.
setOnClickListener
(
this
);
}
// ===========================================================
...
...
warply_android_sdk/src/main/res/drawable/banner_border_grey_bg.xml
0 → 100644
View file @
ff6a1f6
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#91E5E6E7"
/>
<corners
android:radius=
"10dp"
/>
<padding
android:left=
"0dp"
android:top=
"0dp"
android:right=
"0dp"
android:bottom=
"0dp"
/>
</shape>
\ No newline at end of file
warply_android_sdk/src/main/res/layout/activity_bill_payment.xml
View file @
ff6a1f6
...
...
@@ -101,9 +101,9 @@
app:layout_constraintVertical_bias=
"0.208"
/>
<Button
android:id=
"@+id/button
2
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
android:id=
"@+id/button
_pay
"
android:layout_width=
"
122dp
"
android:layout_height=
"
44dp
"
android:layout_marginBottom=
"28dp"
android:background=
"@drawable/round_border_green"
android:text=
"Πληρωμή"
...
...
warply_android_sdk/src/main/res/layout/payment_success_dialog.xml
0 → 100644
View file @
ff6a1f6
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<TextView
android:id=
"@+id/textView5"
android:layout_width=
"177dp"
android:layout_height=
"35dp"
android:layout_marginTop=
"36dp"
android:text=
"Συγχαρητήρια!"
android:textColor=
"#0072C9"
android:textSize=
"25dp"
android:textFontWeight=
"1000"
android:gravity=
"center"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/textView6"
android:layout_width=
"269dp"
android:layout_height=
"42dp"
android:layout_marginTop=
"24dp"
android:gravity=
"center"
android:text=
"Κέρδισες 1GB για 7 ημέρες!"
android:textColor=
"#5B5B5B"
android:textSize=
"18dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView5"
/>
<TextView
android:id=
"@+id/textView7"
android:layout_width=
"315dp"
android:layout_height=
"61dp"
android:layout_marginTop=
"60dp"
android:gravity=
"center"
android:text=
"Για σένα που είσαι πολλά χρόνια μαζί μας έχουμε επιπλέον δώρα!"
android:textColor=
"#858C96"
android:textSize=
"15dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView6"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"358dp"
android:layout_height=
"61dp"
android:background=
"@drawable/banner_border_grey_bg"
tools:layout_editor_absoluteX=
"26dp"
tools:layout_editor_absoluteY=
"319dp"
>
<TextView
android:id=
"@+id/textView8"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:text=
"Μy Lucky Day Draw"
android:textFontWeight=
"800"
android:textSize=
"17dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/textView9"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
" 10 συμμετοχές αντί για 1"
android:textColor=
"#3A5266"
app:layout_constraintBottom_toBottomOf=
"@+id/textView8"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.428"
app:layout_constraintStart_toEndOf=
"@+id/textView8"
app:layout_constraintTop_toTopOf=
"@+id/textView8"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"358dp"
android:layout_height=
"61dp"
android:background=
"@drawable/banner_border_grey_bg"
tools:layout_editor_absoluteX=
"26dp"
tools:layout_editor_absoluteY=
"415dp"
android:paddingHorizontal=
"5dp"
>
<TextView
android:id=
"@+id/tv_cosmote_tv_pass"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:text=
"Day Free COSMOTE TV pass στο κινητό"
android:textSize=
"17dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"358dp"
android:layout_height=
"61dp"
android:background=
"@drawable/banner_border_grey_bg"
android:paddingHorizontal=
"5dp"
tools:layout_editor_absoluteX=
"26dp"
tools:layout_editor_absoluteY=
"518dp"
>
<TextView
android:id=
"@+id/tv_ikea_coupon"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:text=
"Δωρεάν κουπόνι ΙΚΕΑ αξίας 10€"
android:textSize=
"17dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Please
register
or
login
to post a comment