This project demonstrates the usage of Jetpack Compose for building Android UIs along with navigation using Navigation Compose.
Simple UI - Login - Register - JetPack Compose
- Jetpack Compose
- Navigation Compose
dependencies {
val composeBom = platform("androidx.compose:compose-bom:2024.06.00")
implementation(composeBom)
androidTestImplementation(composeBom)
// Choose one of the following:
// Material Design 3
implementation(libs.material3)
// or Material Design 2
implementation(libs.androidx.material)
// or skip Material Design and build directly on top of foundational components
implementation(libs.androidx.foundation)
// or only import the main APIs for the underlying toolkit systems,
// such as input and measurement/layout
implementation(libs.ui)
// Android Studio Preview support
implementation(libs.ui.tooling.preview)
debugImplementation(libs.ui.tooling)
// UI Tests
androidTestImplementation(libs.ui.test.junit4)
debugImplementation(libs.ui.test.manifest)
// Optional - Included automatically by material, only add when you need
// the icons but not the material library (e.g. when using Material3 or a
// custom design system based on Foundation)
implementation(libs.androidx.material.icons.core)
// Optional - Add full set of material icons
implementation(libs.androidx.material.icons.extended)
// Optional - Add window size utils
implementation("androidx.compose.material3:material3-window-size-class")
// Optional - Integration with activities
implementation(libs.androidx.activity.compose)
// Optional - Integration with ViewModels
implementation(libs.androidx.lifecycle.viewmodel.compose)
// Optional - Integration with LiveData
implementation(libs.androidx.runtime.livedata)
// Optional - Integration with RxJava
implementation(libs.androidx.runtime.rxjava2)
//Navigation with Compose
implementation(libs.androidx.navigation.compose)
implementation(libs.lottie.compose)
implementation(libs.lottie)
}Here are some screenshots showcasing the UI App: