Panagiotis Triantafyllou

fixes

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4-cosbeta59'
PUBLISH_VERSION = '4.5.4-cosbeta60'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -221,9 +221,16 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener
mLlTerms.setOnClickListener(this);
String tempCoupon = mCoupon.getCoupon();
int result = 0;
for (int i = 0; i < (12 - mCoupon.getCoupon().length()); i++) {
tempCoupon += "0";
}
for (int i = mCoupon.getCoupon().length() - 1; i >= 0; i--) {
result = result + Integer.parseInt(String.valueOf((mCoupon.getCoupon()).charAt(i))) * (1 + (2 * (i % 2)));
}
tempCoupon = tempCoupon + (10 - (result % 10)) % 10;
createBarcodeBitmap(tempCoupon);
}
......
......@@ -161,6 +161,8 @@ public class TelcoActivity extends Activity implements View.OnClickListener {
private void showActivationDialog() {
final BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(this);
bottomSheetDialog.setContentView(R.layout.dl_share);
TextView tvHeader = bottomSheetDialog.findViewById(R.id.tv_sender_value);
tvHeader.setText(R.string.cos_coupon_share_telco);
LinearLayout parent = bottomSheetDialog.findViewById(R.id.ll_share_dialog_view_inner);
ImageView dialogClose = (ImageView) bottomSheetDialog.findViewById(R.id.iv_sender_list_close);
......
......@@ -60,7 +60,7 @@ public class WarplyHealthService extends Service implements SensorEventListener
private final int ACCEL_RING_SIZE = 50;
private final int VEL_RING_SIZE = 10;
// change this threshold according to your sensitivity preferences
private final float STEP_THRESHOLD = 20f;
private final float STEP_THRESHOLD = 10f; // default 40, cosmote default 20
private final int STEP_DELAY_NS = 250000000;
private int accelRingCounter = 0;
private float[] accelRingX = new float[ACCEL_RING_SIZE];
......@@ -101,7 +101,7 @@ public class WarplyHealthService extends Service implements SensorEventListener
b.setDefaults(Notification.DEFAULT_VIBRATE | Notification.DEFAULT_LIGHTS);
b.setChannelId(STEPS_CHANNEL_ID);
b.setContentTitle(getString(R.string.cos_steps_for_good_notification_title));
b.setContentText("Subtitle");
b.setContentText(getString(R.string.cos_steps_for_good_notification_subtitle));
b.setContentIntent(pbIntent);
b.setAutoCancel(true);
b.setOngoing(true);
......
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/cos_grey10" />
<corners android:radius="7dp" />
</shape>
</item>
<item
android:bottom="2dp"
android:left="0dp"
android:right="0dp"
android:top="0dp">
<shape android:shape="rectangle">
<gradient
android:endColor="@color/cos_skyblue"
android:startColor="@color/cos_green9"
android:type="linear" />
<corners android:radius="7dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:topLeftRadius="30dp" />
<solid android:color="@color/cos_grey5" />
</shape>
</item>
</layer-list>
\ No newline at end of file
......@@ -43,7 +43,7 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/shape_cos_loyalty"
android:background="@drawable/shape_cos_loyalty_no_border"
android:orientation="vertical">
<LinearLayout
......
......@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
android:background="@color/cos_grey5">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_loyalty_wallet_header"
......@@ -34,407 +34,372 @@
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- <ScrollView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_below="@+id/cl_header"-->
<!-- android:fillViewport="true">-->
<!-- <RelativeLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@drawable/shape_cos_loyalty"-->
<!-- android:orientation="vertical"-->
<!-- android:paddingBottom="24dp">-->
<!-- <ImageView-->
<!-- android:id="@+id/iv_deals_logo_new"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_below="@id/cl_deals_win"-->
<!-- android:layout_marginStart="12dp"-->
<!-- android:layout_marginTop="48dp"-->
<!-- android:src="@drawable/ic_deals_logo_new" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_mygifts_title"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_below="@+id/cl_loyalty_deals"-->
<!-- android:layout_marginStart="12dp"-->
<!-- android:layout_marginTop="48dp"-->
<!-- android:text="@string/cos_mygifts"-->
<!-- android:textColor="@android:color/white"-->
<!-- android:textFontWeight="600"-->
<!-- android:textSize="18sp" />-->
<!-- </RelativeLayout>-->
<!-- </ScrollView>-->
<ScrollView
<LinearLayout
android:id="@+id/ll_first_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/cl_loyalty_wallet_header"
android:background="@color/cos_grey5"
android:fillViewport="true">
android:background="@drawable/ic_background_circle"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingVertical="32dp">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/iv_profile_photo"
android:layout_width="70dp"
android:layout_height="70dp"
android:src="@drawable/ic_default_photo"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tv_profile_name"
fontPath="fonts/pf_square_sans_pro_regular.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="6dp"
android:maxLines="1"
android:textColor="@color/grey"
android:textSize="15sp"
tools:text="Test Name" />
<LinearLayout
android:id="@+id/ll_first_view"
android:layout_width="match_parent"
<LinearLayout
android:id="@+id/ll_user_badge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_cos_gradient6"
android:gravity="center"
android:paddingHorizontal="10dp"
android:paddingVertical="3dp"
android:visibility="gone"
tools:visibility="gone">
<TextView
android:id="@+id/tv_type"
fontPath="fonts/pf_square_sans_pro_medium.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_background_circle"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingVertical="32dp">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/iv_profile_photo"
android:layout_width="70dp"
android:layout_height="70dp"
android:src="@drawable/ic_default_photo"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_profile_name"
fontPath="fonts/pf_square_sans_pro_regular.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="6dp"
android:maxLines="1"
android:textColor="@color/grey"
android:textSize="15sp"
tools:text="Test Name" />
android:textColor="@android:color/white"
tools:text="@string/cos_profile_type" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_user_badge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_cos_gradient6"
android:gravity="center"
android:paddingHorizontal="10dp"
android:paddingVertical="3dp"
android:visibility="gone"
tools:visibility="gone">
<TextView
android:id="@+id/tv_type"
fontPath="fonts/pf_square_sans_pro_medium.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
tools:text="@string/cos_profile_type" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_user_questionnaire"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_cos_grey5"
android:gravity="center"
android:paddingHorizontal="8dp"
android:paddingVertical="4dp"
android:visibility="gone"
tools:visibility="visible">
<TextView
android:id="@+id/tv_questionnaire"
fontPath="fonts/pf_square_sans_pro_medium.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/cos_profile_preferences"
android:textColor="@color/cos_green6" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/ll_user_questionnaire"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_cos_grey5"
android:gravity="center"
android:paddingHorizontal="8dp"
android:paddingVertical="4dp"
android:visibility="gone"
tools:visibility="visible">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/ll_first_view"
android:background="@color/cos_grey5">
<TextView
android:id="@+id/tv_questionnaire"
fontPath="fonts/pf_square_sans_pro_medium.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/cos_profile_preferences"
android:textColor="@color/cos_green6" />
</LinearLayout>
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/cos_grey5"
android:fillViewport="true">
<LinearLayout
android:id="@+id/ll_second_view"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/ll_first_view"
android:gravity="center_horizontal"
android:orientation="vertical">
android:layout_height="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_deals_cos"
<LinearLayout
android:id="@+id/ll_second_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"
android:layout_marginTop="32dp">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_vertical_06_cos"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.09" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_50_cos"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.56" />
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_deals_win_inner_cos"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/shape_cos_grey4"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/gl_vertical_06_cos"
app:layout_constraintTop_toTopOf="parent">
android:id="@+id/cl_deals_cos"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"
android:layout_marginTop="32dp">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_vertical_16_cos"
android:id="@+id/gl_vertical_06_cos"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.16" />
app:layout_constraintGuide_percent="0.09" />
<TextView
android:id="@+id/tv_deals_value_all"
fontPath="fonts/pf_square_sans_pro_regular.ttf"
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_50_cos"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.56" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_deals_win_inner_cos"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="@string/cos_deals_win_title_cos"
android:textColor="@android:color/white"
android:textSize="16sp"
android:layout_height="0dp"
android:background="@drawable/shape_cos_grey4"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/gl_vertical_16_cos"
app:layout_constraintStart_toEndOf="@+id/gl_vertical_06_cos"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_vertical_16_cos"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.16" />
<TextView
android:id="@+id/tv_deals_value_all"
fontPath="fonts/pf_square_sans_pro_regular.ttf"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="@string/cos_deals_win_title_cos"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/gl_vertical_16_cos"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/iv_deals_logo"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginVertical="4dp"
android:src="@drawable/ic_deals_polygon"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/gl_vertical_06_cos"
app:layout_constraintStart_toStartOf="@+id/gl_vertical_06_cos"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/iv_deals_logo"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginVertical="4dp"
android:src="@drawable/ic_deals_polygon"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/gl_vertical_06_cos"
app:layout_constraintStart_toStartOf="@+id/gl_vertical_06_cos"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_deals_value"
fontPath="fonts/pf_square_sans_pro_bold.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/cos_grey"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="@+id/iv_deals_logo"
app:layout_constraintStart_toStartOf="@+id/iv_deals_logo"
app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50_cos"
tools:text="18.00€" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_deals_win"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"
android:layout_marginTop="32dp">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_vertical_06"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.09" />
<TextView
android:id="@+id/tv_deals_value"
fontPath="fonts/pf_square_sans_pro_bold.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/cos_grey"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="@+id/iv_deals_logo"
app:layout_constraintStart_toStartOf="@+id/iv_deals_logo"
app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50_cos"
tools:text="18.00€" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_50"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.56" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_deals_win_inner"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/shape_cos_grey4"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/gl_vertical_06"
app:layout_constraintTop_toTopOf="parent">
android:id="@+id/cl_deals_win"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"
android:layout_marginTop="32dp">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_vertical_16"
android:id="@+id/gl_vertical_06"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.16" />
app:layout_constraintGuide_percent="0.09" />
<TextView
android:id="@+id/tv_gifts_value_all"
fontPath="fonts/pf_square_sans_pro_regular.ttf"
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_50"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.56" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_deals_win_inner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="@string/cos_deals_win_title"
android:textColor="@android:color/white"
android:textSize="16sp"
android:layout_height="0dp"
android:background="@drawable/shape_cos_grey4"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/gl_vertical_16"
app:layout_constraintStart_toEndOf="@+id/gl_vertical_06"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_vertical_16"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.16" />
<TextView
android:id="@+id/tv_gifts_value_all"
fontPath="fonts/pf_square_sans_pro_regular.ttf"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="@string/cos_deals_win_title"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/gl_vertical_16"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/iv_gifts_logo"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginVertical="4dp"
android:src="@drawable/ic_gifts_polygon"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/gl_vertical_06"
app:layout_constraintStart_toStartOf="@+id/gl_vertical_06"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_gifts_value"
fontPath="fonts/pf_square_sans_pro_bold.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/cos_grey"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="@+id/iv_gifts_logo"
app:layout_constraintStart_toStartOf="@+id/iv_gifts_logo"
app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50"
tools:text="20.00€" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/iv_gifts_logo"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginVertical="4dp"
android:src="@drawable/ic_gifts_polygon"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/gl_vertical_06"
app:layout_constraintStart_toStartOf="@+id/gl_vertical_06"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/dfy_logo"
android:layout_width="110dp"
android:layout_height="40dp"
android:layout_gravity="start"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="48dp"
android:src="@drawable/ic_deals_horizontal" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_mygifts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"
android:layout_marginTop="12dp"
android:background="@drawable/shape_cos_white2"
android:paddingVertical="10dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="24dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/iv_deals_circle"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/tv_active_gifts"
fontPath="fonts/pf_square_sans_pro_medium.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/blue_dark"
android:textSize="18sp"
tools:text="@string/cos_active_deals" />
<TextView
android:id="@+id/tv_active_deals_text"
fontPath="fonts/pf_square_sans_pro_bold.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="2"
android:textColor="@color/blue_dark"
android:textSize="18sp"
tools:text="961544809" />
<TextView
android:id="@+id/tv_active_deals_date_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/blue_dark"
android:visibility="gone"
tools:text="@string/cos_active_coupon_date" />
</LinearLayout>
<ImageView
android:id="@+id/iv_deals_circle"
android:layout_width="86dp"
android:layout_height="86dp"
android:layout_marginVertical="4dp"
android:layout_marginEnd="32dp"
android:src="@drawable/ic_deals_circle"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/tv_gifts_value"
fontPath="fonts/pf_square_sans_pro_bold.ttf"
android:id="@+id/tv_active_coupons_header"
fontPath="fonts/pf_square_sans_pro_medium.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/cos_grey"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="@+id/iv_gifts_logo"
app:layout_constraintStart_toStartOf="@+id/iv_gifts_logo"
app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50"
tools:text="20.00€" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/dfy_logo"
android:layout_width="110dp"
android:layout_height="40dp"
android:layout_gravity="start"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="48dp"
android:src="@drawable/ic_deals_horizontal" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_mygifts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_mygifts_title"
android:layout_marginHorizontal="8dp"
android:layout_marginTop="12dp"
android:background="@drawable/shape_cos_white2"
android:paddingVertical="10dp">
android:layout_gravity="start"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="48dp"
android:layout_marginBottom="10dp"
android:text="@string/cos_mygifts"
android:textColor="@android:color/white"
android:textSize="20sp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_active_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="2dp"
android:paddingBottom="40dp" />
<LinearLayout
android:layout_width="0dp"
android:id="@+id/ll_empty_wallet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="24dp"
android:layout_marginHorizontal="32dp"
android:layout_marginTop="24dp"
android:gravity="center"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/iv_deals_circle"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
android:visibility="gone">
<TextView
android:id="@+id/tv_active_gifts"
fontPath="fonts/pf_square_sans_pro_medium.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/blue_dark"
android:textSize="18sp"
tools:text="@string/cos_active_deals" />
<TextView
android:id="@+id/tv_active_deals_text"
fontPath="fonts/pf_square_sans_pro_bold.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="2"
android:textColor="@color/blue_dark"
android:textSize="18sp"
tools:text="961544809" />
<ImageView
android:layout_width="72dp"
android:layout_height="72dp"
android:src="@drawable/ic_empty_wallet" />
<TextView
android:id="@+id/tv_active_deals_date_text"
fontPath="fonts/pf_square_sans_pro_regular.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/blue_dark"
android:visibility="gone"
tools:text="@string/cos_active_coupon_date" />
android:layout_marginTop="8dp"
android:gravity="center"
android:text="@string/cos_empty_wallet"
android:textColor="@color/cos_white_tr"
android:textSize="16sp" />
</LinearLayout>
<ImageView
android:id="@+id/iv_deals_circle"
android:layout_width="86dp"
android:layout_height="86dp"
android:layout_marginVertical="4dp"
android:layout_marginEnd="32dp"
android:src="@drawable/ic_deals_circle"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/tv_active_coupons_header"
fontPath="fonts/pf_square_sans_pro_medium.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="48dp"
android:layout_marginBottom="10dp"
android:text="@string/cos_mygifts"
android:textColor="@android:color/white"
android:textSize="20sp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_active_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="2dp"
android:paddingBottom="40dp" />
<LinearLayout
android:id="@+id/ll_empty_wallet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="32dp"
android:layout_marginTop="24dp"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone">
<ImageView
android:layout_width="72dp"
android:layout_height="72dp"
android:src="@drawable/ic_empty_wallet" />
<TextView
fontPath="fonts/pf_square_sans_pro_regular.ttf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="@string/cos_empty_wallet"
android:textColor="@color/cos_white_tr"
android:textSize="16sp" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
</RelativeLayout>
......
......@@ -43,7 +43,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/cl_more_header"
android:background="@drawable/shape_cos_loyalty"
android:background="@drawable/shape_cos_loyalty_no_border"
android:orientation="vertical">
<ScrollView
......
......@@ -61,4 +61,5 @@
<color name="cos_green10">#73CA34</color>
<color name="cos_blue5">#0D81B8</color>
<color name="cos_grey9">#757575</color>
<color name="cos_grey10">#53626E</color>
</resources>
\ No newline at end of file
......
......@@ -133,6 +133,8 @@
<string name="cos_empty_expired_coupons">Δεν έχεις εξαργυρώσει ακόμη κουπόνια</string>
<string name="cos_dlg_pacing_goal">Πέτυχες το στόχο του μήνα! Διάλεξε το δώρο που επιθυμείς να ενεργοποιήσεις!</string>
<string name="cos_mfy_other">ΆΛΛΕΣ</string>
<string name="cos_coupon_share_telco">Επιλογή σύνδεσης</string>
<string name="cos_steps_for_good_notification_subtitle">Περπάτησε κάθε μέρα περισσότερο για να ολοκληρώσεις το στόχο του μήνα και να ξεκλειδώσεις μοναδικές προσφορές!</string>
<string-array name="coupons_array">
<item>Κουπόνια</item>
......