mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 13:38:41 +00:00
116 lines
4.6 KiB
XML
116 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView 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"
|
|
tools:context=".Fragment.HomeFragment">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/header_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="40dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/welcome_text"
|
|
android:text="@string/hello_guest"
|
|
android:textSize="22sp"
|
|
android:fontFamily="@font/opensans"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/black"
|
|
android:layout_weight="0.7"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/text_address"
|
|
android:text="@string/home"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/secondary"
|
|
android:textAlignment="center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
/>
|
|
<ImageView
|
|
android:src="@drawable/location"
|
|
android:layout_weight="0.1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="30dp"
|
|
android:contentDescription="@string/location_icon"
|
|
app:tint="@color/secondary"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.denzcoskun.imageslider.ImageSlider
|
|
android:id="@+id/slider"
|
|
app:iss_auto_cycle="true"
|
|
app:iss_delay="0"
|
|
app:iss_period="3000"
|
|
android:layout_marginTop="20dp"
|
|
app:iss_corner_radius="40"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="180dp"
|
|
app:layout_constraintTop_toBottomOf="@id/header_title"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/restaurant_text"
|
|
android:text="Shop"
|
|
android:layout_marginTop="5dp"
|
|
android:textSize="18sp"
|
|
android:fontFamily="@font/opensans"
|
|
android:textColor="@color/black"
|
|
android:textStyle="bold"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toBottomOf="@id/slider"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_view_restaurant"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
android:orientation="horizontal"
|
|
android:contentDescription="@string/description"
|
|
tools:listitem="@layout/item_shop"
|
|
app:layout_constraintTop_toBottomOf="@id/restaurant_text"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_view_menu"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
android:orientation="horizontal"
|
|
tools:listitem="@layout/item_food"
|
|
android:layout_marginTop="10dp"
|
|
app:layout_constraintTop_toBottomOf="@id/recycler_view_restaurant"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView> |