Panagiotis Triantafyllou

Merge remote-tracking branch 'origin/cosmote' into cosmote

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
// ===========================================================
......
<?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
<?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
......@@ -13,7 +13,7 @@
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView6"
android:id="@+id/iv_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/imageView6"
app:layout_constraintStart_toEndOf="@+id/iv_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:textSize="15dp"
app:layout_constraintBottom_toBottomOf="@+id/view"
app:layout_constraintEnd_toEndOf="@+id/view"
app:layout_constraintHorizontal_bias="0.482"
app:layout_constraintHorizontal_bias="0.47"
app:layout_constraintStart_toStartOf="@+id/view"
app:layout_constraintTop_toBottomOf="@+id/editTextTextPersonName"
app:layout_constraintVertical_bias="0.277" />
app:layout_constraintVertical_bias="0.208" />
<Button
android:id="@+id/button2"
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="Πληρωμή"
......
<?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