ArtSpace is an Android app built using Jetpack Compose, designed to showcase different pieces of artwork. Users can navigate through various artworks and view their titles and years using "Previous" and "Next" buttons.
- Display artwork images.
- Show the title and year of the currently displayed artwork.
- Navigate through artworks using "Previous" and "Next" buttons.
- Android Studio Arctic Fox (2020.3.1) or higher
- Kotlin 1.6.0 or higher
-
Clone this repository using Git:
git@github.com:rayynaldgitau/ArtSpace.git
-
Navigate to the project directory:
cd artspace
-
Open the project in Android Studio.
-
Make sure that you have the necessary SDKs and tools installed.
-
Sync the project with Gradle files by clicking the "Sync Project with Gradle Files" button in the toolbar.
-
Run the app on an emulator or a physical device by clicking the "Run" button in Android Studio.
- The
MainActivityclass extendsComponentActivityand sets up the app's content using Jetpack Compose. ArtSpaceThemeis applied to the content to maintain consistent styling.- The
ArtSpaceScreencomposable is used as the main UI component.
- Manages the state for artwork, including the current artwork, title, and year.
- Displays the artwork using the
ArtworkDisplaycomposable. - Shows the title and year of the artwork using the
ArtworkTitlecomposable. - Provides "Previous" and "Next" buttons for navigation between artworks.
- Displays the current artwork image.
- Uses the
Imagecomposable from Jetpack Compose to render the artwork.
- Displays the title and year of the current artwork.
- Uses
Textcomposables to show this information with appropriate styling.
- Provides a preview of the
ArtSpaceScreencomposable in Android Studio.
- Artwork Images: Images used for the artworks are located in the
res/drawabledirectory. - Strings: String resources are defined in
res/values/strings.xml. - Colors: Color resources are defined in
res/values/colors.xml.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
For any questions or suggestions, please contact raynaldgitau@gmail.com.