Panagiotis Triantafyllou

test commit

......@@ -38,85 +38,122 @@
android:layout_height="match_parent"
android:layout_below="@+id/cl_loyalty_wallet_header"
android:background="@color/cos_green">
<!-- android:paddingBottom="24dp"-->
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/shape_cos_loyalty">
android:background="@drawable/shape_cos_loyalty"
android:paddingBottom="24dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="150dp"
android:paddingHorizontal="20dp"
android:paddingVertical="8dp"
android:layout_marginHorizontal="32dp"
android:background="@drawable/shape_cos_gradient2"
<include
android:id="@+id/cl_loyalty_info_banner"
layout="@layout/loyalty_banner"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
app:layout_constraintStart_toStartOf="parent" />
<RelativeLayout
android:id="@+id/rl_gifts_row"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/cos_cyan"
app:layout_constraintTop_toBottomOf="@+id/cl_loyalty_info_banner">
<TextView
android:id="@+id/tv_gifts_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/cos_gifts_loyalty_title"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/ll_loyalty_banner_info"
<HorizontalScrollView
android:id="@+id/ll_add"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:weightSum="1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:gravity="start">
android:layout_below="@id/tv_gifts_loyalty_title"
android:background="@android:color/white"
android:scrollbars="none">
<ImageView
android:id="@+id/iv_loyalty_type"
android:layout_width="60dp"
android:layout_height="40dp"
android:src="@drawable/ic_traveller_white" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="400dp"
android:layout_height="200dp"
android:layout_marginStart="10dp">
<TextView
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_horizontal_80_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_loyalty_type"
android:text="@string/cos_profile_loyalty_name"
android:textColor="@android:color/white"
android:textFontWeight="600"
android:textSize="18sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:gravity="end">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/iv_profile_photo"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/profile_photo"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
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>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/round_border_tr"
android:paddingHorizontal="8dp"
android:paddingVertical="4dp"
android:text="@string/cos_questionnaire"
android:textColor="@android:color/white"
android:textFontWeight="600"
android:textSize="15sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<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>
</androidx.constraintlayout.widget.ConstraintLayout>
</HorizontalScrollView>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</RelativeLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_marginHorizontal="32dp"
android:background="@drawable/shape_cos_gradient2"
android:paddingHorizontal="20dp"
android:paddingVertical="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<LinearLayout
android:id="@+id/ll_loyalty_banner_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:weightSum="1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:gravity="start">
<ImageView
android:id="@+id/iv_loyalty_type"
android:layout_width="60dp"
android:layout_height="40dp"
android:src="@drawable/ic_traveller_white" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_loyalty_type"
android:text="@string/cos_profile_loyalty_name"
android:textColor="@android:color/white"
android:textFontWeight="600"
android:textSize="18sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:gravity="end">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/iv_profile_photo"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/profile_photo"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</RelativeLayout>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/round_border_tr"
android:paddingHorizontal="8dp"
android:paddingVertical="4dp"
android:text="@string/cos_questionnaire"
android:textColor="@android:color/white"
android:textFontWeight="600"
android:textSize="15sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -15,4 +15,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>
</resources>
\ No newline at end of file
......
......@@ -22,4 +22,5 @@
<string name="menu_profile">Προφίλ</string>
<string name="cos_profile_loyalty_name">Γιώργος Γεωργίου</string>
<string name="cos_questionnaire">Ερωτηματολόγιο</string>
<string name="cos_gifts_loyalty_title">Τα δώρα μου</string>
</resources>
\ No newline at end of file
......