Panagiotis Triantafyllou

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

......@@ -2,10 +2,16 @@ package ly.warp.sdk.activities;
import android.app.Activity;
import android.app.Dialog;
import android.graphics.Typeface;
import android.os.Bundle;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.SpannableStringBuilder;
import android.text.style.StyleSpan;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import ly.warp.sdk.R;
......@@ -22,6 +28,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
private ImageView mIvBack;
private Button mPayBtn;
private TextView mTvLuckyDraw;
// ===========================================================
// Methods for/from SuperClass/Interfaces
......@@ -69,6 +76,19 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
dialog.setContentView(R.layout.payment_success_dialog);
dialog.getWindow().setBackgroundDrawableResource(R.drawable.banner_border_white);
dialog.show();
mTvLuckyDraw = dialog.findViewById(R.id.tv_lucky_draw);
SpannableStringBuilder builder = new SpannableStringBuilder();
String s1= "My Lucky Day Draw";
String s2= " 10 συμμετοχές αντί για 1";
SpannableString ss1= new SpannableString(s1);
ss1.setSpan(new StyleSpan(Typeface.BOLD), 0, s1.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); // set size
ss1.setSpan("#3A5266", 0, s1.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);// set color
builder.append(ss1);
builder.append(s2);
mTvLuckyDraw.setText(builder, TextView.BufferType.SPANNABLE);
}
// ===========================================================
// Inner and Anonymous Classes
......
......@@ -28,9 +28,12 @@
android:layout_height="32dp"
android:gravity="center"
android:text="Πληρωμή Λογαριασμού"
android:textColor="@color/grey"
android:textSize="17sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.348"
app:layout_constraintHorizontal_bias="0.356"
app:layout_constraintStart_toEndOf="@+id/iv_bill_payment_close"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
......
......@@ -60,8 +60,8 @@
<LinearLayout
android:id="@+id/constraintLayout"
android:layout_width="364dp"
android:layout_height="56dp"
android:layout_width="wrap_content"
android:layout_height="54dp"
android:layout_below="@+id/textView7"
android:layout_alignStart="@+id/textView7"
android:layout_alignEnd="@+id/textView7"
......@@ -72,28 +72,17 @@
android:gravity="center_vertical">
<TextView
android:id="@+id/textView8"
android:id="@+id/tv_lucky_draw"
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"
android:gravity="center"
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
......@@ -117,6 +106,7 @@
android:layout_marginStart="16dp"
android:text="Day Free COSMOTE TV pass στο κινητό"
android:textSize="17dp"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
......@@ -143,6 +133,7 @@
android:layout_marginStart="16dp"
android:text="Δωρεάν κουπόνι ΙΚΕΑ αξίας 10€"
android:textSize="17dp"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
......