Panagiotis Triantafyllou

loyalty gifts

<?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
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="1.5dp"
android:color="@android:color/transparent" />
<corners android:radius="19dp" />
<solid android:color="@android:color/transparent" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="0.5dp"
android:color="@android:color/white" />
<corners
android:bottomLeftRadius="19dp"
android:bottomRightRadius="19dp" />
<solid android:color="@android:color/white" />
</shape>
\ No newline at end of file
......@@ -2,35 +2,36 @@
<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">
android:layout_height="240dp"
android:layout_marginStart="10dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="360dp"
android:layout_height="200dp">
android:layout_height="240dp">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_80_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.75" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_75_guideline"
android:id="@+id/gl_horizontal_50_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.55" />
app:layout_constraintGuide_percent="0.5" />
<ImageView
android:id="@+id/iv_gift_item_logo"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_height="match_parent"
android:background="@drawable/shape_cos_transparent_rounded"
android:clipToOutline="true"
android:scaleType="centerCrop"
android:src="@drawable/ic_banner_gift"
app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_80_guideline"
app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_75_guideline"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
......@@ -41,14 +42,15 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_75_guideline">
app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50_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">
android:paddingHorizontal="16dp"
android:paddingVertical="6dp">
<TextView
android:layout_width="wrap_content"
......@@ -59,33 +61,42 @@
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
<androidx.constraintlayout.widget.ConstraintLayout
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">
android:background="@drawable/shape_cos_white_rounded_lower"
android:orientation="vertical"
android:paddingHorizontal="16dp">
<TextView
android:layout_width="match_parent"
android:id="@+id/tv_loyalty_item_subtitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="2"
android:text="2 ώρες δωρεάν απεριόριστα data όποτε θέλεις εσύ, κάθε μήνα!"
android:textColor="@color/grey"
android:textSize="14sp" />
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<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:background="@drawable/shape_cos_gradient3"
android:paddingHorizontal="12dp"
android:layout_marginBottom="16dp"
android:paddingVertical="4dp"
android:text="Πάρε το δώρο σου"
android:textColor="@android:color/white"
android:textFontWeight="600"
android:textSize="16sp" />
</LinearLayout>
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_loyalty_item_subtitle" />
</androidx.constraintlayout.widget.ConstraintLayout>
</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">#CCFFFFFF</color>
<color name="white_tr3">#E6FFFFFF</color>
</resources>
\ No newline at end of file
......