thkouk00

fixes in home

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="@color/cos_green3"
android:centerColor="@color/cos_cyan"
android:type="linear"/>
<!-- <corners-->
<!-- android:radius="9dp"/>-->
<!-- <stroke android:width="2dp"-->
<!-- android:color="@color/white_tr"/>-->
</shape>
\ No newline at end of file
......@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="@dimen/width_full"
android:layout_height="240dp"
android:layout_height="@dimen/height_carousel"
android:layout_marginLeft="10dp"
android:background="@drawable/bottom_border">
......
......@@ -4,8 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/cos_cyan">
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
......@@ -18,7 +17,7 @@
android:layout_height="wrap_content"
android:background="@android:color/white"
android:paddingHorizontal="16dp"
android:paddingVertical="16dp">
android:paddingTop="16dp">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/user_img"
......@@ -94,19 +93,26 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/rl_header"
android:background="@drawable/home_bg">
<RelativeLayout
android:id="@+id/rl_home_campaigns"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/rl_header"
android:layout_marginTop="16dp">
android:layout_marginTop="50dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_home_campaigns"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:background="#80FFFFFF"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingVertical="15dp"
android:paddingStart="10dp"
android:paddingEnd="10dp" />
</RelativeLayout>
......@@ -121,7 +127,6 @@
android:id="@+id/rv_home_coupons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingStart="10dp"
......@@ -141,7 +146,7 @@
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_below="@+id/rl_home_info_widget"
android:layout_marginTop="20dp"
android:layout_marginTop="25dp"
android:background="@android:color/white"
android:paddingHorizontal="25dp"
android:paddingTop="10dp"
......@@ -232,4 +237,5 @@
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>
</RelativeLayout>
</ScrollView>
......
<resources>
<dimen name="width_full">360dp</dimen>
<dimen name="height_carousel">240dp</dimen>
</resources>
......
<resources>
<dimen name="width_full">320dp</dimen>
<dimen name="height_carousel">220dp</dimen>
</resources>
......
......@@ -13,6 +13,7 @@
<color name="cos_cyan">#A3F2DA</color>
<color name="grey_light">#f1f1f2</color>
<color name="cos_green2">#52DF5A</color>
<color name="cos_green3">#68BB7E</color>
<color name="green_dark">#1DA87A</color>
<color name="cos_blue2">#0478BE</color>
<color name="white_tr2">#77FFFFFF</color>
......