Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2023-10-24 18:32:32 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a1e644b74c685f5c0f597ad63107ab1335205ac0
a1e644b7
1 parent
9ce62f82
vouchers part4
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
576 additions
and
29 deletions
warply_android_sdk/src/main/AndroidManifest.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyHistoryActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyMarketAnalysisActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
warply_android_sdk/src/main/res/drawable-xhdpi/ic_deals_polygon_new2.png
warply_android_sdk/src/main/res/drawable-xhdpi/ic_gifts_polygon_new2.png
warply_android_sdk/src/main/res/drawable-xhdpi/ic_market_polygon2.png
warply_android_sdk/src/main/res/drawable/shape_cos_vouchers_green_tr_shadow.xml
warply_android_sdk/src/main/res/drawable/sv_redeemed_coupons.xml
warply_android_sdk/src/main/res/layout/activity_loyalty_history.xml
warply_android_sdk/src/main/res/layout/activity_loyalty_wallet.xml
warply_android_sdk/src/main/res/values/strings.xml
warply_android_sdk/src/main/AndroidManifest.xml
View file @
a1e644b
...
...
@@ -42,6 +42,12 @@
android:theme=
"@style/SDKAppTheme"
/>
<activity
android:name=
"ly.warp.sdk.activities.LoyaltyHistoryActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
android:theme=
"@style/SDKAppTheme"
/>
<activity
android:name=
"ly.warp.sdk.activities.CouponInfoActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyHistoryActivity.java
0 → 100644
View file @
a1e644b
package
ly
.
warp
.
sdk
.
activities
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
androidx.cardview.widget.CardView
;
import
androidx.core.content.ContextCompat
;
import
org.greenrobot.eventbus.EventBus
;
import
io.github.inflationx.viewpump.ViewPumpContextWrapper
;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel
;
import
ly.warp.sdk.utils.WarplyManagerHelper
;
import
ly.warp.sdk.utils.managers.WarplyAnalyticsManager
;
import
ly.warp.sdk.utils.managers.WarplyEventBusManager
;
public
class
LoyaltyHistoryActivity
extends
Activity
implements
View
.
OnClickListener
{
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
private
ImageView
mIvBack
;
private
int
mTimer
=
0
;
private
Handler
mSecondsHandler
;
private
TextView
mTvFavValue
,
mTvDealsValue
;
private
float
mFavValue
=
0.0f
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_loyalty_history
);
mSecondsHandler
=
new
Handler
();
mIvBack
=
findViewById
(
R
.
id
.
iv_loyalty_history_close
);
mTvFavValue
=
findViewById
(
R
.
id
.
tv_exp_value
);
mTvDealsValue
=
findViewById
(
R
.
id
.
tv_deals_value
);
initViews
();
}
@Override
public
void
onResume
()
{
super
.
onResume
();
WarplyAnalyticsManager
.
logTrackersEvent
(
this
,
"screen"
,
"HistoryScreen"
);
mTimer
=
0
;
mSecondsHandler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
mTimer
++;
mSecondsHandler
.
postDelayed
(
this
,
1000
);
}
});
}
@Override
public
void
onPause
()
{
super
.
onPause
();
if
(
mSecondsHandler
!=
null
)
{
mSecondsHandler
.
removeCallbacksAndMessages
(
null
);
LoyaltySDKFirebaseEventModel
analyticsEvent
=
new
LoyaltySDKFirebaseEventModel
();
analyticsEvent
.
setEventName
(
"time_spent_on_loyalty_sdk"
);
analyticsEvent
.
setParameter
(
"name"
,
"History"
);
analyticsEvent
.
setParameter
(
"seconds"
,
String
.
valueOf
(
mTimer
));
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
analyticsEvent
));
}
}
@Override
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_loyalty_analysis_close
)
{
onBackPressed
();
return
;
}
}
@Override
protected
void
attachBaseContext
(
Context
newBase
)
{
super
.
attachBaseContext
(
ViewPumpContextWrapper
.
wrap
(
newBase
));
}
// ===========================================================
// Methods
// ===========================================================
private
void
initViews
()
{
mIvBack
.
setOnClickListener
(
this
);
/** First Banner */
String
badgeValueFirst
=
String
.
format
(
"%.02f"
,
WarplyManagerHelper
.
getDealsCouponsSum
());
mTvDealsValue
.
setText
(
String
.
format
(
getString
(
R
.
string
.
cos_value
),
badgeValueFirst
));
if
(
String
.
valueOf
(
WarplyManagerHelper
.
getDealsCouponsSum
()).
length
()
>=
3
)
{
mTvDealsValue
.
setTextSize
(
12
);
}
else
{
mTvDealsValue
.
setTextSize
(
14
);
}
// SpannableStringBuilder sBuilder = new SpannableStringBuilder();
// sBuilder.append(String.format(getString(R.string.cos_deals_win_title_cos), badgeValueFirst));
// CalligraphyTypefaceSpan typefaceBoldSpanFirst = new CalligraphyTypefaceSpan(TypefaceUtils.load(getAssets(), "fonts/PeridotPE-Bold.ttf"));
// sBuilder.setSpan(typefaceBoldSpanFirst, 15, 16 + badgeValueFirst.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
// mTvDealsValueAll.setText(sBuilder, TextView.BufferType.SPANNABLE);
mFavValue
+=
WarplyManagerHelper
.
getDealsCouponsSum
();
/** First Banner */
/** Sum Banner */
String
allValue
=
String
.
format
(
"%.02f"
,
mFavValue
);
mTvFavValue
.
setText
(
String
.
format
(
getString
(
R
.
string
.
cos_value
),
allValue
));
/** Sum Banner */
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyMarketAnalysisActivity.java
View file @
a1e644b
...
...
@@ -157,7 +157,7 @@ public class LoyaltyMarketAnalysisActivity extends Activity implements View.OnCl
mSecondsHandler
.
removeCallbacksAndMessages
(
null
);
LoyaltySDKFirebaseEventModel
analyticsEvent
=
new
LoyaltySDKFirebaseEventModel
();
analyticsEvent
.
setEventName
(
"time_spent_on_loyalty_sdk"
);
analyticsEvent
.
setParameter
(
"name"
,
"
Gifts
Calculator"
);
analyticsEvent
.
setParameter
(
"name"
,
"
Market
Calculator"
);
analyticsEvent
.
setParameter
(
"seconds"
,
String
.
valueOf
(
mTimer
));
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
analyticsEvent
));
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
View file @
a1e644b
...
...
@@ -379,7 +379,8 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
analyticsEvent
.
setParameter
(
"screen"
,
"Loyalty Wallet"
);
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
analyticsEvent
));
//TODO: add new history intent
Intent
intent
=
new
Intent
(
LoyaltyWallet
.
this
,
LoyaltyHistoryActivity
.
class
);
startActivity
(
intent
);
}
return
;
}
...
...
@@ -450,16 +451,19 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
@Subscribe
()
public
void
onMessageEvent
(
WarplyEventBusManager
event
)
{
if
(
event
.
getVouchersFetched
()
!=
null
)
{
if
(
WarplyManagerHelper
.
getShowVouchersBanner
().
equals
(
"true"
))
{
runOnUiThread
(()
->
{
mLlVouchersSpinner
.
setVisibility
(
View
.
GONE
);
mLlVouchers
.
setVisibility
(
View
.
VISIBLE
);
});
}
else
{
runOnUiThread
(()
->
{
mLlVouchersSpinner
.
setVisibility
(
View
.
GONE
);
});
}
// if (WarplyManagerHelper.getShowVouchersBanner().equals("true")) {
// runOnUiThread(() -> {
// mLlVouchersSpinner.setVisibility(View.GONE);
// mLlVouchers.setVisibility(View.VISIBLE);
// });
// } else {
// runOnUiThread(() -> {
// mLlVouchersSpinner.setVisibility(View.GONE);
// });
// }
/** Empty View */
runOnUiThread
(
this
::
checkForEmpty
);
/** Empty View */
return
;
}
if
(
event
.
getUnifiedCouponsAdded
()
!=
null
)
{
...
...
@@ -624,10 +628,6 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
mTvGiftsCountBadge
.
setText
(
"0"
);
});
}
/** Empty View */
runOnUiThread
(
this
::
checkForEmpty
);
/** Empty View */
}
@Override
...
...
@@ -640,15 +640,15 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
// ===========================================================
private
void
initViews
()
{
if
(
TextUtils
.
isEmpty
(
WarplyManagerHelper
.
getShowVouchersBanner
()))
{
//TODO: show spinner
}
else
if
(
WarplyManagerHelper
.
getShowVouchersBanner
().
equals
(
"true"
))
{
//TODO: hide spinner
mLlVouchers
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
//.equals("false)
//TODO: hide spinner
}
//
if (TextUtils.isEmpty(WarplyManagerHelper.getShowVouchersBanner())) {
//
//TODO: show spinner
//
} else if (WarplyManagerHelper.getShowVouchersBanner().equals("true")) {
//
//TODO: hide spinner
//
mLlVouchers.setVisibility(View.VISIBLE);
//
} else {
//
//.equals("false)
//
//TODO: hide spinner
//
}
if
(
WarpUtils
.
getUserNonTelco
(
this
))
{
nonTelcoDialog
();
...
...
warply_android_sdk/src/main/res/drawable-xhdpi/ic_deals_polygon_new2.png
0 → 100644
View file @
a1e644b
5.95 KB
warply_android_sdk/src/main/res/drawable-xhdpi/ic_gifts_polygon_new2.png
0 → 100644
View file @
a1e644b
3.9 KB
warply_android_sdk/src/main/res/drawable-xhdpi/ic_market_polygon2.png
0 → 100644
View file @
a1e644b
4.05 KB
warply_android_sdk/src/main/res/drawable/shape_cos_vouchers_green_tr_shadow.xml
0 → 100644
View file @
a1e644b
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<item>
<shape>
<!-- set the shadow color here -->
<stroke
android:width=
"1.5dp"
android:color=
"#24000000"
/>
<!-- setting the thickness of shadow (positive value will give shadow on that side) -->
<padding
android:bottom=
"2dp"
android:left=
"0dp"
android:right=
"-1dp"
android:top=
"-1dp"
/>
<corners
android:bottomRightRadius=
"16dp"
android:topLeftRadius=
"24dp"
android:topRightRadius=
"16dp"
/>
</shape>
</item>
<!-- Background -->
<item>
<shape>
<solid
android:color=
"@color/cos_green_tr"
/>
<corners
android:bottomRightRadius=
"16dp"
android:topLeftRadius=
"24dp"
android:topRightRadius=
"16dp"
/>
</shape>
</item>
</layer-list>
\ No newline at end of file
warply_android_sdk/src/main/res/drawable/sv_redeemed_coupons.xml
0 → 100644
View file @
a1e644b
<vector
android:height=
"64dp"
android:viewportHeight=
"32"
android:viewportWidth=
"32"
android:width=
"64dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillColor=
"#00A5E3"
android:fillType=
"evenOdd"
android:pathData=
"M12.667,10.333C10.754,10.333 9.267,11.821 9.267,13.729C9.267,14.911 9.79,16.062 10.915,17.437C12.053,18.826 13.698,20.319 15.778,22.204L15.78,22.205C16.058,22.458 16.482,22.458 16.756,22.212C18.835,20.323 20.48,18.828 21.618,17.438C22.744,16.062 23.267,14.911 23.267,13.729C23.267,11.821 21.779,10.333 19.867,10.333C18.777,10.333 17.716,10.845 17.028,11.653L16.267,12.545L15.506,11.653C14.817,10.845 13.756,10.333 12.667,10.333ZM18.097,23.695C17.054,24.636 15.468,24.625 14.434,23.685L14.375,23.632C12.361,21.806 10.608,20.219 9.368,18.704C8.104,17.16 7.267,15.569 7.267,13.729C7.267,10.714 9.651,8.333 12.667,8.333C13.993,8.333 15.269,8.813 16.267,9.616C17.264,8.813 18.54,8.333 19.867,8.333C22.882,8.333 25.267,10.714 25.267,13.729C25.267,15.569 24.43,17.16 23.166,18.705C21.929,20.216 20.185,21.8 18.179,23.621L18.099,23.693L18.097,23.695Z"
/>
<path
android:fillColor=
"#00A5E3"
android:pathData=
"M30,16C30,23.732 23.732,30 16,30V32C24.837,32 32,24.837 32,16H30Z"
/>
<path
android:fillColor=
"#00A5E3"
android:pathData=
"M0,16H2C2,8.268 8.268,2 16,2V0C7.163,0 0,7.163 0,16Z"
/>
</vector>
warply_android_sdk/src/main/res/layout/activity_loyalty_history.xml
0 → 100644
View file @
a1e644b
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/rl_analysis_payment"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/cos_light_grey3"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_loyalty_history_header"
android:layout_width=
"match_parent"
android:layout_height=
"64dp"
android:background=
"@color/white"
>
<ImageView
android:id=
"@+id/iv_loyalty_history_close"
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:layout_marginStart=
"16dp"
android:scaleType=
"centerInside"
android:src=
"@drawable/ic_back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
fontPath=
"fonts/BTCosmo-Bold.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/cos_loyalty_history"
android:textColor=
"@color/cos_light_black"
android:textSize=
"19sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:id=
"@+id/ll_banner_info_new"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/cl_loyalty_history_header"
android:layout_marginHorizontal=
"14dp"
android:layout_marginTop=
"16dp"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_coupons_header"
fontPath=
"fonts/PeridotPE-SemiBold.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:includeFontPadding=
"false"
android:maxLines=
"1"
android:text=
"@string/cos_redeemed_coupons_loyalty_title"
android:textColor=
"@color/cos_light_black"
android:textSize=
"22sp"
/>
<androidx.cardview.widget.CardView
android:id=
"@+id/cl_exp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"2dp"
android:layout_marginTop=
"20dp"
android:layout_marginBottom=
"4dp"
app:cardCornerRadius=
"16dp"
app:cardElevation=
"2dp"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:paddingVertical=
"16dp"
>
<ImageView
android:id=
"@+id/iv_exp_logo"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_marginStart=
"16dp"
android:src=
"@drawable/sv_redeemed_coupons"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/tv_exp_value"
fontPath=
"fonts/BTCosmo-Bold.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:includeFontPadding=
"false"
android:textColor=
"@color/cos_light_black"
android:textSize=
"32sp"
app:layout_constraintBottom_toBottomOf=
"@+id/iv_exp_logo"
app:layout_constraintStart_toEndOf=
"@+id/iv_exp_logo"
app:layout_constraintTop_toTopOf=
"@+id/iv_exp_logo"
tools:text=
"18.00€"
/>
<TextView
android:id=
"@+id/tv_exp_value_all"
fontPath=
"fonts/PeridotPE-Regular.ttf"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"16dp"
android:includeFontPadding=
"false"
android:lineHeight=
"24dp"
android:text=
"@string/cos_history_info_text"
android:textColor=
"@color/cos_light_black"
android:textSize=
"16sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/iv_exp_logo"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"24dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/tv_exp_value_all"
>
<RelativeLayout
android:id=
"@+id/rl_first_banner"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:translationZ=
"3dp"
>
<ImageView
android:id=
"@+id/iv_deals_logo"
android:layout_width=
"76dp"
android:layout_height=
"76dp"
android:src=
"@drawable/ic_deals_polygon_new2"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_deals_win_inner_cos"
android:layout_width=
"76dp"
android:layout_height=
"76dp"
>
<androidx.constraintlayout.widget.Guideline
android:id=
"@+id/gl_horizontal_50_cos"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
app:layout_constraintGuide_percent=
"0.68"
/>
<TextView
android:id=
"@+id/tv_deals_value"
fontPath=
"fonts/PeridotPE-Bold.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:includeFontPadding=
"false"
android:textColor=
"@color/cos_light_black"
android:textSize=
"14sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/gl_horizontal_50_cos"
tools:text=
"18.00€"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>
<androidx.cardview.widget.CardView
android:id=
"@+id/cv_deals_win_inner_cos"
android:layout_width=
"match_parent"
android:layout_height=
"72dp"
android:layout_marginStart=
"48dp"
android:layout_marginTop=
"2dp"
android:layout_marginEnd=
"2dp"
android:layout_marginBottom=
"2dp"
app:cardCornerRadius=
"16dp"
app:cardElevation=
"2dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/cos_green_tr"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_deals_value_all"
fontPath=
"fonts/PeridotPE-Regular.ttf"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginStart=
"30dp"
android:layout_marginEnd=
"16dp"
android:includeFontPadding=
"false"
android:lineHeight=
"22dp"
android:text=
"@string/cos_deals_win_title_cos"
android:textColor=
"@color/cos_light_black"
android:textSize=
"15sp"
/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_second_banner"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/rl_first_banner"
android:layout_marginHorizontal=
"16dp"
>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:translationZ=
"3dp"
>
<ImageView
android:id=
"@+id/iv_market_logo"
android:layout_width=
"76dp"
android:layout_height=
"76dp"
android:src=
"@drawable/ic_market_polygon2"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_market_inner"
android:layout_width=
"76dp"
android:layout_height=
"76dp"
>
<androidx.constraintlayout.widget.Guideline
android:id=
"@+id/gl_horizontal_50_market"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
app:layout_constraintGuide_percent=
"0.68"
/>
<TextView
android:id=
"@+id/tv_market_value"
fontPath=
"fonts/PeridotPE-Bold.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:includeFontPadding=
"false"
android:textColor=
"@color/cos_light_black"
android:textSize=
"14sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/gl_horizontal_50_market"
tools:text=
"18.00€"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>
<androidx.cardview.widget.CardView
android:id=
"@+id/cv_market_inner"
android:layout_width=
"match_parent"
android:layout_height=
"72dp"
android:layout_marginStart=
"48dp"
android:layout_marginTop=
"2dp"
android:layout_marginEnd=
"2dp"
android:layout_marginBottom=
"2dp"
app:cardCornerRadius=
"16dp"
app:cardElevation=
"2dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/cos_green_tr"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_market_value_all"
fontPath=
"fonts/PeridotPE-Regular.ttf"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginStart=
"30dp"
android:layout_marginEnd=
"16dp"
android:includeFontPadding=
"false"
android:lineHeight=
"22dp"
android:text=
"@string/cos_supermarket_win"
android:textColor=
"@color/cos_light_black"
android:textSize=
"15sp"
/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_third_banner"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/rl_second_banner"
android:layout_marginHorizontal=
"16dp"
>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:translationZ=
"3dp"
>
<ImageView
android:id=
"@+id/iv_gifts_logo"
android:layout_width=
"76dp"
android:layout_height=
"76dp"
android:src=
"@drawable/ic_gifts_polygon_new2"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_deals_win_inner"
android:layout_width=
"76dp"
android:layout_height=
"76dp"
>
<androidx.constraintlayout.widget.Guideline
android:id=
"@+id/gl_horizontal_50"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
app:layout_constraintGuide_percent=
"0.68"
/>
<TextView
android:id=
"@+id/tv_gifts_value"
fontPath=
"fonts/PeridotPE-Bold.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:includeFontPadding=
"false"
android:textColor=
"@color/cos_light_black"
android:textSize=
"14sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/gl_horizontal_50"
tools:text=
"18.00€"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>
<androidx.cardview.widget.CardView
android:id=
"@+id/cv_deals_win_inner"
android:layout_width=
"match_parent"
android:layout_height=
"72dp"
android:layout_marginStart=
"48dp"
android:layout_marginTop=
"2dp"
android:layout_marginEnd=
"2dp"
android:layout_marginBottom=
"2dp"
app:cardCornerRadius=
"16dp"
app:cardElevation=
"2dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/cos_green_tr"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_gifts_value_all"
fontPath=
"fonts/PeridotPE-Regular.ttf"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginStart=
"30dp"
android:layout_marginEnd=
"16dp"
android:includeFontPadding=
"false"
android:lineHeight=
"22dp"
android:text=
"@string/cos_deals_win_title"
android:textColor=
"@color/cos_light_black"
android:textSize=
"15sp"
/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</RelativeLayout>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
warply_android_sdk/src/main/res/layout/activity_loyalty_wallet.xml
View file @
a1e644b
...
...
@@ -198,7 +198,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
20
dp"
>
android:layout_marginTop=
"
18
dp"
>
<RelativeLayout
android:id=
"@+id/rv_deals_count"
...
...
@@ -214,7 +214,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginHorizontal=
"2dp"
android:layout_marginVertical=
"
2
dp"
android:layout_marginVertical=
"
4
dp"
app:cardCornerRadius=
"16dp"
app:cardElevation=
"2dp"
>
...
...
@@ -303,7 +303,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginHorizontal=
"2dp"
android:layout_marginVertical=
"
2
dp"
android:layout_marginVertical=
"
4
dp"
app:cardCornerRadius=
"16dp"
app:cardElevation=
"2dp"
>
...
...
@@ -391,7 +391,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginHorizontal=
"2dp"
android:layout_marginVertical=
"
2
dp"
android:layout_marginVertical=
"
4
dp"
app:cardCornerRadius=
"16dp"
app:cardElevation=
"2dp"
>
...
...
warply_android_sdk/src/main/res/values/strings.xml
View file @
a1e644b
...
...
@@ -202,6 +202,9 @@
<string
name=
"cos_dlg_positive_button3"
>
Ναι
</string>
<string
name=
"cos_vouchers_title"
>
Υπόλοιπο επιδότησης
</string>
<string
name=
"cos_vouchers_info_title"
>
Ενημερώσου για το υπόλοιπο επιδότησης
</string>
<string
name=
"cos_loyalty_history"
>
Ιστορικό
</string>
<string
name=
"cos_redeemed_coupons_loyalty_title"
>
Εξαργυρωμένα κουπόνια
</string>
<string
name=
"cos_history_info_text"
>
Δες αναλυτικά το συνολικό όφελός σου έως τώρα από κουπόνια
</string>
<string-array
name=
"coupons_array"
>
<item>
Κουπόνια
</item>
...
...
Please
register
or
login
to post a comment