-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from mohand3del/feature/aboutapp
Finished the About App screen
- Loading branch information
Showing
2 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/example/recipeappiti/aboutapp/view/AboutAppFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.example.recipeappiti.aboutapp.view | ||
|
||
import android.os.Bundle | ||
import androidx.fragment.app.Fragment | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import com.example.recipeappiti.R | ||
|
||
class AboutAppFragment : Fragment() { | ||
override fun onCreateView( | ||
inflater: LayoutInflater, container: ViewGroup?, | ||
savedInstanceState: Bundle? | ||
): View? { | ||
// Inflate the layout for this fragment | ||
return inflater.inflate(R.layout.fragment_about_app, container, false) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?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:id="@+id/constraintLayout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="16dp" | ||
tools:context=".aboutapp.view.AboutAppFragment"> | ||
|
||
<androidx.core.widget.NestedScrollView | ||
android:id="@+id/scrollView" | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="16dp" | ||
android:layout_marginBottom="16dp" | ||
android:background="@android:color/white" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<!-- App Title --> | ||
<TextView | ||
android:id="@+id/titleTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Recipe App" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | ||
android:textSize="30sp" | ||
android:textStyle="bold" | ||
android:paddingBottom="16dp" | ||
android:layout_gravity="center_horizontal"/> | ||
|
||
<!-- Overview Section --> | ||
<TextView | ||
android:id="@+id/overviewTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Overview" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Medium" | ||
android:textStyle="bold" | ||
android:paddingBottom="8dp" /> | ||
|
||
<TextView | ||
android:id="@+id/overviewDescriptionTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="The Recipe App offers a seamless cooking experience with features designed to make your culinary journey enjoyable and easy. From discovering new recipes to saving your favorites, the app is built to enhance your time in the kitchen." | ||
android:textAppearance="@style/TextAppearance.AppCompat.Body1" | ||
android:paddingBottom="16dp" /> | ||
|
||
<!-- Key Features Section --> | ||
<TextView | ||
android:id="@+id/featuresTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Key Features" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Medium" | ||
android:textStyle="bold" | ||
android:paddingBottom="8dp" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="• User Authentication: Securely log in or register to keep your data safe.\n\n• Favorites: Mark recipes you love and quickly access them anytime.\n\n• Recipe Search: Easily find recipes by name, ingredient, or category.\n\n• Detailed Recipe View: Get comprehensive details about each recipe, including ingredients, instructions, and nutritional info." | ||
android:textAppearance="@style/TextAppearance.AppCompat.Body1" | ||
android:paddingBottom="16dp" /> | ||
|
||
<!-- Special Features Section --> | ||
<TextView | ||
android:id="@+id/specialFeaturesTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Special Features" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Medium" | ||
android:textStyle="bold" | ||
android:paddingBottom="8dp" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="• Interactive Splash Screen: A visually appealing introduction to the app, powered by Lottie animations.\n\n• YouTube-Like Video Player: Watch recipe tutorials directly within the app, with a mini player that stays on screen while you browse other content.\n\n• Personalized Experience: The app remembers your preferences and customizes your experience based on your likes and cooking habits." | ||
android:textAppearance="@style/TextAppearance.AppCompat.Body1" | ||
android:paddingBottom="16dp" /> | ||
|
||
<!-- User Navigation Section --> | ||
<TextView | ||
android:id="@+id/userNavigationTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="User Navigation" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Medium" | ||
android:textStyle="bold" | ||
android:paddingBottom="8dp" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="• Smooth Navigation: Effortlessly switch between different sections of the app using the Bottom Navigation component.\n\n• Login Security: Once you're logged in, you won't accidentally navigate back to the login screen.\n\n• Quick Access: Start directly on the Home screen if you've logged in before, with your preferences intact." | ||
android:textAppearance="@style/TextAppearance.AppCompat.Body1" | ||
android:paddingBottom="16dp" /> | ||
</LinearLayout> | ||
</androidx.core.widget.NestedScrollView> | ||
</androidx.constraintlayout.widget.ConstraintLayout> |