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
2022-03-24 18:39:34 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e256fe872521cce8b2cbbba70ae457e1867abc6
6e256fe8
1 parent
b7e02145
minor help :P
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
warply_android_sdk/src/main/AndroidManifest.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyActivity.java
warply_android_sdk/src/main/AndroidManifest.xml
View file @
6e256fe
...
...
@@ -35,12 +35,18 @@
android:name=
"ly.warp.sdk.activities.BillPaymentActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
"ly.warp.sdk.activities.CouponInfoActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
"ly.warp.sdk.activities.CouponTransactionActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
"ly.warp.sdk.dexter.PermissionsActivity"
android:exported=
"false"
android:launchMode=
"singleInstance"
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyActivity.java
View file @
6e256fe
...
...
@@ -8,6 +8,7 @@ import android.widget.AdapterView;
import
android.widget.ArrayAdapter
;
import
android.widget.ImageView
;
import
android.widget.Spinner
;
import
android.widget.TextView
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
...
...
@@ -35,6 +36,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener,
private
RecyclerView
mRecyclerCoupons
,
mRecyclerBurntCoupons
;
private
HomeCouponAdapter
mAdapterCoupons
,
mAdapterBurntCoupons
;
private
Spinner
mCouponSpinner
,
mRedemptionSpinner
;
private
TextView
mTvAnalysisButton
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
...
...
@@ -51,6 +53,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener,
mRecyclerBurntCoupons
=
findViewById
(
R
.
id
.
rv_loyalty_burnt_coupons
);
mCouponSpinner
=
findViewById
(
R
.
id
.
sp_coupons
);
mRedemptionSpinner
=
findViewById
(
R
.
id
.
sp_redemption
);
mTvAnalysisButton
=
findViewById
(
R
.
id
.
rl_analysis_row
).
findViewById
(
R
.
id
.
cl_chart_info
).
findViewById
(
R
.
id
.
tv_analysis_details
);
initViews
();
}
...
...
@@ -64,6 +67,11 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener,
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_back
)
{
onBackPressed
();
return
;
}
if
(
view
.
getId
()
==
R
.
id
.
tv_analysis_details
)
{
Intent
intent
=
new
Intent
(
this
,
CouponTransactionActivity
.
class
);
startActivity
(
intent
);
}
}
...
...
@@ -93,6 +101,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener,
/********* TEST COUPONS DATA **********/
mIvBack
.
setOnClickListener
(
this
);
mTvAnalysisButton
.
setOnClickListener
(
this
);
mRecyclerCoupons
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
LinearLayoutManager
.
HORIZONTAL
,
false
));
mAdapterCoupons
=
new
HomeCouponAdapter
(
this
,
clist
);
...
...
Please
register
or
login
to post a comment