Panagiotis Triantafyllou

loyalty wip

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:radius="19dp"/>
<solid android:color="@android:color/holo_red_dark" />
</shape>
\ No newline at end of file
......@@ -78,7 +78,6 @@
android:id="@+id/rv_loyalty_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingEnd="10dp" />
......@@ -89,7 +88,7 @@
android:id="@+id/rl_gifts_row"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/cos_cyan"
android:layout_marginTop="32dp"
app:layout_constraintTop_toBottomOf="@+id/rl_coupons_row">
<TextView
......@@ -107,87 +106,25 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_gifts_loyalty_title"
android:background="@android:color/white"
android:layout_marginTop="32dp"
android:scrollbars="none">
<RelativeLayout
android:layout_width="360dp"
android:layout_height="200dp"
android:layout_marginStart="10dp"
android:background="@color/cos_cyan">
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/gl_horizontal_80_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.8" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/gl_horizontal_55_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.55" />-->
<!-- <ImageView-->
<!-- android:id="@+id/iv_gift_item_logo"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="0dp"-->
<!-- android:scaleType="centerCrop"-->
<!-- android:src="@drawable/ic_banner_gift"-->
<!-- app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_80_guideline"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent" />-->
<!-- <RelativeLayout-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="0dp"-->
<!-- android:background="@color/cos_cyan"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_55_guideline">-->
<!-- <LinearLayout-->
<!-- android:id="@+id/ll_loyalty_item1"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@color/white_tr3"-->
<!-- android:paddingVertical="4dp">-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="Αποκλειστικά για σένα"-->
<!-- android:textColor="@color/grey"-->
<!-- android:textStyle="bold" />-->
<!-- </LinearLayout>-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_below="@+id/ll_loyalty_item1"-->
<!-- android:background="@android:color/white"-->
<!-- android:orientation="vertical">-->
<!-- <TextView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:maxLines="2"-->
<!-- android:text="2 ώρες δωρεάν απεριόριστα data όποτε θέλεις εσύ, κάθε μήνα!" />-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@drawable/shape_cos_gradient2"-->
<!-- android:text="Πάρε το δώρο σου"-->
<!-- android:textColor="@android:color/white"-->
<!-- android:textFontWeight="600" />-->
<!-- </LinearLayout>-->
<!-- </RelativeLayout>-->
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/cl_loyalty_gift_item"
layout="@layout/gift_layout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<include
android:id="@+id/cl_loyalty_gift_item2"
layout="@layout/gift_layout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
......
<?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"
android:layout_width="360dp"
android:layout_height="200dp"
android:layout_marginStart="10dp"
android:background="@drawable/shape_cos_transparent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="360dp"
android:layout_height="200dp">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_80_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.75" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_75_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.55" />
<ImageView
android:id="@+id/iv_gift_item_logo"
android:layout_width="match_parent"
android:layout_height="0dp"
android:scaleType="centerCrop"
android:src="@drawable/ic_banner_gift"
app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_80_guideline"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_75_guideline">
<LinearLayout
android:id="@+id/ll_loyalty_item1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white_tr3"
android:paddingVertical="4dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Αποκλειστικά για σένα"
android:textColor="@color/grey"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/ll_loyalty_item1"
android:background="@android:color/white"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="2"
android:text="2 ώρες δωρεάν απεριόριστα data όποτε θέλεις εσύ, κάθε μήνα!"
android:textColor="@color/grey"
android:textSize="14sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:background="@drawable/shape_cos_gradient2"
android:paddingEnd="8dp"
android:paddingBottom="8dp"
android:text="Πάρε το δώρο σου"
android:textColor="@android:color/white"
android:textFontWeight="600"
android:textSize="16sp" />
</LinearLayout>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>
\ No newline at end of file
......@@ -16,5 +16,5 @@
<color name="green_dark">#1DA87A</color>
<color name="cos_blue2">#0478BE</color>
<color name="white_tr2">#77FFFFFF</color>
<color name="white_tr3">#77FFFFFF</color>
<color name="white_tr3">#CCFFFFFF</color>
</resources>
\ No newline at end of file
......