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 16:38:00 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5d84e7c0e0fe3d18526e9177479e0b023945c247
5d84e7c0
1 parent
e22b2346
test commit
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
167 additions
and
52 deletions
warply_android_sdk/src/main/res/drawable-xhdpi/ic_banner_gift.png
warply_android_sdk/src/main/res/layout/activity_loyalty.xml
warply_android_sdk/src/main/res/layout/loyalty_banner.xml
warply_android_sdk/src/main/res/values/colors.xml
warply_android_sdk/src/main/res/values/strings.xml
warply_android_sdk/src/main/res/drawable-xhdpi/ic_banner_gift.png
0 → 100644
View file @
5d84e7c
27 KB
warply_android_sdk/src/main/res/layout/activity_loyalty.xml
View file @
5d84e7c
...
...
@@ -38,85 +38,122 @@
android:layout_height=
"match_parent"
android:layout_below=
"@+id/cl_loyalty_wallet_header"
android:background=
"@color/cos_green"
>
<!-- android:paddingBottom="24dp"-->
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_cos_loyalty"
>
android:background=
"@drawable/shape_cos_loyalty"
android:paddingBottom=
"24dp"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"150dp"
android:paddingHorizontal=
"20dp"
android:paddingVertical=
"8dp"
android:layout_marginHorizontal=
"32dp"
android:background=
"@drawable/shape_cos_gradient2"
<include
android:id=
"@+id/cl_loyalty_info_banner"
layout=
"@layout/loyalty_banner"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
>
app:layout_constraintStart_toStartOf=
"parent"
/
>
<Linear
Layout
android:id=
"@+id/ll_loyalty_banner_info
"
<Relative
Layout
android:id=
"@+id/rl_gifts_row
"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:weightSum=
"1"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
android:background=
"@color/cos_cyan"
app:layout_constraintTop_toBottomOf=
"@+id/cl_loyalty_info_banner"
>
<RelativeLayout
<TextView
android:id=
"@+id/tv_gifts_loyalty_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"0.8"
android:gravity=
"start"
>
android:text=
"@string/cos_gifts_loyalty_title"
android:textColor=
"@color/grey"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
<ImageView
android:id=
"@+id/iv_loyalty_type"
android:layout_width=
"60dp"
android:layout_height=
"40dp"
android:src=
"@drawable/ic_traveller_white"
/>
<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"
>
<TextView
<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:layout_below=
"@+id/iv_loyalty_type"
android:text=
"@string/cos_profile_loyalty_name"
android:textColor=
"@android:color/white"
android:textFontWeight=
"600"
android:textSize=
"18sp"
/>
</RelativeLayout>
android:orientation=
"horizontal"
app:layout_constraintGuide_percent=
"0.8"
/>
<RelativeLayout
<androidx.constraintlayout.widget.Guideline
android:id=
"@+id/gl_horizontal_55_guideline"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"0.2
"
android:gravity=
"end"
>
android:orientation=
"horizontal
"
app:layout_constraintGuide_percent=
"0.55"
/
>
<de.hdodenhof.circleimageview.CircleImageView
android:id=
"@+id/iv_profile_photo"
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:src=
"@drawable/profile_photo"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
<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>
<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/round_border_tr"
android:paddingHorizontal=
"8dp"
android:paddingVertical=
"4dp"
android:text=
"@string/cos_questionnaire"
android:background=
"@drawable/shape_cos_gradient2"
android:text=
"Πάρε το δώρο σου"
android:textColor=
"@android:color/white"
android:textFontWeight=
"600"
android:textSize=
"15sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
android:textFontWeight=
"600"
/>
</LinearLayout>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</HorizontalScrollView>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</RelativeLayout>
...
...
warply_android_sdk/src/main/res/layout/loyalty_banner.xml
0 → 100644
View file @
5d84e7c
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"150dp"
android:layout_marginHorizontal=
"32dp"
android:background=
"@drawable/shape_cos_gradient2"
android:paddingHorizontal=
"20dp"
android:paddingVertical=
"8dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
>
<LinearLayout
android:id=
"@+id/ll_loyalty_banner_info"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:weightSum=
"1"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"0.8"
android:gravity=
"start"
>
<ImageView
android:id=
"@+id/iv_loyalty_type"
android:layout_width=
"60dp"
android:layout_height=
"40dp"
android:src=
"@drawable/ic_traveller_white"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/iv_loyalty_type"
android:text=
"@string/cos_profile_loyalty_name"
android:textColor=
"@android:color/white"
android:textFontWeight=
"600"
android:textSize=
"18sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"0.2"
android:gravity=
"end"
>
<de.hdodenhof.circleimageview.CircleImageView
android:id=
"@+id/iv_profile_photo"
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:src=
"@drawable/profile_photo"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</RelativeLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/round_border_tr"
android:paddingHorizontal=
"8dp"
android:paddingVertical=
"4dp"
android:text=
"@string/cos_questionnaire"
android:textColor=
"@android:color/white"
android:textFontWeight=
"600"
android:textSize=
"15sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
warply_android_sdk/src/main/res/values/colors.xml
View file @
5d84e7c
...
...
@@ -15,4 +15,5 @@
<color
name=
"green_dark"
>
#1DA87A
</color>
<color
name=
"cos_blue2"
>
#0478BE
</color>
<color
name=
"white_tr2"
>
#77FFFFFF
</color>
<color
name=
"white_tr3"
>
#77FFFFFF
</color>
</resources>
\ No newline at end of file
...
...
warply_android_sdk/src/main/res/values/strings.xml
View file @
5d84e7c
...
...
@@ -22,4 +22,5 @@
<string
name=
"menu_profile"
>
Προφίλ
</string>
<string
name=
"cos_profile_loyalty_name"
>
Γιώργος Γεωργίου
</string>
<string
name=
"cos_questionnaire"
>
Ερωτηματολόγιο
</string>
<string
name=
"cos_gifts_loyalty_title"
>
Τα δώρα μου
</string>
</resources>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment