|
4 | 4 | xmlns:tools="http://schemas.android.com/tools" |
5 | 5 | android:layout_width="match_parent" |
6 | 6 | android:layout_height="match_parent" |
7 | | - android:background="@drawable/background" |
8 | | - tools:context=".BestSellerActivity"> |
| 7 | + android:background="@drawable/background"> |
9 | 8 |
|
10 | 9 | <!-- Заголовок --> |
11 | 10 | <androidx.constraintlayout.widget.ConstraintLayout |
|
22 | 21 | android:textColor="@android:color/white" |
23 | 22 | android:textSize="28sp" |
24 | 23 | android:textStyle="bold" |
25 | | - app:layout_constraintTop_toTopOf="parent" |
26 | 24 | app:layout_constraintBottom_toBottomOf="parent" |
| 25 | + app:layout_constraintEnd_toEndOf="parent" |
| 26 | + app:layout_constraintHorizontal_bias="0.498" |
27 | 27 | app:layout_constraintStart_toStartOf="parent" |
28 | | - app:layout_constraintEnd_toEndOf="parent" /> |
| 28 | + app:layout_constraintTop_toTopOf="parent" |
| 29 | + app:layout_constraintVertical_bias="0.656" /> |
29 | 30 |
|
30 | 31 | <ImageView |
31 | 32 | android:id="@+id/exitArrow" |
32 | | - android:layout_width="24dp" |
33 | | - android:layout_height="24dp" |
34 | | - android:src="@drawable/exit_arrow" |
| 33 | + android:layout_width="15dp" |
| 34 | + android:layout_height="15dp" |
35 | 35 | android:layout_marginStart="16dp" |
| 36 | + android:src="@drawable/exit_arrow" |
| 37 | + app:layout_constraintBottom_toBottomOf="parent" |
| 38 | + app:layout_constraintEnd_toStartOf="@+id/loginHeader" |
| 39 | + app:layout_constraintHorizontal_bias="0.0" |
36 | 40 | app:layout_constraintStart_toStartOf="parent" |
37 | 41 | app:layout_constraintTop_toTopOf="parent" |
38 | | - app:layout_constraintBottom_toBottomOf="parent" /> |
| 42 | + app:layout_constraintVertical_bias="0.632" /> |
39 | 43 | </androidx.constraintlayout.widget.ConstraintLayout> |
40 | 44 |
|
41 | | - <!-- Основной контент --> |
42 | | - <ScrollView |
43 | | - android:layout_width="0dp" |
44 | | - android:layout_height="0dp" |
45 | | - android:fillViewport="true" |
46 | | - app:layout_constraintTop_toBottomOf="@id/headerLayout" |
47 | | - app:layout_constraintBottom_toTopOf="@+id/bottomPanel" |
| 45 | + <!-- Нижняя панель --> |
| 46 | + |
| 47 | + <FrameLayout |
| 48 | + android:layout_width="match_parent" |
| 49 | + android:layout_height="654dp" |
| 50 | + app:layout_constraintEnd_toEndOf="parent" |
48 | 51 | app:layout_constraintStart_toStartOf="parent" |
49 | | - app:layout_constraintEnd_toEndOf="parent"> |
| 52 | + app:layout_constraintTop_toBottomOf="@+id/headerLayout"> |
50 | 53 |
|
51 | | - <LinearLayout |
| 54 | + <fragment |
| 55 | + android:id="@+id/food_favorite_fragment" |
| 56 | + android:name="com.example.projectfigma.Fragments.MainBestSeller" |
52 | 57 | android:layout_width="match_parent" |
53 | | - android:layout_height="wrap_content" |
54 | | - android:orientation="vertical" |
55 | | - android:background="@drawable/white_top_rounded" |
56 | | - android:padding="16dp"> |
57 | | - |
58 | | - <!-- Подзаголовок --> |
59 | | - <TextView |
60 | | - android:id="@+id/text" |
61 | | - android:layout_width="wrap_content" |
62 | | - android:layout_height="wrap_content" |
63 | | - android:text="Discover our most popular dishes!" |
64 | | - android:textColor="@android:color/holo_orange_dark" |
65 | | - android:textSize="18sp" |
66 | | - android:textStyle="bold" |
67 | | - android:layout_gravity="center_horizontal" |
68 | | - android:layout_marginBottom="16dp" /> |
| 58 | + android:layout_height="match_parent" |
| 59 | + tools:layout="@layout/fragment_main_best_seller" /> |
69 | 60 |
|
70 | | - <!-- Grid из карточек --> |
71 | | - <GridLayout |
72 | | - android:id="@+id/gridLayout" |
73 | | - android:layout_width="match_parent" |
74 | | - android:layout_height="wrap_content" |
75 | | - android:columnCount="2" |
76 | | - android:rowCount="3" |
77 | | - android:alignmentMode="alignMargins" |
78 | | - android:useDefaultMargins="true"> |
| 61 | + </FrameLayout> |
79 | 62 |
|
80 | | - <include layout="@layout/item_dish_best_seller" /> |
81 | | - <include layout="@layout/item_dish_best_seller" /> |
82 | | - <include layout="@layout/item_dish_best_seller" /> |
83 | | - <include layout="@layout/item_dish_best_seller" /> |
84 | | - <include layout="@layout/item_dish_best_seller" /> |
85 | | - <include layout="@layout/item_dish_best_seller" /> |
86 | | - </GridLayout> |
87 | | - </LinearLayout> |
88 | | - </ScrollView> |
89 | | - |
90 | | - <!-- Нижняя панель --> |
91 | 63 | <include |
92 | | - android:id="@+id/bottomPanel" |
93 | 64 | layout="@layout/fragment_bottom_panel" |
94 | | - android:layout_width="match_parent" |
| 65 | + android:layout_width="wrap_content" |
95 | 66 | android:layout_height="55dp" |
96 | | - app:layout_constraintBottom_toBottomOf="parent" /> |
| 67 | + app:layout_constraintBottom_toBottomOf="parent" |
| 68 | + app:layout_constraintEnd_toEndOf="parent" /> |
97 | 69 | </androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments