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-23 17:54:46 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c91f42107fe79565a90b212963beac0fe9947e0c
c91f4210
1 parent
16a8f47f
tets commit 2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
124 additions
and
112 deletions
warply_android_sdk/src/main/AndroidManifest.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/BillPaymentActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/HomeFragment.java
warply_android_sdk/src/main/res/layout/activity_loyalty.xml
warply_android_sdk/src/main/AndroidManifest.xml
View file @
c91f421
...
...
@@ -32,6 +32,11 @@
android:screenOrientation=
"portrait"
/>
<activity
android:name=
"ly.warp.sdk.activities.BillPaymentActivity"
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/BillPaymentActivity.java
View file @
c91f421
...
...
@@ -29,7 +29,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
fragment_bill_payment
);
mIvBack
=
findViewById
(
R
.
id
.
iv_back
);
//
mIvBack = findViewById(R.id.iv_back);
initViews
();
}
...
...
@@ -51,7 +51,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
// ===========================================================
private
void
initViews
()
{
mIvBack
.
setOnClickListener
(
this
);
//
mIvBack.setOnClickListener(this);
}
// ===========================================================
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/HomeFragment.java
View file @
c91f421
package
ly
.
warp
.
sdk
.
fragments
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.util.Log
;
import
android.view.LayoutInflater
;
...
...
@@ -17,6 +18,8 @@ import androidx.recyclerview.widget.RecyclerView;
import
org.json.JSONException
;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.activities.BillPaymentActivity
;
import
ly.warp.sdk.activities.LoyaltyActivity
;
import
ly.warp.sdk.views.adapters.HomeCampaignAdapter
;
import
ly.warp.sdk.views.adapters.HomeCouponAdapter
;
import
ly.warp.sdk.activities.WarpViewActivity
;
...
...
@@ -117,9 +120,12 @@ public class HomeFragment extends Fragment {
mRecyclerCoupons
.
setAdapter
(
mAdapterCoupons
);
mAdapterCoupons
.
getPositionClicks
()
.
doOnNext
(
coupon
->
{
getContext
().
startActivity
(
WarpViewActivity
.
createIntentFromSessionUUID
(
getContext
(),
coupon
.
getCoupon
()));
// getContext().startActivity(
// WarpViewActivity.createIntentFromSessionUUID(getContext(),
// coupon.getCoupon()));
Intent
intent
=
new
Intent
(
getContext
(),
BillPaymentActivity
.
class
);
getContext
().
startActivity
(
intent
);
})
.
doOnError
(
error
->
{
})
...
...
warply_android_sdk/src/main/res/layout/activity_loyalty.xml
View file @
c91f421
...
...
@@ -52,15 +52,14 @@
app:layout_constraintStart_toStartOf=
"parent"
/>
<RelativeLayout
android:id=
"@+id/rl_
gift
s_row"
android:id=
"@+id/rl_
coupon
s_row"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"32dp"
android:background=
"@color/cos_cyan"
app:layout_constraintTop_toBottomOf=
"@+id/cl_loyalty_info_banner"
>
<TextView
android:id=
"@+id/tv_
gift
s_loyalty_title"
android:id=
"@+id/tv_
coupon
s_loyalty_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
...
...
@@ -73,7 +72,7 @@
android:id=
"@+id/rl_home_coupons"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tv_
gift
s_loyalty_title"
>
android:layout_below=
"@id/tv_
coupon
s_loyalty_title"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_loyalty_coupons"
...
...
@@ -86,109 +85,111 @@
</LinearLayout>
</RelativeLayout>
<!-- <RelativeLayout-->
<!-- android:id="@+id/rl_gifts_row"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@color/cos_cyan"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/cl_loyalty_info_banner">-->
<!-- <TextView-->
<!-- android:id="@+id/tv_gifts_loyalty_title"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="@string/cos_gifts_loyalty_title"-->
<!-- android:textColor="@color/grey"-->
<!-- android:textSize="18sp"-->
<!-- android:textStyle="bold" />-->
<!-- <HorizontalScrollView-->
<!-- android:id="@+id/ll_add"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_below="@id/tv_gifts_loyalty_title"-->
<!-- android:background="@android:color/white"-->
<!-- android:scrollbars="none">-->
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
<!-- android:layout_width="400dp"-->
<!-- android:layout_height="200dp"-->
<!-- android:layout_marginStart="10dp">-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/gl_horizontal_80_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.8" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/gl_horizontal_55_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.55" />-->
<!-- <ImageView-->
<!-- android:id="@+id/iv_gift_item_logo"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="0dp"-->
<!-- android:scaleType="centerCrop"-->
<!-- android:src="@drawable/ic_banner_gift"-->
<!-- app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_80_guideline"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent" />-->
<!-- <RelativeLayout-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="0dp"-->
<!-- android:background="@color/cos_cyan"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_55_guideline">-->
<!-- <LinearLayout-->
<!-- android:id="@+id/ll_loyalty_item1"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@color/white_tr3"-->
<!-- android:paddingVertical="4dp">-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="Αποκλειστικά για σένα"-->
<!-- android:textColor="@color/grey"-->
<!-- android:textStyle="bold" />-->
<!-- </LinearLayout>-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_below="@+id/ll_loyalty_item1"-->
<!-- android:background="@android:color/white"-->
<!-- android:orientation="vertical">-->
<!-- <TextView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:maxLines="2"-->
<!-- android:text="2 ώρες δωρεάν απεριόριστα data όποτε θέλεις εσύ, κάθε μήνα!" />-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@drawable/shape_cos_gradient2"-->
<!-- android:text="Πάρε το δώρο σου"-->
<!-- android:textColor="@android:color/white"-->
<!-- android:textFontWeight="600" />-->
<!-- </LinearLayout>-->
<!-- </RelativeLayout>-->
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
<!-- </HorizontalScrollView>-->
<!-- </RelativeLayout>-->
<RelativeLayout
android:id=
"@+id/rl_gifts_row"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/cos_cyan"
app:layout_constraintTop_toBottomOf=
"@+id/rl_coupons_row"
>
<TextView
android:id=
"@+id/tv_gifts_loyalty_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
android:text=
"@string/cos_gifts_loyalty_title"
android:textColor=
"@color/grey"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
<HorizontalScrollView
android:id=
"@+id/ll_add"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tv_gifts_loyalty_title"
android:background=
"@android:color/white"
android:scrollbars=
"none"
>
<RelativeLayout
android:layout_width=
"360dp"
android:layout_height=
"200dp"
android:layout_marginStart=
"10dp"
android:background=
"@color/cos_cyan"
>
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/gl_horizontal_80_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.8" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/gl_horizontal_55_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.55" />-->
<!-- <ImageView-->
<!-- android:id="@+id/iv_gift_item_logo"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="0dp"-->
<!-- android:scaleType="centerCrop"-->
<!-- android:src="@drawable/ic_banner_gift"-->
<!-- app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_80_guideline"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent" />-->
<!-- <RelativeLayout-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="0dp"-->
<!-- android:background="@color/cos_cyan"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_55_guideline">-->
<!-- <LinearLayout-->
<!-- android:id="@+id/ll_loyalty_item1"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@color/white_tr3"-->
<!-- android:paddingVertical="4dp">-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="Αποκλειστικά για σένα"-->
<!-- android:textColor="@color/grey"-->
<!-- android:textStyle="bold" />-->
<!-- </LinearLayout>-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_below="@+id/ll_loyalty_item1"-->
<!-- android:background="@android:color/white"-->
<!-- android:orientation="vertical">-->
<!-- <TextView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:maxLines="2"-->
<!-- android:text="2 ώρες δωρεάν απεριόριστα data όποτε θέλεις εσύ, κάθε μήνα!" />-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@drawable/shape_cos_gradient2"-->
<!-- android:text="Πάρε το δώρο σου"-->
<!-- android:textColor="@android:color/white"-->
<!-- android:textFontWeight="600" />-->
<!-- </LinearLayout>-->
<!-- </RelativeLayout>-->
</RelativeLayout>
</HorizontalScrollView>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</RelativeLayout>
...
...
Please
register
or
login
to post a comment