thkouk00

home screen integration v1

Showing 28 changed files with 745 additions and 0 deletions
...@@ -9,6 +9,7 @@ import androidx.fragment.app.Fragment; ...@@ -9,6 +9,7 @@ import androidx.fragment.app.Fragment;
9 import com.google.android.material.bottomnavigation.BottomNavigationView; 9 import com.google.android.material.bottomnavigation.BottomNavigationView;
10 import com.google.android.material.navigation.NavigationBarView; 10 import com.google.android.material.navigation.NavigationBarView;
11 11
12 +import ly.warp.sdk.fragments.HomeFragment;
12 import ly.warp.sdk.fragments.LoyaltyFragment; 13 import ly.warp.sdk.fragments.LoyaltyFragment;
13 import warp.ly.android_sdk.R; 14 import warp.ly.android_sdk.R;
14 15
...@@ -50,6 +51,10 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt ...@@ -50,6 +51,10 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt
50 mFragmentToSet = LoyaltyFragment.newInstance(); 51 mFragmentToSet = LoyaltyFragment.newInstance();
51 getSupportFragmentManager().beginTransaction().replace(R.id.fl_fragment, mFragmentToSet).commit(); 52 getSupportFragmentManager().beginTransaction().replace(R.id.fl_fragment, mFragmentToSet).commit();
52 return true; 53 return true;
54 + case R.id.menu_home:
55 + mFragmentToSet = HomeFragment.newInstance();
56 + getSupportFragmentManager().beginTransaction().replace(R.id.fl_fragment, mFragmentToSet).commit();
57 + return true;
53 } 58 }
54 return false; 59 return false;
55 } 60 }
...@@ -60,6 +65,8 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt ...@@ -60,6 +65,8 @@ public class MainActivity extends BaseActivity implements NavigationBarView.OnIt
60 65
61 private void initViews() { 66 private void initViews() {
62 mBottomNavigationView.setOnItemSelectedListener(this); 67 mBottomNavigationView.setOnItemSelectedListener(this);
68 + mFragmentToSet = HomeFragment.newInstance();
69 + getSupportFragmentManager().beginTransaction().add(R.id.fl_fragment, mFragmentToSet).commit();
63 mBottomNavigationView.setSelectedItemId(R.id.menu_home); 70 mBottomNavigationView.setSelectedItemId(R.id.menu_home);
64 } 71 }
65 72
......
1 +package ly.warp.sdk.fragments;
2 +
3 +import android.os.Bundle;
4 +import android.util.Log;
5 +import android.view.LayoutInflater;
6 +import android.view.View;
7 +import android.view.ViewGroup;
8 +import android.widget.ImageView;
9 +import android.widget.RelativeLayout;
10 +import android.widget.TextView;
11 +
12 +import androidx.annotation.NonNull;
13 +import androidx.fragment.app.Fragment;
14 +
15 +import ly.warp.sdk.R;
16 +
17 +public class HomeFragment extends Fragment {
18 +
19 + private RelativeLayout mOptionOne;
20 + private RelativeLayout mOptionTwo;
21 + private RelativeLayout mOptionThree;
22 +
23 + @Override
24 + public View onCreateView(
25 + LayoutInflater inflater, ViewGroup container,
26 + Bundle savedInstanceState
27 + ) {
28 + return inflater.inflate(R.layout.fragment_home, container, false);
29 + }
30 +
31 + public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
32 + super.onViewCreated(view, savedInstanceState);
33 +
34 +// binding.buttonFirst.setOnClickListener(new View.OnClickListener() {
35 +// @Override
36 +// public void onClick(View view) {
37 +// NavHostFragment.findNavController(FirstFragment.this)
38 +// .navigate(R.id.action_FirstFragment_to_SecondFragment);
39 +// }
40 +// });
41 +
42 +// binding.llAdd.setOnClickListener(new View.OnClickListener() {
43 +// @Override
44 +// public void onClick(View view) {
45 +// Log.v("LL ADD", "Clicked");
46 +// }
47 +// });
48 +
49 + mOptionOne = (RelativeLayout) view.findViewById(R.id.info_button);
50 + TextView mOptionOneText = (TextView) mOptionOne.findViewById(R.id.option_text);
51 + ImageView mOptionOneImage = (ImageView) mOptionOne.findViewById(R.id.option_icon);
52 + mOptionOneText.setText("2");
53 + mOptionOneImage.setImageResource(R.drawable.mobile_option);
54 +
55 + mOptionTwo = (RelativeLayout) view.findViewById(R.id.info_button2);
56 + TextView mOptionTwoText = (TextView) mOptionTwo.findViewById(R.id.option_text);
57 + ImageView mOptionTwoImage = (ImageView) mOptionTwo.findViewById(R.id.option_icon);
58 + mOptionTwoText.setText("1");
59 + mOptionTwoImage.setImageResource(R.drawable.phone_option);
60 +
61 + mOptionThree = (RelativeLayout) view.findViewById(R.id.info_button3);
62 + TextView mOptionThreeText = (TextView) mOptionThree.findViewById(R.id.option_text);
63 + ImageView mOptionThreeImage = (ImageView) mOptionThree.findViewById(R.id.option_icon);
64 + mOptionThreeText.setText("1");
65 + mOptionThreeImage.setImageResource(R.drawable.tv_option);
66 + }
67 +
68 + @Override
69 + public void onDestroyView() {
70 + super.onDestroyView();
71 + }
72 +
73 + public static Fragment newInstance() {
74 + HomeFragment homeFragment = new HomeFragment();
75 + return homeFragment;
76 + }
77 +}
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android">
3 + <solid android:color="#FFFFFF"/>
4 + <stroke android:width="3dp" android:color="#B1BCBE" />
5 + <corners android:radius="10dp"/>
6 + <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
7 +</shape>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android">
3 + <solid android:color="#ffffffff"/>
4 +
5 + <stroke
6 + android:width="1.5dp"
7 + android:color="#3C464F" />
8 +
9 + <padding
10 + android:left="1dp"
11 + android:top="1dp"
12 + android:right="1dp"
13 + android:bottom="1dp" />
14 +
15 + <corners
16 + android:topLeftRadius="10dp"
17 + android:topRightRadius="10dp"
18 + android:bottomLeftRadius="10dp"
19 + android:bottomRightRadius="10dp" />
20 +</shape>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android" >
3 + <size android:width="1dp"/>
4 + <solid android:color="#787878"/>
5 +</shape>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android">
3 + <solid android:color="#FFFFFF"/>
4 + <stroke android:width="3dp" android:color="#B1BCBE" />
5 + <corners android:radius="1000dp"/>
6 + <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
7 +</shape>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android">
3 + <solid android:color="#ffffffff"/>
4 +
5 + <stroke
6 + android:width="1.5dp"
7 + android:color="#3C464F" />
8 +
9 + <padding
10 + android:left="1dp"
11 + android:top="1dp"
12 + android:right="1dp"
13 + android:bottom="1dp" />
14 +
15 + <corners android:radius="1000dp"/>
16 +</shape>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +
3 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
4 + android:id="@+id/rl_option"
5 + android:layout_width="wrap_content"
6 + android:layout_height="wrap_content">
7 + <ImageView
8 + android:id="@+id/option_icon"
9 + android:layout_width="50dp"
10 + android:layout_height="50dp"
11 + android:layout_centerVertical="true"
12 + android:src="@drawable/phone_option"/>
13 +
14 + <TextView
15 + android:id="@+id/option_text"
16 + android:layout_width="wrap_content"
17 + android:layout_height="wrap_content"
18 + android:text="1"
19 + android:layout_marginLeft="30dp"
20 + android:layout_marginTop="14dp"/>
21 +</RelativeLayout>
22 +
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="215dp"
7 + android:background="@drawable/bottom_border">
8 +
9 + <LinearLayout
10 + android:id="@+id/ll_carousel_icon"
11 + android:layout_width="match_parent"
12 + android:layout_height="150dp">
13 + <ImageView
14 + android:id="@+id/imageView"
15 + android:layout_width="wrap_content"
16 + android:layout_height="wrap_content"
17 + android:src="@drawable/carousel_banner"
18 + android:scaleType="fitXY"
19 + tools:layout_editor_absoluteY="-44dp" />
20 + </LinearLayout>
21 +
22 + <TextView
23 + android:id="@+id/textView"
24 + android:layout_width="match_parent"
25 + android:layout_height="65dp"
26 + android:paddingHorizontal="15dp"
27 + android:paddingVertical="10dp"
28 + android:text="Χρόνια πολλά με υγεία! Σου κάνουμε δώρο 5GB για τη γιορτή σου!"
29 + app:layout_constraintTop_toBottomOf="@+id/ll_carousel_icon"
30 + tools:layout_editor_absoluteX="-15dp" />
31 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="250dp">
7 +
8 + <androidx.constraintlayout.widget.Guideline
9 + android:id="@+id/horizontal_guideline"
10 + android:layout_width="wrap_content"
11 + android:layout_height="wrap_content"
12 + android:orientation="horizontal"
13 + app:layout_constraintGuide_percent="0.18" />
14 +
15 + <androidx.constraintlayout.widget.Guideline
16 + android:id="@+id/horizontal_guideline2"
17 + android:layout_width="wrap_content"
18 + android:layout_height="wrap_content"
19 + android:orientation="horizontal"
20 + app:layout_constraintGuide_percent="0.75" />
21 +
22 + <androidx.constraintlayout.widget.Guideline
23 + android:id="@+id/vertical_guideline"
24 + android:layout_width="wrap_content"
25 + android:layout_height="wrap_content"
26 + android:orientation="vertical"
27 + app:layout_constraintGuide_percent="0.85" />
28 +
29 + <androidx.constraintlayout.widget.Guideline
30 + android:id="@+id/vertical_guideline2"
31 + android:layout_width="wrap_content"
32 + android:layout_height="wrap_content"
33 + android:orientation="vertical"
34 + app:layout_constraintGuide_percent="0.14" />
35 +
36 + <ImageView
37 + android:id="@+id/imageView2"
38 + android:layout_width="403dp"
39 + android:layout_height="238dp"
40 + android:scaleType="fitXY"
41 + android:src="@drawable/coupon_wrapper"
42 + app:layout_constraintBottom_toBottomOf="parent"
43 + app:layout_constraintEnd_toEndOf="parent"
44 + app:layout_constraintStart_toStartOf="parent"
45 + app:layout_constraintTop_toTopOf="parent" />
46 +
47 + <androidx.constraintlayout.widget.ConstraintLayout
48 + android:layout_width="300dp"
49 + android:layout_height="150dp"
50 + android:paddingHorizontal="5dp"
51 + app:layout_constraintBottom_toTopOf="@+id/horizontal_guideline2"
52 + app:layout_constraintEnd_toStartOf="@+id/vertical_guideline"
53 + app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"
54 + app:layout_constraintTop_toTopOf="@+id/horizontal_guideline">
55 +
56 + <TextView
57 + android:id="@+id/tv_coupon_title"
58 + android:layout_width="wrap_content"
59 + android:layout_height="wrap_content"
60 + android:layout_marginTop="16dp"
61 + android:maxLines="1"
62 + android:text="Αποκλειστικά για σένα"
63 + app:layout_constraintBottom_toTopOf="@+id/tv_coupon_subtitle"
64 + app:layout_constraintStart_toStartOf="parent"
65 + app:layout_constraintTop_toTopOf="parent"
66 + app:layout_constraintVertical_bias="0.2" />
67 +
68 + <ImageView
69 + android:layout_width="80dp"
70 + android:layout_height="60dp"
71 + android:src="@drawable/sklavenitis_logo"
72 + app:layout_constraintBottom_toTopOf="@+id/tv_coupon_subtitle"
73 + app:layout_constraintEnd_toEndOf="@+id/tv_coupon_subtitle"
74 + app:layout_constraintHorizontal_bias="1.0"
75 + app:layout_constraintStart_toEndOf="@+id/tv_coupon_title"
76 + app:layout_constraintTop_toTopOf="parent"
77 + app:layout_constraintVertical_bias="1.0" />
78 +
79 + <TextView
80 + android:id="@+id/tv_coupon_subtitle"
81 + android:layout_width="wrap_content"
82 + android:layout_height="wrap_content"
83 + android:layout_marginBottom="24dp"
84 + android:maxLines="2"
85 + android:text="10€ έκπτωση στα ψώνια σου στα supermarket Σκλαβενίτης!"
86 + app:layout_constraintBottom_toTopOf="@+id/button"
87 + app:layout_constraintEnd_toEndOf="parent"
88 + app:layout_constraintStart_toStartOf="parent" />
89 +
90 + <Button
91 + android:id="@+id/button"
92 + android:layout_width="150dp"
93 + android:layout_height="40dp"
94 + android:background="@drawable/round_border"
95 + android:text="Εξαργύρωση"
96 + android:textAlignment="center"
97 + android:textSize="11dp"
98 + app:layout_constraintBottom_toBottomOf="parent"
99 + app:layout_constraintEnd_toEndOf="parent"
100 + app:layout_constraintHorizontal_bias="1.0"
101 + app:layout_constraintStart_toStartOf="parent" />
102 + </androidx.constraintlayout.widget.ConstraintLayout>
103 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="match_parent"
7 + android:background="#77B9AB">
8 +
9 + <ScrollView
10 + android:layout_width="match_parent"
11 + android:layout_height="match_parent">
12 + <RelativeLayout
13 + android:layout_width="match_parent"
14 + android:layout_height="match_parent"
15 + android:paddingBottom="50dp">
16 +
17 + <androidx.constraintlayout.widget.ConstraintLayout
18 + android:id="@+id/rl_header"
19 + android:layout_width="match_parent"
20 + android:layout_height="150dp"
21 + android:background="@android:color/white"
22 + android:orientation="horizontal"
23 + android:paddingHorizontal="16dp"
24 + android:paddingVertical="16dp">
25 +
26 + <de.hdodenhof.circleimageview.CircleImageView
27 + android:id="@+id/user_img"
28 + android:layout_width="60dp"
29 + android:layout_height="60dp"
30 + android:src="@drawable/banner1" />
31 +
32 + <RelativeLayout
33 + android:id="@+id/rl_user_info"
34 + android:layout_width="200dp"
35 + android:layout_height="match_parent"
36 + android:layout_toRightOf="@+id/user_img"
37 + android:orientation="vertical"
38 + android:paddingLeft="10dp"
39 + app:layout_constraintStart_toEndOf="@+id/user_img"
40 + tools:layout_editor_absoluteY="-10dp">
41 +
42 + <TextView
43 + android:id="@+id/welcome_user_txt"
44 + android:layout_width="230dp"
45 + android:layout_height="wrap_content"
46 + android:scrollHorizontally="true"
47 + android:text="@string/welcome_user" />
48 +
49 + <ImageView
50 + android:id="@+id/cosmote_one"
51 + android:layout_width="100dp"
52 + android:layout_height="30dp"
53 + android:layout_below="@+id/welcome_user_txt"
54 + android:layout_marginTop="0dp"
55 + android:src="@drawable/cosmote_one" />
56 +
57 + <LinearLayout
58 + android:layout_width="wrap_content"
59 + android:layout_height="wrap_content"
60 + android:layout_below="@+id/cosmote_one">
61 +
62 + <include
63 + android:id="@+id/info_button"
64 + layout="@layout/button_with_image"
65 + android:layout_width="wrap_content"
66 + android:layout_height="wrap_content" />
67 +
68 + <include
69 + android:id="@+id/info_button2"
70 + layout="@layout/button_with_image"
71 + android:layout_width="wrap_content"
72 + android:layout_height="wrap_content"
73 + android:layout_marginLeft="5dp" />
74 +
75 + <include
76 + android:id="@+id/info_button3"
77 + layout="@layout/button_with_image"
78 + android:layout_width="wrap_content"
79 + android:layout_height="wrap_content"
80 + android:layout_marginLeft="5dp" />
81 + </LinearLayout>
82 + </RelativeLayout>
83 +
84 + <ImageView
85 + android:layout_width="25dp"
86 + android:layout_height="25dp"
87 + android:src="@drawable/filters_icon"
88 + app:layout_constraintEnd_toEndOf="parent"
89 + app:layout_constraintHorizontal_bias="0.663"
90 + app:layout_constraintStart_toEndOf="@+id/rl_user_info"
91 + tools:layout_editor_absoluteY="-1dp" />
92 + </androidx.constraintlayout.widget.ConstraintLayout>
93 +
94 + <RelativeLayout
95 + android:id="@+id/rl_home_campaigns"
96 + android:layout_width="match_parent"
97 + android:layout_height="wrap_content"
98 + android:layout_below="@id/rl_header"
99 + android:paddingHorizontal="12dp">
100 +
101 + <include layout="@layout/carousel_item" />
102 + </RelativeLayout>
103 +
104 + <RelativeLayout
105 + android:id="@+id/rl_home_coupons"
106 + android:layout_width="match_parent"
107 + android:layout_height="wrap_content"
108 + android:layout_below="@id/rl_home_campaigns"
109 + android:paddingHorizontal="15dp">
110 +
111 + <include layout="@layout/coupon_layout"/>
112 + </RelativeLayout>
113 +
114 + <androidx.constraintlayout.widget.ConstraintLayout
115 + android:id="@+id/rl_home_info_widget"
116 + android:layout_width="match_parent"
117 + android:layout_height="wrap_content"
118 + android:layout_below="@id/rl_home_coupons"
119 + android:layout_marginHorizontal="10dp"
120 + android:background="@drawable/banner_border">
121 +
122 + <include layout="@layout/info_widget" />
123 + </androidx.constraintlayout.widget.ConstraintLayout>
124 +
125 + <TextView
126 + android:id="@+id/hsv_title"
127 + android:layout_width="match_parent"
128 + android:layout_height="40dp"
129 + android:layout_below="@+id/rl_home_info_widget"
130 + android:layout_marginTop="20dp"
131 + android:background="@android:color/white"
132 + android:paddingHorizontal="25dp"
133 + android:paddingTop="10dp"
134 + android:text="Βρες γρήγορα"
135 + android:textColor="#3C464F" />
136 +
137 + <HorizontalScrollView
138 + android:id="@+id/ll_add"
139 + android:layout_width="match_parent"
140 + android:layout_height="110dp"
141 + android:layout_below="@id/hsv_title"
142 + android:background="@android:color/white"
143 + android:paddingBottom="10dp"
144 + android:scrollbars="none">
145 +
146 + <LinearLayout
147 + android:layout_width="match_parent"
148 + android:layout_height="match_parent"
149 + android:divider="@drawable/divider"
150 + android:showDividers="middle">
151 +
152 + <LinearLayout
153 + android:layout_width="150dp"
154 + android:layout_height="match_parent"
155 + android:gravity="center"
156 + android:orientation="vertical"
157 + android:paddingHorizontal="10dp">
158 +
159 + <ImageView
160 + android:layout_width="50dp"
161 + android:layout_height="50dp"
162 + android:src="@drawable/doc" />
163 +
164 + <TextView
165 + android:layout_width="match_parent"
166 + android:layout_height="40dp"
167 + android:gravity="center"
168 + android:scrollHorizontally="true"
169 + android:text="Πληρωμή λογαριασμού"
170 + android:textAlignment="center"
171 + android:textColor="#3C464F" />
172 + </LinearLayout>
173 +
174 + <LinearLayout
175 + android:layout_width="150dp"
176 + android:layout_height="match_parent"
177 + android:gravity="center"
178 + android:orientation="vertical"
179 + android:paddingHorizontal="10dp">
180 +
181 + <ImageView
182 + android:layout_width="50dp"
183 + android:layout_height="50dp"
184 + android:src="@drawable/message" />
185 +
186 + <TextView
187 + android:layout_width="match_parent"
188 + android:layout_height="40dp"
189 + android:gravity="center"
190 + android:scrollHorizontally="true"
191 + android:text="Υποστήριξη"
192 + android:textAlignment="center"
193 + android:textColor="#3C464F" />
194 + </LinearLayout>
195 +
196 + <LinearLayout
197 + android:layout_width="150dp"
198 + android:layout_height="match_parent"
199 + android:gravity="center"
200 + android:orientation="vertical"
201 + android:paddingHorizontal="10dp">
202 +
203 + <ImageView
204 + android:layout_width="50dp"
205 + android:layout_height="50dp"
206 + android:src="@drawable/doc" />
207 +
208 + <TextView
209 + android:layout_width="match_parent"
210 + android:layout_height="40dp"
211 + android:gravity="center"
212 + android:scrollHorizontally="true"
213 + android:text="Πληρωμή λογαριασμού"
214 + android:textAlignment="center"
215 + android:textColor="#3C464F" />
216 + </LinearLayout>
217 + </LinearLayout>
218 + </HorizontalScrollView>
219 + </RelativeLayout>
220 + </ScrollView>
221 +</RelativeLayout>
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="300dp"
7 + android:paddingHorizontal="10dp">
8 +
9 + <androidx.constraintlayout.widget.Guideline
10 + android:id="@+id/horizontal_guideline"
11 + android:layout_width="wrap_content"
12 + android:layout_height="wrap_content"
13 + android:orientation="horizontal"
14 + app:layout_constraintGuide_percent="0.15" />
15 +
16 + <androidx.constraintlayout.widget.Guideline
17 + android:id="@+id/horizontal_guideline2"
18 + android:layout_width="wrap_content"
19 + android:layout_height="wrap_content"
20 + android:orientation="horizontal"
21 + app:layout_constraintGuide_percent="0.85" />
22 +
23 + <androidx.constraintlayout.widget.Guideline
24 + android:id="@+id/vertical_guideline0"
25 + android:layout_width="wrap_content"
26 + android:layout_height="wrap_content"
27 + android:orientation="vertical"
28 + app:layout_constraintGuide_percent="0.03" />
29 +
30 + <androidx.constraintlayout.widget.Guideline
31 + android:id="@+id/vertical_guideline"
32 + android:layout_width="wrap_content"
33 + android:layout_height="wrap_content"
34 + android:orientation="vertical"
35 + app:layout_constraintGuide_percent="0.36" />
36 +
37 + <androidx.constraintlayout.widget.Guideline
38 + android:id="@+id/vertical_guideline2"
39 + android:layout_width="wrap_content"
40 + android:layout_height="wrap_content"
41 + android:orientation="vertical"
42 + app:layout_constraintGuide_percent="0.62" />
43 +
44 +
45 + <TextView
46 + android:layout_width="wrap_content"
47 + android:layout_height="wrap_content"
48 + android:layout_marginTop="20dp"
49 + android:text="Έχεις διαθέσιμα 5.6 GB"
50 + android:textSize="17dp"
51 + android:textStyle="bold"
52 + app:layout_constraintBottom_toTopOf="@+id/horizontal_guideline2"
53 + app:layout_constraintEnd_toStartOf="@+id/vertical_guideline2"
54 + app:layout_constraintHorizontal_bias="0.271"
55 + app:layout_constraintStart_toStartOf="parent"
56 + app:layout_constraintTop_toTopOf="@+id/horizontal_guideline"
57 + app:layout_constraintVertical_bias="0.0" />
58 +
59 + <ProgressBar
60 + android:id="@+id/progressBar"
61 + style="?android:attr/progressBarStyle"
62 + android:layout_width="130dp"
63 + android:layout_height="134dp"
64 + android:progress="80"
65 + app:layout_constraintBottom_toTopOf="@+id/horizontal_guideline2"
66 + app:layout_constraintEnd_toEndOf="parent"
67 + app:layout_constraintHorizontal_bias="0.407"
68 + app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"
69 + app:layout_constraintTop_toTopOf="@+id/horizontal_guideline"
70 + app:layout_constraintVertical_bias="0.0" />
71 +
72 + <TextView
73 + android:id="@+id/textView2"
74 + android:layout_width="wrap_content"
75 + android:layout_height="wrap_content"
76 + android:text="5.6"
77 + app:layout_constraintBottom_toBottomOf="@+id/progressBar"
78 + app:layout_constraintEnd_toEndOf="@+id/progressBar"
79 + app:layout_constraintHorizontal_bias="0.537"
80 + app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"
81 + app:layout_constraintTop_toTopOf="@+id/horizontal_guideline" />
82 +
83 + <ImageView
84 + android:id="@+id/imageView3"
85 + android:layout_width="94dp"
86 + android:layout_height="36dp"
87 + app:layout_constraintBottom_toTopOf="@+id/horizontal_guideline2"
88 + app:layout_constraintEnd_toEndOf="parent"
89 + app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"
90 + app:layout_constraintTop_toBottomOf="@+id/progressBar"
91 + app:srcCompat="@drawable/cosmote_one" />
92 +
93 + <androidx.constraintlayout.widget.ConstraintLayout
94 + android:id="@+id/cl_widget_phone"
95 + android:layout_width="131dp"
96 + android:layout_height="43dp"
97 + android:orientation="horizontal"
98 + app:layout_constraintBottom_toTopOf="@+id/horizontal_guideline"
99 + app:layout_constraintEnd_toStartOf="@+id/vertical_guideline"
100 + app:layout_constraintHorizontal_bias="1.0"
101 + app:layout_constraintStart_toStartOf="@+id/vertical_guideline0"
102 + app:layout_constraintTop_toTopOf="parent">
103 +
104 + <ImageView
105 + android:id="@+id/iv_widget_phone"
106 + android:layout_width="32dp"
107 + android:layout_height="18dp"
108 + android:layout_weight="1"
109 + app:layout_constraintBottom_toBottomOf="parent"
110 + app:layout_constraintStart_toStartOf="parent"
111 + app:layout_constraintTop_toTopOf="parent"
112 + app:layout_constraintVertical_bias="0.48"
113 + app:srcCompat="@drawable/smartphone" />
114 +
115 + <TextView
116 + android:id="@+id/tv_widget_phone_title"
117 + android:layout_width="wrap_content"
118 + android:layout_height="wrap_content"
119 + android:text="Το κινητό μου"
120 + app:layout_constraintBottom_toBottomOf="parent"
121 + app:layout_constraintStart_toEndOf="@+id/iv_widget_phone"
122 + app:layout_constraintTop_toTopOf="parent" />
123 + </androidx.constraintlayout.widget.ConstraintLayout>
124 +
125 + <ImageView
126 + android:id="@+id/imageView5"
127 + android:layout_width="84dp"
128 + android:layout_height="28dp"
129 + app:layout_constraintBottom_toTopOf="@+id/horizontal_guideline"
130 + app:layout_constraintEnd_toStartOf="@+id/vertical_guideline2"
131 + app:layout_constraintStart_toEndOf="@+id/cl_widget_phone"
132 + app:layout_constraintTop_toTopOf="parent"
133 + app:srcCompat="@drawable/cosmote_one" />
134 +
135 + <androidx.constraintlayout.widget.ConstraintLayout
136 + android:id="@+id/cl_widget_mb"
137 + android:layout_width="131dp"
138 + android:layout_height="43dp"
139 + android:orientation="horizontal"
140 + app:layout_constraintBottom_toBottomOf="parent"
141 + app:layout_constraintEnd_toStartOf="@+id/vertical_guideline"
142 + app:layout_constraintHorizontal_bias="1.0"
143 + app:layout_constraintStart_toStartOf="parent"
144 + app:layout_constraintTop_toTopOf="@+id/horizontal_guideline2">
145 +
146 + <ImageView
147 + android:id="@+id/iv_widget_mb"
148 + android:layout_width="32dp"
149 + android:layout_height="18dp"
150 + android:layout_weight="1"
151 + app:layout_constraintBottom_toBottomOf="parent"
152 + app:layout_constraintStart_toStartOf="parent"
153 + app:layout_constraintTop_toTopOf="parent"
154 + app:layout_constraintVertical_bias="0.48"
155 + app:srcCompat="@drawable/smartphone" />
156 +
157 + <TextView
158 + android:id="@+id/tv_widget_mb_title"
159 + android:layout_width="wrap_content"
160 + android:layout_height="wrap_content"
161 + android:text="Το κινητό μου"
162 + app:layout_constraintBottom_toBottomOf="parent"
163 + app:layout_constraintStart_toEndOf="@+id/iv_widget_mb"
164 + app:layout_constraintTop_toTopOf="parent" />
165 + </androidx.constraintlayout.widget.ConstraintLayout>
166 +
167 + <androidx.constraintlayout.widget.ConstraintLayout
168 + android:id="@+id/cl_widget_talk"
169 + android:layout_width="100dp"
170 + android:layout_height="34dp"
171 + android:orientation="horizontal"
172 + app:layout_constraintBottom_toBottomOf="parent"
173 + app:layout_constraintEnd_toStartOf="@+id/vertical_guideline2"
174 + app:layout_constraintStart_toStartOf="@+id/vertical_guideline"
175 + app:layout_constraintTop_toTopOf="@+id/horizontal_guideline2">
176 +
177 + <ImageView
178 + android:id="@+id/iv_widget_talk"
179 + android:layout_width="32dp"
180 + android:layout_height="18dp"
181 + android:layout_weight="1"
182 + app:layout_constraintBottom_toBottomOf="parent"
183 + app:layout_constraintStart_toStartOf="parent"
184 + app:layout_constraintTop_toTopOf="parent"
185 + app:layout_constraintVertical_bias="0.48"
186 + app:srcCompat="@drawable/smartphone" />
187 +
188 + <TextView
189 + android:id="@+id/tv_widget_talk_title"
190 + android:layout_width="wrap_content"
191 + android:layout_height="wrap_content"
192 + android:text="Ομιλία"
193 + app:layout_constraintBottom_toBottomOf="parent"
194 + app:layout_constraintStart_toEndOf="@+id/iv_widget_talk"
195 + app:layout_constraintTop_toTopOf="parent" />
196 + </androidx.constraintlayout.widget.ConstraintLayout>
197 +
198 + <androidx.constraintlayout.widget.ConstraintLayout
199 + android:id="@+id/cl_widget_sms"
200 + android:layout_width="140dp"
201 + android:layout_height="35dp"
202 + android:orientation="horizontal"
203 + app:layout_constraintBottom_toBottomOf="parent"
204 + app:layout_constraintEnd_toEndOf="parent"
205 + app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"
206 + app:layout_constraintTop_toTopOf="@+id/horizontal_guideline2">
207 +
208 + <ImageView
209 + android:id="@+id/iv_widget_sms"
210 + android:layout_width="32dp"
211 + android:layout_height="18dp"
212 + android:layout_weight="1"
213 + app:layout_constraintBottom_toBottomOf="parent"
214 + app:layout_constraintStart_toStartOf="parent"
215 + app:layout_constraintTop_toTopOf="parent"
216 + app:layout_constraintVertical_bias="0.48"
217 + app:srcCompat="@drawable/smartphone" />
218 +
219 + <TextView
220 + android:id="@+id/tv_widget_sms_title"
221 + android:layout_width="wrap_content"
222 + android:layout_height="wrap_content"
223 + android:text="SMS"
224 + app:layout_constraintBottom_toBottomOf="parent"
225 + app:layout_constraintStart_toEndOf="@+id/iv_widget_sms"
226 + app:layout_constraintTop_toTopOf="parent" />
227 + </androidx.constraintlayout.widget.ConstraintLayout>
228 +
229 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file