thkouk00

payment success dialog v2

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;
......@@ -48,11 +49,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
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
// );
showDialog();
}
}
......@@ -65,6 +62,12 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
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="#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
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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="match_parent">
android:layout_height="550dp"
android:layout_gravity="center_horizontal">
<TextView
android:id="@+id/textView5"
android:layout_width="177dp"
android:layout_height="35dp"
android:layout_marginTop="36dp"
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:textSize="25dp"
android:textFontWeight="1000"
android:gravity="center"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
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="269dp"
android:layout_width="336dp"
android:layout_height="42dp"
android:layout_marginTop="24dp"
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"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView5" />
android:textSize="18dp" />
<TextView
android:id="@+id/textView7"
android:layout_width="315dp"
android:layout_height="61dp"
android:layout_marginTop="60dp"
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"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView6" />
tools:layout_editor_absoluteX="26dp"
tools:layout_editor_absoluteY="177dp" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="358dp"
android:layout_height="61dp"
<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"
tools:layout_editor_absoluteX="26dp"
tools:layout_editor_absoluteY="319dp">
android:gravity="center_vertical">
<TextView
android:id="@+id/textView8"
......@@ -75,14 +94,20 @@
app:layout_constraintHorizontal_bias="0.428"
app:layout_constraintStart_toEndOf="@+id/textView8"
app:layout_constraintTop_toTopOf="@+id/textView8" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="358dp"
android:layout_height="61dp"
<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"
tools:layout_editor_absoluteX="26dp"
tools:layout_editor_absoluteY="415dp"
android:gravity="center_vertical"
android:paddingHorizontal="5dp">
<TextView
......@@ -95,25 +120,31 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="358dp"
android:layout_height="61dp"
<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:paddingHorizontal="5dp"
tools:layout_editor_absoluteX="26dp"
tools:layout_editor_absoluteY="518dp">
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="Δωρεάν κουπόνι ΙΚΕΑ αξίας 10€"
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>
\ No newline at end of file
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
......