Panagiotis Triantafyllou

ui changes and fixes

......@@ -12,6 +12,7 @@ import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.cardview.widget.CardView;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
......@@ -53,7 +54,8 @@ public class LoyaltyMarketAnalysisActivity extends Activity implements View.OnCl
private ExpiredCouponAdapter mAdapterExpiredCoupons;
private SharedCouponAdapter mAdapterSharedCoupons;
private LinearLayout mLlExpiredTab, mLlSharedTab, mLlShowMoreExpired, mLlShowMoreShared;
private RelativeLayout mRlExpiredView, mRlSharedView;
private RelativeLayout mRlExpiredView;
private CardView mRlSharedView;
private SharingList mSharedCoupons = new SharingList();
private int mTimer = 0;
private Handler mSecondsHandler;
......
......@@ -18,6 +18,7 @@ import android.widget.ScrollView;
import android.widget.TextView;
import androidx.appcompat.app.AlertDialog;
import androidx.cardview.widget.CardView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.core.widget.NestedScrollView;
......@@ -81,7 +82,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
mTvUserBadge, mTvGiftsValue, mTvGiftsValueAll, mTvActiveCode, mTvActiveDate,
mTvActiveTitle, mTvActiveCouponsHeader, mTvMarketValue, mTvMarketAll, mTvFavValue, mTvFavValueAll;
private ConstraintLayout mClDealsBanner, mClDealsView,
mClGiftsBanner, mClToolbar, mClExp, mClMarket;
mClGiftsBanner, mClToolbar, mClMarket;
private LinearLayout mLlQuestionnaire, mLlUserBadge, mLlEmptyWallet, mLlDeals, mLlGifts,
mLlMarketView;
private FlowLayout mLlActiveCodesView;
......@@ -99,6 +100,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
private MarketCouponAdapter mAdapterMarketCoupons;
private ExpandableLayout mElGifts;
private boolean mIsStayCollapsed = true;
private CardView mClExp;
// ===========================================================
// Methods for/from SuperClass/Interfaces
......
......@@ -106,7 +106,7 @@
android:layout_marginTop="24dp"
android:text="Κωδικός Κουπονιού"
android:textColor="@color/cos_light_black"
android:textSize="16sp" />
android:textSize="18sp" />
<TextView
android:id="@+id/textView16"
......@@ -210,9 +210,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="24dp"
android:layout_marginTop="16dp"
android:textColor="@color/cos_light_black"
android:textSize="15sp"
android:textSize="16sp"
tools:text="@string/cos_coupon_date" />
<LinearLayout
......
......@@ -28,7 +28,7 @@
android:layout_height="wrap_content"
android:text="@string/cos_coupon_info_title"
android:textColor="@color/cos_light_black"
android:textSize="21sp"
android:textSize="19sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
......@@ -56,7 +56,7 @@
<ImageView
android:id="@+id/imageView6"
android:layout_width="match_parent"
android:layout_height="295dp"
android:layout_height="255dp"
android:scaleType="centerCrop"
android:src="@drawable/unified_coupon_banner" />
......@@ -189,7 +189,7 @@
android:layout_height="wrap_content"
android:text="@string/cos_hide_market_coupons"
android:textColor="@color/cos_light_black"
android:textSize="16sp" />
android:textSize="15sp" />
<ImageView
android:id="@+id/iv_market_expand"
......@@ -283,7 +283,8 @@
android:layout_marginHorizontal="32dp"
android:layout_marginTop="16dp"
android:text="@string/cos_market_terms"
android:textColor="@color/cos_gray"
android:textColor="@color/cos_light_black"
android:textSize="14sp"
android:visibility="gone"
tools:visibility="visible"/>
</RelativeLayout>
......
......@@ -5,10 +5,10 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/cl_custom_layout"
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_marginHorizontal="4dp"
android:layout_marginVertical="4dp"
android:background="@drawable/ic_coupon_background_new2">
android:layout_height="145dp"
android:layout_marginHorizontal="6dp"
android:layout_marginBottom="4dp"
android:background="@drawable/ic_coupon_background_new3">
<ImageView
android:id="@+id/iv_active_coupon"
......
......@@ -4,10 +4,10 @@
xmlns:custom="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_marginHorizontal="4dp"
android:layout_marginVertical="4dp"
android:background="@drawable/ic_coupon_background_new2">
android:layout_height="145dp"
android:layout_marginHorizontal="6dp"
android:layout_marginBottom="3dp"
android:background="@drawable/ic_coupon_background_new3">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/gl_vertical_72_percent"
......@@ -30,7 +30,7 @@
<ly.warp.sdk.views.DividerView
android:id="@+id/v_separator"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_height="0dp"
android:layout_marginVertical="16dp"
android:layout_marginStart="16dp"
android:layerType="software"
......