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-03-15 12:12:31 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e4da0e408b27a7238c9bd0d21abb394bedc0cefb
e4da0e40
1 parent
52be2597
ui fixes and additions
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
warply_android_sdk/src/main/res/layout/activity_coupon_info.xml
warply_android_sdk/build.gradle
View file @
e4da0e4
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4.6rc4
4
'
PUBLISH_VERSION
=
'4.5.4.6rc4
5
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
View file @
e4da0e4
...
...
@@ -54,7 +54,7 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener
private
ImageView
mIvBack
,
mIvCouponPhoto
,
mIvBarcode
;
private
TextView
mTvTerms
,
mTvCouponCode
,
mTvCouponTitle
,
mTvCouponSubtitle
,
mTvCouponDate
,
mTvTermsValue
,
mTvFullBarcode
;
mTvTermsValue
,
mTvFullBarcode
,
mTvDescription
;
private
LinearLayout
mLlGiftIt
,
mLlShops
,
mLlBarcodeShown
,
mLlBarcodeContainer
,
mLlTerms
,
mLlWebsite
;
private
Coupon
mCoupon
;
private
Couponset
mCouponset
;
...
...
@@ -89,6 +89,7 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener
mLlTerms
=
findViewById
(
R
.
id
.
ll_terms_inner
);
mTvTermsValue
=
findViewById
(
R
.
id
.
tv_terms_value
);
mTvFullBarcode
=
findViewById
(
R
.
id
.
tv_full_barcode
);
mTvDescription
=
findViewById
(
R
.
id
.
tv_clickable_link
);
initViews
();
}
...
...
@@ -224,6 +225,17 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener
}
}
if
(
mMerchant
!=
null
&&
!
TextUtils
.
isEmpty
(
mMerchant
.
getBody
())
&&
!
mMerchant
.
getBody
().
equals
(
"null"
))
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
N
)
{
mTvDescription
.
setText
(
Html
.
fromHtml
(
mMerchant
.
getBody
(),
Html
.
FROM_HTML_MODE_COMPACT
));
}
else
{
mTvDescription
.
setText
(
Html
.
fromHtml
(
mMerchant
.
getBody
()));
}
mTvDescription
.
setMovementMethod
(
LinkMovementMethod
.
getInstance
());
}
else
{
mTvDescription
.
setVisibility
(
View
.
GONE
);
}
// if (mMerchant != null) {
// if (mMerchant.getExtraFields() != null && mMerchant.getExtraFields().has("show_map") && (mMerchant.getExtraFields().optBoolean("show_map") || mMerchant.getExtraFields().optString("show_map").equals("true"))) {
mLlShops
.
setVisibility
(
View
.
VISIBLE
);
...
...
warply_android_sdk/src/main/res/layout/activity_coupon_info.xml
View file @
e4da0e4
...
...
@@ -86,6 +86,18 @@
tools:text=
"Χρησιμοποίησε τον παρακάτω κωδικό και πάρε δωρεάν πακέτο πάνες Pampers αποκλειστικά στα Supermarket Σκλαβενίτης"
/>
<TextView
android:id=
"@+id/tv_clickable_link"
fontPath=
"fonts/pf_square_sans_pro_regular.ttf"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:gravity=
"center"
android:paddingHorizontal=
"32dp"
android:textColor=
"#415564"
android:textSize=
"16sp"
tools:text=
"Χρησιμοποίησε"
/>
<TextView
android:id=
"@+id/textView15"
fontPath=
"fonts/pf_square_sans_pro_medium.ttf"
android:layout_width=
"wrap_content"
...
...
Please
register
or
login
to post a comment