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
Panagiotis Triantafyllou
2022-03-24 14:20:31 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ce4afafde6254d859b7338701f3248931bd50087
ce4afafd
2 parents
8500c0d9
7ff4bf4b
Merge remote-tracking branch 'origin/cosmote' into cosmote
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
196 additions
and
17 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/drawable/banner_border_white.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 @
ce4afaf
package
ly
.
warp
.
sdk
.
activities
;
import
android.app.Activity
;
import
android.app.Dialog
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
ly.warp.sdk.R
;
...
...
@@ -19,6 +21,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
// ===========================================================
private
ImageView
mIvBack
;
private
Button
mPayBtn
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
...
...
@@ -29,7 +32,8 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_bill_payment
);
// mIvBack = findViewById(R.id.iv_back);
mIvBack
=
findViewById
(
R
.
id
.
iv_bill_payment_close
);
mPayBtn
=
findViewById
(
R
.
id
.
button_pay
);
initViews
();
}
...
...
@@ -41,8 +45,11 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
@Override
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_back
)
{
finish
();
if
(
view
.
getId
()
==
R
.
id
.
iv_bill_payment_close
)
{
onBackPressed
();
}
else
if
(
view
.
getId
()
==
R
.
id
.
button_pay
)
{
// open dialog
showDialog
();
}
}
...
...
@@ -51,9 +58,16 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
// ===========================================================
private
void
initViews
()
{
// mIvBack.setOnClickListener(this);
mIvBack
.
setOnClickListener
(
this
);
mPayBtn
.
setOnClickListener
(
this
);
}
private
void
showDialog
()
{
Dialog
dialog
=
new
Dialog
(
this
);
dialog
.
setContentView
(
R
.
layout
.
payment_success_dialog
);
dialog
.
getWindow
().
setBackgroundDrawableResource
(
R
.
drawable
.
banner_border_white
);
dialog
.
show
();
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
...
...
warply_android_sdk/src/main/res/drawable/banner_border_grey_bg.xml
0 → 100644
View file @
ce4afaf
<?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/drawable/banner_border_white.xml
0 → 100644
View file @
ce4afaf
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#FFFFFF"
/>
<stroke
android:width=
"3dp"
android:color=
"#FFFFFF"
/>
<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 @
ce4afaf
...
...
@@ -13,7 +13,7 @@
app:layout_constraintTop_toTopOf=
"parent"
>
<ImageView
android:id=
"@+id/i
mageView6
"
android:id=
"@+id/i
v_bill_payment_close
"
android:layout_width=
"21dp"
android:layout_height=
"20dp"
android:layout_marginStart=
"24dp"
...
...
@@ -31,7 +31,7 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.348"
app:layout_constraintStart_toEndOf=
"@+id/i
mageView6
"
app:layout_constraintStart_toEndOf=
"@+id/i
v_bill_payment_close
"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
@@ -71,12 +71,13 @@
<EditText
android:id=
"@+id/editTextTextPersonName"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
android:layout_width=
"
141dp
"
android:layout_height=
"
52dp
"
android:ems=
"10"
android:gravity=
"center_horizontal"
android:inputType=
"textPersonName"
android:text=
"Name"
android:text=
"0€"
android:textSize=
"25dp"
app:layout_constraintBottom_toBottomOf=
"@+id/view"
app:layout_constraintEnd_toEndOf=
"@+id/view"
app:layout_constraintHorizontal_bias=
"0.475"
...
...
@@ -86,22 +87,23 @@
<EditText
android:id=
"@+id/editTextTextPersonName2"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
android:layout_width=
"
263dp
"
android:layout_height=
"
54dp
"
android:ems=
"10"
android:hint=
"Αριθμός Λογαριασμού"
android:inputType=
"textPersonName"
android:text
=
"Name
"
android:text
Size=
"15dp
"
app:layout_constraintBottom_toBottomOf=
"@+id/view"
app:layout_constraintEnd_toEndOf=
"@+id/view"
app:layout_constraintHorizontal_bias=
"0.4
82
"
app:layout_constraintHorizontal_bias=
"0.4
7
"
app:layout_constraintStart_toStartOf=
"@+id/view"
app:layout_constraintTop_toBottomOf=
"@+id/editTextTextPersonName"
app:layout_constraintVertical_bias=
"0.2
77
"
/>
app:layout_constraintVertical_bias=
"0.2
08
"
/>
<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 @
ce4afaf
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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=
"550dp"
android:layout_gravity=
"center_horizontal"
>
<TextView
android:id=
"@+id/textView5"
android:layout_width=
"243dp"
android:layout_height=
"55dp"
android:layout_alignParentStart=
"true"
android:layout_alignParentTop=
"true"
android:layout_alignParentEnd=
"true"
android:layout_marginStart=
"54dp"
android:layout_marginTop=
"38dp"
android:layout_marginEnd=
"63dp"
android:gravity=
"center"
android:text=
"Συγχαρητήρια!"
android:textColor=
"#0072C9"
android:textFontWeight=
"1000"
android:textSize=
"25dp"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.46"
tools:layout_editor_absoluteX=
"87dp"
/>
<TextView
android:id=
"@+id/textView6"
android:layout_width=
"336dp"
android:layout_height=
"42dp"
android:layout_below=
"@+id/textView5"
android:layout_alignStart=
"@+id/textView5"
android:layout_alignEnd=
"@+id/textView5"
android:layout_marginStart=
"-16dp"
android:layout_marginTop=
"3dp"
android:layout_marginEnd=
"-24dp"
android:layout_marginBottom=
"24dp"
android:gravity=
"center"
android:text=
"Κέρδισες 1GB για 7 ημέρες!"
android:textColor=
"#5B5B5B"
android:textSize=
"18dp"
/>
<TextView
android:id=
"@+id/textView7"
android:layout_width=
"351dp"
android:layout_height=
"58dp"
android:layout_below=
"@+id/textView6"
android:layout_alignStart=
"@+id/textView6"
android:layout_alignEnd=
"@+id/textView6"
android:layout_marginStart=
"-5dp"
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"-14dp"
android:gravity=
"center"
android:text=
"Για σένα που είσαι πολλά χρόνια μαζί μας έχουμε επιπλέον δώρα!"
android:textColor=
"#858C96"
android:textSize=
"15dp"
tools:layout_editor_absoluteX=
"26dp"
tools:layout_editor_absoluteY=
"177dp"
/>
<LinearLayout
android:id=
"@+id/constraintLayout"
android:layout_width=
"364dp"
android:layout_height=
"56dp"
android:layout_below=
"@+id/textView7"
android:layout_alignStart=
"@+id/textView7"
android:layout_alignEnd=
"@+id/textView7"
android:layout_marginStart=
"-8dp"
android:layout_marginTop=
"38dp"
android:layout_marginEnd=
"-3dp"
android:background=
"@drawable/banner_border_grey_bg"
android:gravity=
"center_vertical"
>
<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"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/constraintLayout3"
android:layout_width=
"wrap_content"
android:layout_height=
"60dp"
android:layout_below=
"@+id/constraintLayout"
android:layout_alignStart=
"@+id/constraintLayout"
android:layout_alignEnd=
"@+id/constraintLayout"
android:layout_marginStart=
"1dp"
android:layout_marginTop=
"33dp"
android:layout_marginEnd=
"3dp"
android:background=
"@drawable/banner_border_grey_bg"
android:gravity=
"center_vertical"
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"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/constraintLayout4"
android:layout_width=
"wrap_content"
android:layout_height=
"59dp"
android:layout_below=
"@+id/constraintLayout3"
android:layout_alignStart=
"@+id/constraintLayout3"
android:layout_alignEnd=
"@+id/constraintLayout3"
android:layout_marginStart=
"2dp"
android:layout_marginTop=
"29dp"
android:layout_marginEnd=
"1dp"
android:background=
"@drawable/banner_border_grey_bg"
android:gravity=
"center_vertical"
android:paddingHorizontal=
"5dp"
>
<TextView
android:id=
"@+id/tv_ikea_coupon"
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"
/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
Please
register
or
login
to post a comment