This repository contains the source code for an Android application that displays a restaurant menu. The application includes features to view a list of dishes, details of each dish, and navigation between screens.
-
Menu Home Screen:
- Displays the restaurant logo.
- Title of the home screen.
- List of menu items.
-
Dish Details Screen:
- Displays the restaurant logo.
- Title of the details screen.
- Back button.
- Image of the dish.
- Title of the dish.
- Description of the dish.
- Price of the dish.
-
Available Dishes List:
- Includes dishes like Beef Fillet with Fries, Grilled Chicken with Vegetables, Mixed Grilled Beef Fillet and Chicken, among others.
- Each dish has an image, description, and price.
-
Menu Item Layout:
- Uses
MaterialCardView
to display each menu item with an image and title.
- Uses
-
Click Events:
- Navigation to the details screen when clicking on a menu item.
- Return to the main screen when clicking the back button on the details screen.
- Android SDK: For developing the Android application.
- RecyclerView: To display the list of menu items.
- Data Classes: To represent the dish data.
- Adapters: To link the data to the user interface.
- Layouts: Includes
LinearLayout
,ScrollView
, andMaterialCardView
to structure the screens.
To run the project locally, follow the steps below:
- Android Studio installed on your machine.
- JDK 11 or higher.
-
Clone the repository to your local machine:
git clone git@github.com:SamuelRocha91/kotlinVirtualMenu.git
-
Navigate to the project directory:
cd kotlinVirtualMenu
- Open the project in Android Studio.
- Ensure that Android Studio is configured to use JDK 11 or higher.
- Sync the project with Gradle:
- In Android Studio, click on "File" > "Sync Project with Gradle Files".
- Connect an Android device to your computer or start an Android emulator.
- Run the application:
- In Android Studio, click the "Run" button (play icon) at the top of the window.
app/src/main/java/com/example/trybevirtualmenu/
: Source code of the application.app/src/main/res/layout/
: XML layout files.app/src/main/res/drawable/
: Images and other graphic resources.