Panagiotis Triantafyllou

clean up

......@@ -55,255 +55,55 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<RelativeLayout
<include
android:id="@+id/rl_coupons_row"
layout="@layout/loyalty_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="110dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_coupons_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/cos_coupons_loyalty_title"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/rl_home_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_coupons_loyalty_title">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_loyalty_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingEnd="10dp" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout
<include
android:id="@+id/rl_gifts_row"
layout="@layout/loyalty_gifts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rl_coupons_row">
<TextView
android:id="@+id/tv_gifts_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/cos_gifts_loyalty_title"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<HorizontalScrollView
android:id="@+id/ll_add"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_gifts_loyalty_title"
android:layout_marginTop="32dp"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
app:layout_constraintTop_toBottomOf="@+id/rl_coupons_row" />
<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>
<RelativeLayout
<include
android:id="@+id/rl_analysis_row"
layout="@layout/loyalty_analysis_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="48dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rl_gifts_row">
<TextView
android:id="@+id/tv_analysis_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="Ανάλυση"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_analysis_loyalty_title"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="24dp"
android:background="@drawable/shape_cos_white"
android:paddingHorizontal="16dp"
android:paddingVertical="24dp">
<Spinner
android:id="@+id/sp_coupons"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_centerHorizontal="true"
android:background="@drawable/shape_cos_grey"
android:dropDownVerticalOffset="62dp"
android:popupBackground="@drawable/shape_cos_grey"
android:popupElevation="1dp"
android:spinnerMode="dropdown" />
<include
android:id="@+id/cl_tab_analysis"
layout="@layout/tab_analysis"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/sp_coupons"
android:layout_marginTop="32dp" />
app:layout_constraintTop_toBottomOf="@+id/rl_gifts_row" />
<Spinner
android:id="@+id/sp_redemption"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_below="@+id/cl_tab_analysis"
android:layout_centerHorizontal="true"
android:layout_marginTop="32dp"
android:background="@drawable/shape_cos_sky_blue"
android:dropDownVerticalOffset="62dp"
android:popupBackground="@drawable/shape_cos_sky_blue"
android:popupElevation="1dp"
android:spinnerMode="dropdown" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/sp_redemption"
android:layout_marginTop="32dp">
<include
android:id="@+id/cl_chart"
layout="@layout/cos_piechart"
android:layout_width="200dp"
android:layout_height="200dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<include
layout="@layout/cos_analysis"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
app:layout_constraintEnd_toEndOf="@+id/cl_chart"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cl_chart" />
</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<include
android:id="@+id/rl_burnt_coupons_row"
layout="@layout/loyalty_burnt_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="48dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rl_analysis_row">
<TextView
android:id="@+id/tv_burnt_coupons_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="Εξαργυρωμένα κουπόνια"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/rl_home_burnt_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_burnt_coupons_loyalty_title">
app:layout_constraintTop_toBottomOf="@+id/rl_analysis_row" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_loyalty_burnt_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingEnd="10dp" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout
<include
android:id="@+id/rl_redeemed_gifts_row"
layout="@layout/loyalty_redeemed_gifts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rl_burnt_coupons_row">
<TextView
android:id="@+id/tv_redeemed_gifts_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="Εξαργυρωμένα δώρα"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<HorizontalScrollView
android:id="@+id/ll_redeemed"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_redeemed_gifts_loyalty_title"
android:layout_marginTop="32dp"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/cl_loyalty_gift_item"
layout="@layout/redeemed_gift_layout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<include
android:id="@+id/cl_loyalty_gift_item2"
layout="@layout/redeemed_gift_layout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>
app:layout_constraintTop_toBottomOf="@+id/rl_burnt_coupons_row" />
</androidx.constraintlayout.widget.ConstraintLayout>
<include
......
<RelativeLayout 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="wrap_content">
<TextView
android:id="@+id/tv_analysis_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="Ανάλυση"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_analysis_loyalty_title"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="24dp"
android:background="@drawable/shape_cos_white"
android:paddingHorizontal="16dp"
android:paddingVertical="24dp">
<Spinner
android:id="@+id/sp_coupons"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_centerHorizontal="true"
android:background="@drawable/shape_cos_grey"
android:dropDownVerticalOffset="62dp"
android:popupBackground="@drawable/shape_cos_grey"
android:popupElevation="1dp"
android:spinnerMode="dropdown" />
<include
android:id="@+id/cl_tab_analysis"
layout="@layout/tab_analysis"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/sp_coupons"
android:layout_marginTop="32dp" />
<Spinner
android:id="@+id/sp_redemption"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_below="@+id/cl_tab_analysis"
android:layout_centerHorizontal="true"
android:layout_marginTop="32dp"
android:background="@drawable/shape_cos_sky_blue"
android:dropDownVerticalOffset="62dp"
android:popupBackground="@drawable/shape_cos_sky_blue"
android:popupElevation="1dp"
android:spinnerMode="dropdown" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/sp_redemption"
android:layout_marginTop="32dp">
<include
android:id="@+id/cl_chart"
layout="@layout/cos_piechart"
android:layout_width="200dp"
android:layout_height="200dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<include
layout="@layout/cos_analysis"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
app:layout_constraintEnd_toEndOf="@+id/cl_chart"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cl_chart" />
</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_burnt_coupons_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="Εξαργυρωμένα κουπόνια"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/rl_home_burnt_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_burnt_coupons_loyalty_title">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_loyalty_burnt_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingEnd="10dp" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_coupons_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/cos_coupons_loyalty_title"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/rl_home_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_coupons_loyalty_title">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_loyalty_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingEnd="10dp" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_gifts_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/cos_gifts_loyalty_title"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<HorizontalScrollView
android:id="@+id/ll_add"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_gifts_loyalty_title"
android:layout_marginTop="32dp"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/cl_loyalty_gift_item"
layout="@layout/gift_layout" />
<include
android:id="@+id/cl_loyalty_gift_item2"
layout="@layout/gift_layout" />
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>
\ No newline at end of file
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_redeemed_gifts_loyalty_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="Εξαργυρωμένα δώρα"
android:textColor="@color/grey"
android:textSize="18sp"
android:textStyle="bold" />
<HorizontalScrollView
android:id="@+id/ll_redeemed"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_redeemed_gifts_loyalty_title"
android:layout_marginTop="32dp"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/cl_loyalty_gift_item"
layout="@layout/redeemed_gift_layout" />
<include
android:id="@+id/cl_loyalty_gift_item2"
layout="@layout/redeemed_gift_layout" />
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>
\ No newline at end of file