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 18:34:28 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9fdd11844c11393a69995b02a6d811e186734d7e
9fdd1184
1 parent
c91f4210
loyalty wip
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
82 deletions
warply_android_sdk/src/main/res/drawable/shape_cos_transparent.xml
warply_android_sdk/src/main/res/layout/activity_loyalty.xml
warply_android_sdk/src/main/res/layout/gift_layout.xml
warply_android_sdk/src/main/res/values/colors.xml
warply_android_sdk/src/main/res/drawable/shape_cos_transparent.xml
0 → 100644
View file @
9fdd118
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"19dp"
/>
<solid
android:color=
"@android:color/holo_red_dark"
/>
</shape>
\ No newline at end of file
warply_android_sdk/src/main/res/layout/activity_loyalty.xml
View file @
9fdd118
...
...
@@ -78,7 +78,6 @@
android:id=
"@+id/rv_loyalty_coupons"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"8dp"
android:clipToPadding=
"false"
android:orientation=
"horizontal"
android:paddingEnd=
"10dp"
/>
...
...
@@ -89,7 +88,7 @@
android:id=
"@+id/rl_gifts_row"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:
background=
"@color/cos_cyan
"
android:
layout_marginTop=
"32dp
"
app:layout_constraintTop_toBottomOf=
"@+id/rl_coupons_row"
>
<TextView
...
...
@@ -107,87 +106,25 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tv_gifts_loyalty_title"
android:
background=
"@android:color/white
"
android:
layout_marginTop=
"32dp
"
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>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<include
android:id=
"@+id/cl_loyalty_gift_item"
layout=
"@layout/gift_layout"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
<include
android:id=
"@+id/cl_loyalty_gift_item2"
layout=
"@layout/gift_layout"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
warply_android_sdk/src/main/res/layout/gift_layout.xml
0 → 100644
View file @
9fdd118
<?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"
android:layout_width=
"360dp"
android:layout_height=
"200dp"
android:layout_marginStart=
"10dp"
android:background=
"@drawable/shape_cos_transparent"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"360dp"
android:layout_height=
"200dp"
>
<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.75"
/>
<androidx.constraintlayout.widget.Guideline
android:id=
"@+id/gl_horizontal_75_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"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/gl_horizontal_75_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:textSize=
"16sp"
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 όποτε θέλεις εσύ, κάθε μήνα!"
android:textColor=
"@color/grey"
android:textSize=
"14sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"end"
android:background=
"@drawable/shape_cos_gradient2"
android:paddingEnd=
"8dp"
android:paddingBottom=
"8dp"
android:text=
"Πάρε το δώρο σου"
android:textColor=
"@android:color/white"
android:textFontWeight=
"600"
android:textSize=
"16sp"
/>
</LinearLayout>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>
\ No newline at end of file
warply_android_sdk/src/main/res/values/colors.xml
View file @
9fdd118
...
...
@@ -16,5 +16,5 @@
<color
name=
"green_dark"
>
#1DA87A
</color>
<color
name=
"cos_blue2"
>
#0478BE
</color>
<color
name=
"white_tr2"
>
#77FFFFFF
</color>
<color
name=
"white_tr3"
>
#
77
FFFFFF
</color>
<color
name=
"white_tr3"
>
#
CC
FFFFFF
</color>
</resources>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment