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:30:45 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a1121bf7ee0fd8e9a60d77f2f8cfc9571664e5bc
a1121bf7
1 parent
a90468bb
home widget wip
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
249 additions
and
6 deletions
warply_android_sdk/src/main/res/drawable-xhdpi/ic_data_progress.png
warply_android_sdk/src/main/res/layout/fragment_home.xml
warply_android_sdk/src/main/res/drawable-xhdpi/ic_data_progress.png
0 → 100644
View file @
a1121bf
24.1 KB
warply_android_sdk/src/main/res/layout/fragment_home.xml
View file @
a1121bf
...
...
@@ -30,19 +30,24 @@
<RelativeLayout
android:id=
"@+id/rl_user_info"
android:layout_width=
"
20
0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:paddingLeft=
"10dp"
app:layout_constraintEnd_toStartOf=
"@+id/iv_settings"
app:layout_constraintStart_toEndOf=
"@+id/user_img"
app:layout_constraintTop_toTopOf=
"@+id/user_img"
tools:layout_editor_absoluteY=
"-10dp"
>
<TextView
android:id=
"@+id/welcome_user_txt"
android:layout_width=
"
230dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"8dp"
android:maxLines=
"1"
android:scrollHorizontally=
"true"
android:text=
"@string/welcome_user"
/>
android:text=
"@string/welcome_user"
android:textColor=
"#415564"
/>
<ImageView
android:id=
"@+id/cosmote_one"
...
...
@@ -80,6 +85,7 @@
</RelativeLayout>
<ImageView
android:id=
"@+id/iv_settings"
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:src=
"@drawable/filters_icon"
...
...
@@ -121,15 +127,252 @@
android:paddingEnd=
"10dp"
/>
</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">-->
<!-- <include layout="@layout/info_widget" />-->
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
<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"
>
android:layout_marginHorizontal=
"8dp"
android:background=
"@drawable/banner_border_white"
android:elevation=
"3dp"
>
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/vertical_outer_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="vertical"-->
<!-- app:layout_constraintGuide_percent="0.04" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/vertical_outer_guideline2"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="vertical"-->
<!-- app:layout_constraintGuide_percent="0.95" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/horizontal_outer_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.12" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/horizontal_outer_guideline2"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.88" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/vertical_guideline"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="vertical"-->
<!-- app:layout_constraintGuide_percent="0.4" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/vertical_guideline2"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="vertical"-->
<!-- app:layout_constraintGuide_percent="0.7" />-->
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/vertical_guideline3"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:orientation="vertical"-->
<!-- app:layout_constraintGuide_percent="0.65" />-->
<!-- MB Internet -->
<LinearLayout
android:id=
"@+id/ll_myphone"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/banner_border_grey_bg"
android:orientation=
"horizontal"
android:paddingHorizontal=
"12dp"
android:paddingVertical=
"6dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<ImageView
android:id=
"@+id/iv_widget_phone"
android:layout_width=
"24dp"
android:layout_height=
"24dp"
android:src=
"@drawable/smartphone"
app:layout_constraintBottom_toTopOf=
"@+id/horizontal_outer_guideline"
app:layout_constraintStart_toStartOf=
"@+id/vertical_outer_guideline"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/tv_widget_phone_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:text=
"Το κινητό μου"
android:textColor=
"#415564"
android:textFontWeight=
"500"
android:textSize=
"15sp"
/>
</LinearLayout>
<ImageView
android:layout_width=
"100dp"
android:layout_height=
"30dp"
android:layout_marginStart=
"8dp"
android:src=
"@drawable/cosmote_one"
app:layout_constraintBottom_toBottomOf=
"@+id/ll_myphone"
app:layout_constraintStart_toEndOf=
"@+id/ll_myphone"
app:layout_constraintTop_toTopOf=
"@+id/ll_myphone"
/>
<TextView
android:id=
"@+id/textView2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"24dp"
android:text=
"'Εχεις διαθέσιμα 5.6 GB"
android:textColor=
"#415564"
android:textSize=
"16sp"
android:textStyle=
"bold"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/ll_myphone"
/>
<ImageView
android:id=
"@+id/iv_progress"
android:layout_width=
"110dp"
android:layout_height=
"110dp"
android:layout_marginEnd=
"16dp"
android:src=
"@drawable/ic_data_progress"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@+id/textView2"
/>
<ImageView
android:layout_width=
"100dp"
android:layout_height=
"30dp"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"6dp"
android:src=
"@drawable/cosmote_one"
app:layout_constraintEnd_toEndOf=
"@+id/iv_progress"
app:layout_constraintStart_toStartOf=
"@+id/iv_progress"
app:layout_constraintTop_toBottomOf=
"@+id/iv_progress"
/>
<!-- <LinearLayout-->
<!-- android:id="@+id/ll_myphone"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@drawable/banner_border_grey_bg"-->
<!-- android:orientation="horizontal"-->
<!-- android:paddingHorizontal="12dp"-->
<!-- android:paddingVertical="6dp"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent">-->
<!-- </LinearLayout>-->
<!-- Talk -->
<!-- <ImageView-->
<!-- android:id="@+id/iv_widget_mb"-->
<!-- android:layout_width="22dp"-->
<!-- android:layout_height="18dp"-->
<!-- android:layout_marginStart="8dp"-->
<!-- android:layout_weight="0.2"-->
<!-- android:src="@drawable/web"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="@+id/vertical_outer_guideline"-->
<!-- app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"-->
<!-- app:layout_constraintVertical_bias="0.437" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_widget_talk_title"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="12dp"-->
<!-- android:text="MB Internet"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintStart_toEndOf="@+id/iv_widget_mb"-->
<!-- app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"-->
<!-- app:layout_constraintVertical_bias="0.47" />-->
<!-- <ImageView-->
<!-- android:id="@+id/iv_widget_talk"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="21dp"-->
<!-- android:layout_marginStart="12dp"-->
<!-- android:layout_weight="0.2"-->
<!-- android:background="@color/cos_blue"-->
<!-- android:src="@drawable/phone_white"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="@+id/vertical_guideline"-->
<!-- app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"-->
<!-- app:layout_constraintVertical_bias="0.533" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_widget_mb_title"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="Ομιλία"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintEnd_toStartOf="@+id/vertical_guideline2"-->
<!-- app:layout_constraintHorizontal_bias="0.295"-->
<!-- app:layout_constraintStart_toEndOf="@+id/iv_widget_talk"-->
<!-- app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"-->
<!-- app:layout_constraintVertical_bias="0.47" />-->
<!-- <!– SMS –>-->
<!-- <ImageView-->
<!-- android:id="@+id/iv_widget_sms"-->
<!-- android:layout_width="26dp"-->
<!-- android:layout_height="17dp"-->
<!-- android:layout_marginStart="12dp"-->
<!-- android:layout_weight="0.2"-->
<!-- android:src="@drawable/envelope_white"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"-->
<!-- app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"-->
<!-- app:layout_constraintVertical_bias="0.421" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_widget_sms_title"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="SMS"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintEnd_toStartOf="@+id/vertical_outer_guideline2"-->
<!-- app:layout_constraintHorizontal_bias="0.323"-->
<!-- app:layout_constraintStart_toEndOf="@+id/iv_widget_sms"-->
<!-- app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"-->
<!-- app:layout_constraintVertical_bias="0.47" />-->
<!-- <!– Text inside ProgressBar –>-->
<!-- <TextView-->
<!-- android:id="@+id/textView4"-->
<!-- android:layout_width="41dp"-->
<!-- android:layout_height="30dp"-->
<!-- android:gravity="center"-->
<!-- android:text="5.6"-->
<!-- android:textAlignment="center"-->
<!-- app:layout_constraintBottom_toBottomOf="@+id/progressBar"-->
<!-- app:layout_constraintEnd_toStartOf="@+id/vertical_outer_guideline2"-->
<!-- app:layout_constraintHorizontal_bias="0.409"-->
<!-- app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"-->
<!-- app:layout_constraintTop_toTopOf="@+id/progressBar"-->
<!-- app:layout_constraintVertical_bias="0.519" />-->
<include
layout=
"@layout/info_widget"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
...
...
Please
register
or
login
to post a comment