<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
tools:context
=
".ui.activity.MealActivity"
>
<
com.google.android.material.appbar.AppBarLayout
android:id
=
"@+id/appBar"
android:layout_width
=
"match_parent"
android:layout_height
=
"280dp"
android:backgroundTint
=
"@color/g_black"
>
<
com.google.android.material.appbar.CollapsingToolbarLayout
android:id
=
"@+id/collapsingToolBar"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
app:contentScrim
=
"@color/accent"
app:layout_scrollFlags
=
"scroll|snap|exitUntilCollapsed"
app:title
=
"Meal Name"
>
<
ImageView
android:id
=
"@+id/img_meal_detail"
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
android:scaleType
=
"centerCrop"
app:layout_collapseMode
=
"parallax"
>
</
ImageView
>
<
androidx.appcompat.widget.Toolbar
android:id
=
"@+id/toolbar"
android:layout_width
=
"match_parent"
android:layout_height
=
"?actionBarSize"
app:layout_collapseMode
=
"pin"
app:titleTextColor
=
"@color/white"
>
</
androidx.appcompat.widget.Toolbar
>
</
com.google.android.material.appbar.CollapsingToolbarLayout
>
</
com.google.android.material.appbar.AppBarLayout
>
<
com.google.android.material.floatingactionbutton.FloatingActionButton
android:id
=
"@+id/btn_fav"
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
android:layout_marginEnd
=
"@dimen/_10sdp"
android:backgroundTint
=
"@color/accent"
android:src
=
"@drawable/favorite"
android:tint
=
"@color/white"
app:layout_anchor
=
"@id/appBar"
app:layout_anchorGravity
=
"bottom|end"
/>
<
androidx.core.widget.NestedScrollView
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
app:layout_behavior
=
"com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
>
<
androidx.constraintlayout.widget.ConstraintLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_marginTop
=
"5dp"
android:layout_marginBottom
=
"45dp"
>
<
LinearLayout
android:id
=
"@+id/linear_layout"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:orientation
=
"horizontal"
app:layout_constraintTop_toTopOf
=
"parent"
app:layout_constraintStart_toStartOf
=
"parent"
>
<
TextView
android:id
=
"@+id/tv_category"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:text
=
"Category : Pizza"
android:textStyle
=
"bold"
android:textColor
=
"@color/g_black"
android:drawableLeft
=
"@drawable/category"
android:backgroundTint
=
"@color/g_black"
android:layout_weight
=
"1"
>
</
TextView
>
<
TextView
android:id
=
"@+id/tv_area"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:text
=
"Area : Palestine"
android:textStyle
=
"bold"
android:textColor
=
"@color/g_black"
android:drawableLeft
=
"@drawable/area"
android:backgroundTint
=
"@color/g_black"
android:layout_weight
=
"1"
>
</
TextView
>
</
LinearLayout
>
<
TextView
android:id
=
"@+id/instructions"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:text
=
"-Instructions:"
android:textColor
=
"@color/black"
android:textStyle
=
"bold"
app:layout_constraintStart_toStartOf
=
"parent"
app:layout_constraintTop_toBottomOf
=
"@id/linear_layout"
android:layout_marginTop
=
"@dimen/_10sdp"
android:layout_marginStart
=
"@dimen/_5sdp"
android:textSize
=
"@dimen/_15sdp"
android:fontFamily
=
"@font/myfont"
>
</
TextView
>
<
TextView
android:id
=
"@+id/tv_instructions_steps"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:textColor
=
"@color/black"
app:layout_constraintStart_toStartOf
=
"@id/instructions"
app:layout_constraintTop_toBottomOf
=
"@id/instructions"
android:layout_marginTop
=
"@dimen/_2sdp"
>
</
TextView
>
</
androidx.constraintlayout.widget.ConstraintLayout
>
</
androidx.core.widget.NestedScrollView
>
<
com.google.android.material.progressindicator.LinearProgressIndicator
android:id
=
"@+id/progress_bar"
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
android:layout_gravity
=
"bottom"
app:layout_anchor
=
"@id/appBar"
android:indeterminate
=
"true"
>
</
com.google.android.material.progressindicator.LinearProgressIndicator
>
</
androidx.coordinatorlayout.widget.CoordinatorLayout
>