This repository contains a profile screen implemented using Jetpack Compose, the modern UI toolkit for Android.
- Display a user profile picture, name, and location.
- Follow and message action buttons.
- A grid display of user images.
recording.webm
- Clone the repository:
git clone https://github.com/your-username/assignment_2_profilescreen.git
-
Open the project using Android Studio.
-
Make sure you have the Jetpack Compose toolkit set up in your Android Studio.
-
Run the project on an emulator or physical device.
The ProfileScreen
composable function takes in:
profilePicPainter
: A painter representing the user's profile picture.name
: The user's name.location
: The user's location.imageList
: A list of painters representing user images.
The screen consists of:
- A
ConstraintLayout
is used to position the profile picture, name, location, and action buttons. - A
LazyVerticalGrid
to display the user images in a grid format.
Custom text styles and font families (Comfortaa
& RobotoBold
) are used to style the text elements.
This project uses:
- Jetpack Compose for UI.
- ConstraintLayout Compose for layout design.
- AndroidX libraries for backward compatibility.
Feel free to open issues or PRs if you find any bugs or have suggestions for improvements!
This project is under the MIT license. See the LICENSE for more information.