Panagiotis Triantafyllou

gamisou gia widget

......@@ -128,240 +128,13 @@
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
<include
android:id="@+id/rl_home_info_widget"
layout="@layout/info_widget"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/rl_home_coupons"
android:layout_marginHorizontal="8dp"
android:background="@drawable/banner_border_white"
android:elevation="3dp">
<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="24dp"
android:src="@drawable/ic_data_progress"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/textView2" />
<ImageView
android:id="@+id/iv_one_logo"
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" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/iv_one_logo">
<LinearLayout
android:id="@+id/ll_data"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/banner_border_white_bg_right_radius"
android:elevation="3dp"
android:gravity="center"
android:orientation="horizontal"
android:paddingHorizontal="12dp"
android:paddingVertical="6dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv_widget_mb"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="8dp"
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_data_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="MB Internet"
android:textColor="#415564"
android:textSize="15sp"
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" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_voice"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/banner_border_grey_bg_left_radius"
android:gravity="center"
android:orientation="horizontal"
android:paddingHorizontal="12dp"
android:paddingVertical="6dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/ll_data"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv_widget_voice"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="8dp"
android:src="@drawable/phone_white"
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="8dp"
android:text="Ομιλία"
android:textColor="@android:color/white"
android:textSize="15sp"
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" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_sms"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/banner_border_grey_bg_right_radius"
android:gravity="center"
android:orientation="horizontal"
android:paddingHorizontal="12dp"
android:paddingVertical="6dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/ll_voice"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv_widget_sms"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="8dp"
android:src="@drawable/envelope_white"
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_sms_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="SMS"
android:textColor="@android:color/white"
android:textSize="15sp"
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" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- <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" />-->
</androidx.constraintlayout.widget.ConstraintLayout>
android:layout_marginHorizontal="8dp" />
<TextView
android:id="@+id/hsv_title"
......
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="300dp">
<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" />
android:background="@drawable/banner_border_white"
android:elevation="3dp">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/horizontal_outer_guideline"
<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"
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 -->
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="23dp"
android:layout_height="18dp"
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"
......@@ -72,21 +31,81 @@
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="Το κινητό μου"
app:layout_constraintBottom_toTopOf="@+id/horizontal_outer_guideline"
app:layout_constraintEnd_toStartOf="@+id/vertical_guideline"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/iv_widget_phone"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.529" />
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="24dp"
android:src="@drawable/ic_data_progress"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/textView2" />
<ImageView
android:id="@+id/iv_one_logo"
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" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/iv_one_logo">
<!-- Talk -->
<LinearLayout
android:id="@+id/ll_data"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/banner_border_white_bg_right_radius"
android:gravity="center"
android:orientation="horizontal"
android:paddingHorizontal="12dp"
android:paddingVertical="6dp"
app:layout_constraintEnd_toStartOf="@+id/ll_voice"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv_widget_mb"
android:layout_width="22dp"
android:layout_height="18dp"
android:layout_height="22dp"
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"
......@@ -94,132 +113,95 @@
app:layout_constraintVertical_bias="0.437" />
<TextView
android:id="@+id/tv_widget_talk_title"
android:id="@+id/tv_widget_data_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="MB Internet"
android:layout_marginStart="8dp"
android:text="Internet"
android:textColor="#415564"
android:textSize="15sp"
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" />
</LinearLayout>
<ImageView
android:id="@+id/iv_widget_talk"
<LinearLayout
android:id="@+id/ll_voice"
android:layout_width="0dp"
android:layout_height="21dp"
android:layout_marginStart="12dp"
android:layout_weight="0.2"
android:background="@color/cos_blue"
android:layout_height="wrap_content"
android:background="@drawable/banner_border_grey_bg_left_radius"
android:gravity="center"
android:orientation="horizontal"
android:paddingHorizontal="12dp"
android:paddingVertical="6dp"
app:layout_constraintEnd_toStartOf="@+id/ll_sms"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/ll_data"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv_widget_voice"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginStart="8dp"
android:src="@drawable/phone_white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/vertical_guideline"
app:layout_constraintStart_toStartOf="@+id/vertical_outer_guideline"
app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"
app:layout_constraintVertical_bias="0.533" />
app:layout_constraintVertical_bias="0.437" />
<TextView
android:id="@+id/tv_widget_mb_title"
android:id="@+id/tv_widget_talk_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="Ομιλία"
android:textColor="@android:color/white"
android:textSize="15sp"
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_constraintStart_toEndOf="@+id/iv_widget_mb"
app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"
app:layout_constraintVertical_bias="0.47" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_sms"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/banner_border_grey_bg_right_radius"
android:gravity="center"
android:orientation="horizontal"
android:paddingHorizontal="12dp"
android:paddingVertical="6dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/ll_voice"
app:layout_constraintTop_toTopOf="parent">
<!-- 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:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginStart="8dp"
android:src="@drawable/envelope_white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"
app:layout_constraintStart_toStartOf="@+id/vertical_outer_guideline"
app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"
app:layout_constraintVertical_bias="0.421" />
app:layout_constraintVertical_bias="0.437" />
<TextView
android:id="@+id/tv_widget_sms_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="SMS"
android:textColor="@android:color/white"
android:textSize="15sp"
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_constraintStart_toEndOf="@+id/iv_widget_mb"
app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline2"
app:layout_constraintVertical_bias="0.47" />
<!-- Comsote One top horizontal -->
<!-- Title -->
<ImageView
android:layout_width="77dp"
android:layout_height="21dp"
android:scaleType="fitXY"
android:src="@drawable/cosmote_one"
app:layout_constraintBottom_toTopOf="@+id/horizontal_outer_guideline"
app:layout_constraintEnd_toStartOf="@+id/vertical_guideline2"
app:layout_constraintHorizontal_bias="0.567"
app:layout_constraintStart_toStartOf="@+id/vertical_guideline"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.562" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="'Εχεις διαθέσιμα 5.6 GB"
app:layout_constraintBottom_toTopOf="@+id/horizontal_outer_guideline2"
app:layout_constraintEnd_toStartOf="@+id/vertical_guideline3"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="@+id/vertical_outer_guideline"
app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline"
app:layout_constraintVertical_bias="0.105" />
<!-- ProgressBar -->
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyle"
android:layout_width="109dp"
android:layout_height="107dp"
app:layout_constraintBottom_toTopOf="@+id/horizontal_outer_guideline2"
app:layout_constraintEnd_toStartOf="@+id/vertical_outer_guideline2"
app:layout_constraintHorizontal_bias="0.333"
app:layout_constraintStart_toStartOf="@+id/vertical_guideline3"
app:layout_constraintTop_toTopOf="@+id/horizontal_outer_guideline"
app:layout_constraintVertical_bias="0.066" />
<!-- 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" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="99dp"
android:layout_height="26dp"
android:layout_marginTop="8dp"
android:scaleType="fitXY"
android:src="@drawable/cosmote_one"
app:layout_constraintEnd_toStartOf="@+id/vertical_outer_guideline2"
app:layout_constraintHorizontal_bias="0.4"
app:layout_constraintStart_toStartOf="@+id/vertical_guideline3"
app:layout_constraintTop_toBottomOf="@+id/progressBar" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......