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 14:04:20 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e22b234671c7d0ee7a63b7c766c0d6eb08b84a0c
e22b2346
1 parent
76a9aaa6
minor fixes
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
289 additions
and
211 deletions
warply_android_sdk/src/main/res/drawable-xhdpi/ic_traveller_white.png
warply_android_sdk/src/main/res/drawable/round_border_tr.xml
warply_android_sdk/src/main/res/layout/activity_loyalty.xml
warply_android_sdk/src/main/res/layout/carousel_item.xml
warply_android_sdk/src/main/res/layout/fragment_home.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_traveller_white.png
0 → 100644
View file @
e22b234
1.7 KB
warply_android_sdk/src/main/res/drawable/round_border_tr.xml
0 → 100644
View file @
e22b234
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:width=
"1.5dp"
android:color=
"@color/white_tr2"
/>
<corners
android:radius=
"1000dp"
/>
</shape>
\ No newline at end of file
warply_android_sdk/src/main/res/layout/activity_loyalty.xml
View file @
e22b234
...
...
@@ -12,8 +12,8 @@
<ImageView
android:id=
"@+id/iv_back"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
android:layout_width=
"
20dp
"
android:layout_height=
"
20dp
"
android:layout_marginStart=
"16dp"
android:src=
"@drawable/ic_back"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
@@ -25,7 +25,7 @@
android:layout_height=
"wrap_content"
android:text=
"@string/cos_profile_reward"
android:textColor=
"@color/grey"
android:textSize=
"1
6
sp"
android:textSize=
"1
7
sp"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
...
...
@@ -45,12 +45,77 @@
android:background=
"@drawable/shape_cos_loyalty"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"300dp"
android:layout_height=
"200dp"
app:layout_constraintStart_toStartOf=
"parent"
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"
app:layout_constraintEnd_toEndOf=
"parent"
android:background=
"@drawable/shape_cos_gradient2"
>
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>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
...
...
warply_android_sdk/src/main/res/layout/carousel_item.xml
View file @
e22b234
...
...
@@ -3,13 +3,16 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"2
15
dp"
android:layout_height=
"2
40
dp"
android:background=
"@drawable/bottom_border"
>
<LinearLayout
android:id=
"@+id/ll_carousel_icon"
android:layout_width=
"match_parent"
android:layout_height=
"150dp"
>
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
android:layout_height=
"170dp"
>
<ImageView
android:id=
"@+id/imageView"
android:layout_width=
"wrap_content"
...
...
@@ -22,10 +25,13 @@
<TextView
android:id=
"@+id/textView"
android:layout_width=
"match_parent"
android:layout_height=
"
65dp
"
android:layout_height=
"
wrap_content
"
android:paddingHorizontal=
"15dp"
android:paddingVertical=
"10dp"
android:textSize=
"15sp"
android:textStyle=
"bold"
android:textColor=
"@color/grey"
android:text=
"Χρόνια πολλά με υγεία! Σου κάνουμε δώρο 5GB για τη γιορτή σου!"
app:layout_constraintTop_toBottomOf=
"@+id/ll_carousel_icon"
tools:layout_editor_absoluteX=
"-15dp
"
/>
app:layout_constraintBottom_toBottomOf=
"parent
"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...
...
warply_android_sdk/src/main/res/layout/fragment_home.xml
View file @
e22b234
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"
#77B9AB
"
>
android:background=
"
@color/cos_cyan
"
>
<
ScrollView
<
RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<RelativeLayout
android:layout_height=
"match_parent"
android:paddingBottom=
"24dp"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/rl_header"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:paddingBottom=
"50dp"
>
android:layout_height=
"wrap_content"
android:background=
"@android:color/white"
android:paddingHorizontal=
"16dp"
android:paddingVertical=
"16dp"
>
<de.hdodenhof.circleimageview.CircleImageView
android:id=
"@+id/user_img"
android:layout_width=
"60dp"
android:layout_height=
"60dp"
android:src=
"@drawable/profile_photo"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/rl_header"
android:layout_width=
"match_parent"
android:layout_height=
"150dp"
android:background=
"@android:color/white"
android:orientation=
"horizontal"
android:paddingHorizontal=
"16dp"
android:paddingVertical=
"16dp"
>
<de.hdodenhof.circleimageview.CircleImageView
android:id=
"@+id/user_img"
android:layout_width=
"60dp"
android:layout_height=
"60dp"
android:src=
"@drawable/banner1"
/>
<RelativeLayout
android:id=
"@+id/rl_user_info"
android:layout_width=
"200dp"
android:layout_height=
"match_parent"
android:layout_toRightOf=
"@+id/user_img"
android:orientation=
"vertical"
android:paddingLeft=
"10dp"
app:layout_constraintStart_toEndOf=
"@+id/user_img"
tools:layout_editor_absoluteY=
"-10dp"
>
<RelativeLayout
android:id=
"@+id/rl_user_info"
android:layout_width=
"200dp"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:paddingLeft=
"10dp"
app:layout_constraintStart_toEndOf=
"@+id/user_img"
tools:layout_editor_absoluteY=
"-10dp"
>
<TextView
android:id=
"@+id/welcome_user_txt"
android:layout_width=
"230dp"
android:layout_height=
"wrap_content"
android:scrollHorizontally=
"true"
android:text=
"@string/welcome_user"
/>
<TextView
android:id=
"@+id/welcome_user_txt"
android:layout_width=
"230dp"
<ImageView
android:id=
"@+id/cosmote_one"
android:layout_width=
"100dp"
android:layout_height=
"30dp"
android:layout_below=
"@+id/welcome_user_txt"
android:layout_marginTop=
"0dp"
android:src=
"@drawable/cosmote_one"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/cosmote_one"
>
<include
android:id=
"@+id/info_button"
layout=
"@layout/button_with_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<include
android:id=
"@+id/info_button2"
layout=
"@layout/button_with_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:scrollHorizontally=
"true"
android:text=
"@string/welcome_user"
/>
android:layout_marginLeft=
"5dp"
/>
<ImageView
android:id=
"@+id/cosmote_one"
android:layout_width=
"100dp"
android:layout_height=
"30dp"
android:layout_below=
"@+id/welcome_user_txt"
android:layout_marginTop=
"0dp"
android:src=
"@drawable/cosmote_one"
/>
<LinearLayout
<include
android:id=
"@+id/info_button3"
layout=
"@layout/button_with_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/cosmote_one"
>
<include
android:id=
"@+id/info_button"
layout=
"@layout/button_with_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<include
android:id=
"@+id/info_button2"
layout=
"@layout/button_with_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"5dp"
/>
<include
android:id=
"@+id/info_button3"
layout=
"@layout/button_with_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"5dp"
/>
</LinearLayout>
</RelativeLayout>
android:layout_marginLeft=
"5dp"
/>
</LinearLayout>
</RelativeLayout>
<ImageView
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:src=
"@drawable/filters_icon"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.663"
app:layout_constraintStart_toEndOf=
"@+id/rl_user_info"
tools:layout_editor_absoluteY=
"-1dp"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:src=
"@drawable/filters_icon"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@+id/user_img"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<RelativeLayout
android:id=
"@+id/rl_home_campaigns"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/rl_header"
android:paddingHorizontal=
"12dp"
>
<RelativeLayout
android:id=
"@+id/rl_home_campaigns"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/rl_header"
android:layout_marginTop=
"16dp"
android:paddingHorizontal=
"16dp"
>
<include
layout=
"@layout/carousel_item"
/>
</RelativeLayout>
<include
layout=
"@layout/carousel_item"
/>
</RelativeLayout>
<LinearLayout
android:id=
"@+id/rl_home_coupons"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/rl_home_campaigns"
android:layout_marginVertical=
"25dp"
android:paddingHorizontal=
"15dp"
>
<!-- <androidx.recyclerview.widget.RecyclerView-->
<!-- android:id="@+id/rv_home_coupons"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="8dp"-->
<!-- android:clipToPadding="false"-->
<!-- android:orientation="horizontal"-->
<!-- android:paddingEnd="10dp"-->
<!-- />-->
<include
layout=
"@layout/coupon_layout"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/rl_home_coupons"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/rl_home_campaigns"
android:layout_marginVertical=
"25dp"
android:paddingHorizontal=
"15dp"
>
<!-- <androidx.recyclerview.widget.RecyclerView-->
<!-- android:id="@+id/rv_home_coupons"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="8dp"-->
<!-- android:clipToPadding="false"-->
<!-- android:orientation="horizontal"-->
<!-- android:paddingEnd="10dp"-->
<!-- />-->
<include
layout=
"@layout/coupon_layout"
/>
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/rl_home_info_widget"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/rl_home_coupons"
android:layout_marginHorizontal=
"10dp"
android:background=
"@drawable/banner_border"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/rl_home_info_widget"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/rl_home_coupons"
android:layout_marginHorizontal=
"10dp"
android:background=
"@drawable/banner_border"
>
<include
layout=
"@layout/info_widget"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<include
layout=
"@layout/info_widget"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id=
"@+id/hsv_title"
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_below=
"@+id/rl_home_info_widget"
android:layout_marginTop=
"20dp"
android:background=
"@android:color/white"
android:paddingHorizontal=
"25dp"
android:paddingTop=
"10dp"
android:text=
"Βρες γρήγορα"
android:textColor=
"#3C464F"
/>
<HorizontalScrollView
android:id=
"@+id/ll_add"
android:layout_width=
"match_parent"
android:layout_height=
"110dp"
android:layout_below=
"@id/hsv_title"
android:background=
"@android:color/white"
android:paddingBottom=
"10dp"
android:scrollbars=
"none"
>
<TextView
android:id=
"@+id/hsv_title"
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_below=
"@+id/rl_home_info_widget"
android:layout_marginTop=
"20dp"
android:background=
"@android:color/white"
android:paddingHorizontal=
"25dp"
android:paddingTop=
"10dp"
android:text=
"Βρες γρήγορα"
android:textColor=
"#3C464F"
/>
<HorizontalScrollView
android:id=
"@+id/ll_add"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"110dp"
android:layout_below=
"@id/hsv_title"
android:background=
"@android:color/white"
android:paddingBottom=
"10dp"
android:scrollbars=
"none"
>
android:layout_height=
"match_parent"
android:divider=
"@drawable/divider"
android:showDividers=
"middle"
>
<LinearLayout
android:layout_width=
"
match_parent
"
android:layout_width=
"
150dp
"
android:layout_height=
"match_parent"
android:divider=
"@drawable/divider"
android:showDividers=
"middle"
>
android:gravity=
"center"
android:orientation=
"vertical"
android:paddingHorizontal=
"10dp"
>
<ImageView
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:src=
"@drawable/doc"
/>
<
LinearLayout
android:layout_width=
"
150dp
"
android:layout_height=
"
match_parent
"
<
TextView
android:layout_width=
"
match_parent
"
android:layout_height=
"
40dp
"
android:gravity=
"center"
android:
orientation=
"vertical
"
android:
paddingHorizontal=
"10dp"
>
<ImageView
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:src=
"@drawable/doc"
/>
<TextView
android:layout_width=
"match_parent
"
android:layout_height=
"40dp
"
android:gravity=
"center"
android:scrollHorizontally=
"true"
android:text=
"Πληρωμή λογαριασμού"
android:textAlignment=
"center
"
android:textColor=
"#3C464F"
/>
</LinearLayout
>
<
LinearLayout
android:layout_width=
"
150dp
"
android:layout_height=
"
match_parent
"
android:
scrollHorizontally=
"true
"
android:
text=
"Πληρωμή λογαριασμού"
android:textAlignment=
"center"
android:textColor=
"#3C464F"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"150dp"
android:layout_height=
"match_parent"
android:gravity=
"center
"
android:orientation=
"vertical
"
android:paddingHorizontal=
"10dp"
>
<ImageView
android:layout_width=
"50dp
"
android:layout_height=
"50dp"
android:src=
"@drawable/message"
/
>
<
TextView
android:layout_width=
"
match_parent
"
android:layout_height=
"
40dp
"
android:gravity=
"center"
android:
orientation=
"vertical
"
android:
paddingHorizontal=
"10dp"
>
<ImageView
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:src=
"@drawable/message"
/>
<TextView
android:layout_width=
"match_parent
"
android:layout_height=
"40dp
"
android:gravity=
"center"
android:scrollHorizontally=
"true"
android:text=
"Υποστήριξη"
android:textAlignment=
"center
"
android:textColor=
"#3C464F"
/>
</LinearLayout
>
<
LinearLayout
android:layout_width=
"
150dp
"
android:layout_height=
"
match_parent
"
android:
scrollHorizontally=
"true
"
android:
text=
"Υποστήριξη"
android:textAlignment=
"center"
android:textColor=
"#3C464F"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"150dp"
android:layout_height=
"match_parent"
android:gravity=
"center
"
android:orientation=
"vertical
"
android:paddingHorizontal=
"10dp"
>
<ImageView
android:layout_width=
"50dp
"
android:layout_height=
"50dp"
android:src=
"@drawable/doc"
/
>
<
TextView
android:layout_width=
"
match_parent
"
android:layout_height=
"
40dp
"
android:gravity=
"center"
android:orientation=
"vertical"
android:paddingHorizontal=
"10dp"
>
<ImageView
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:src=
"@drawable/doc"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:gravity=
"center"
android:scrollHorizontally=
"true"
android:text=
"Πληρωμή λογαριασμού"
android:textAlignment=
"center"
android:textColor=
"#3C464F"
/>
</LinearLayout>
android:scrollHorizontally=
"true"
android:text=
"Πληρωμή λογαριασμού"
android:textAlignment=
"center"
android:textColor=
"#3C464F"
/>
</LinearLayout>
</
HorizontalScrollView
>
</
RelativeLayout
>
</
ScrollView
>
</
RelativeLayout
>
</
LinearLayout
>
</
HorizontalScrollView
>
</
RelativeLayout
>
</
ScrollView
>
...
...
warply_android_sdk/src/main/res/values/colors.xml
View file @
e22b234
...
...
@@ -14,4 +14,5 @@
<color
name=
"cos_green2"
>
#52DF5A
</color>
<color
name=
"green_dark"
>
#1DA87A
</color>
<color
name=
"cos_blue2"
>
#0478BE
</color>
<color
name=
"white_tr2"
>
#77FFFFFF
</color>
</resources>
\ No newline at end of file
...
...
warply_android_sdk/src/main/res/values/strings.xml
View file @
e22b234
...
...
@@ -20,4 +20,6 @@
<string
name=
"menu_shop"
>
Shop
</string>
<string
name=
"menu_loyalty"
>
Loyalty
</string>
<string
name=
"menu_profile"
>
Προφίλ
</string>
<string
name=
"cos_profile_loyalty_name"
>
Γιώργος Γεωργίου
</string>
<string
name=
"cos_questionnaire"
>
Ερωτηματολόγιο
</string>
</resources>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment