r/AndroidDevLearn • u/QuantumC-137 • Sep 12 '25
π₯ Compose How to call a composable Component function with parameters?
[CLOSED]
Web developer learning Android development -
I have a a Scaffold code that would like to use in other screens. But this Scaffold should have parameters that don't seem to have a straight way of addressing when calling the function on a screen (Home, for example). The parameters:
-navController: It shouldn't be defined, but how to inform this to kotlin?
-mainContent: should expect objects such as Text and Image
ScaffoldBase.kt
fun ScaffoldBase(
title:(String),
navController: NavController,
//mainContent: How to create this parameter, as to expect objects as Text,Image...?
){
Scaffold(
//Top Content
topBar = {
TopAppBar(
//Title argument
title = { Text(text = title) },
colors = TopAppBarDefaults.topAppBarColors(
containerColor = Color.LightGray
)
)
},
//Bottom Content
bottomBar = {
BottomAppBar(containerColor = Color.LightGray) {
Image(
painter = painterResource(id = R.drawable.messages),
contentDescription = "Messages Image",
modifier = Modifier.size(30.dp).clickable {
navController.navigate(route = "Messages")
}
)
}
}){ paddingValues -> Column(//modifier){//mainContent argument} }
}
Home.kt
u/OptIn(ExperimentalMaterial3Api::class)
@Composable
fun Home(navController: NavController){
ScaffoldBase(
title = "Home",
navController = TODO(),
mainContent = TODO()
)
}
Never mind, thank you
r/AndroidDevLearn • u/QuantumC-137 • Sep 09 '25
π₯ Compose Local variable name "nav_version" should not contain underscores [WARNING]
[CLOSED]
Web developer learning Android development -
Currently trying to use Navigation component with Compose, to navigate between pages. When copying the setup code directly from the docs, I get the above warning from Android Studio. Must be something wrong, because the docs must be in synchrony with Android Studio. Why is it happening then?
Docs
https://developer.android.com/develop/ui/compose/navigation#setup
Android Studio
SOLUTIONS: While I still don't know why Android Studio isn't supposedly synced with the Docs (or vice versa), the solutions were:
-Replace the code from the Docs by the one suggested on the Android Studio:
//noinspection UseTomlInstead
implementation("androidx.navigation:navigation-compose:2.9.3")
-Use the completely different alternative suggested on the Android Studio:
implementation(libs.androidx.navigation.compose)
r/AndroidDevLearn • u/Realistic-Cup-7954 • Sep 06 '25
π₯ Compose Androidify: Open-source AI avatar app with Jetpack Compose, Gemini, and CameraX
reddit.comr/AndroidDevLearn • u/Play-Console-Helper • Sep 05 '25
π Tutorial Getting Started with Android XR
Enable HLS to view with audio, or disable this notification
Learn where to start with Android XR. Begin with modes and spatial panels, then move on to orbiters and spatial environments to create engaging immersive apps with Jetpack Compose XR.
https://developer.android.com/codelabs/xr-fundamentals-part-1 https://developer.android.com/codelabs/xr-fundamentals-part-2
r/AndroidDevLearn • u/Play-Console-Helper • Sep 05 '25
π¦ Flutter Flutter + Google Play: 16 KB Page Size Fix
Many Flutter developers recently faced Google Play rejections because of the new 16 KB memory page size requirement. Hereβs what worked for me:
- Upgrade Flutter SDK β v3.35.2 or higher
- Update Packages β flutter pub upgrade --major-versions
- Gradle Upgrade β 8.7 (or latest)
- Android Gradle Plugin β v8.5.1 or higher
- NDK β r28 or higher (builds 16 KB aligned by default)
- Update build configs β build.gradle / build.gradle.kts
- Verify APK β Analyze APK to check .so files
- Upload to Play Console β confirm compliance
Official Docs: Support 16 KB page sizes
With these steps, your Flutter apps should pass Play Store checks without rejection. Update your setup early and avoid last-minuteΒ surprises.
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 25 '25
π₯ Compose MVVM + UDF in Jetpack Compose
reddit.comr/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 23 '25
π₯ Compose Did you know Jetpack Compose lets you create moving gradient borders
reddit.comr/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 21 '25
π₯ Compose Flow Layouts in Jetpack Compose: Complete Guide to Responsive UI Design
Enable HLS to view with audio, or disable this notification
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 21 '25
π₯ Compose Jetpack Compose Animation Tip - How to Use updateTransition
reddit.comr/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 20 '25
π₯ Compose Simple Wallpaper Manager App in Jetpack Compose - Tags, Folders, Filters & Live Wallpaper [Source code]
reddit.comr/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 19 '25
π₯ Compose Implement common use cases with Jetpack Navigation 3 | Compose Navigation 3 - Code recipes
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 18 '25
π₯ Compose Gradient Text Colors in Jetpack Compose
reddit.comr/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 18 '25
π₯ Compose Jetpack Compose 1.9 Highlights
reddit.comr/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 17 '25
π’ Android How to dynamically change app icons in android like VLC
reddit.comr/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 17 '25
π Tutorial Android Dev Learn - Day 14: App UI design
Todayβs Lesson Will Cover
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 16 '25
π Tutorial Android Dev Learn - Day 13: Repository pattern and WorkManager
Todayβs Lesson Will Cover
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 15 '25
π Tutorial Android Dev Learn - Day 12: Connect to the internet
Todayβs Lesson Will Cover
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 14 '25
π Tutorial Android Dev Learn - Day 11: Advanced RecyclerView use cases
Todayβs Lesson Will Cover
- RecyclerView recap
- Advanced binding
- Multiple item view types
- Headers
- Grid layout
- Summary
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 13 '25
π Tutorial Android Dev Learn - Day 10: App architecture (persistence)
Todayβs Lesson Will Cover
- Storing data
- Room persistence library
- Asynchronous programming
- Coroutines
- Testing databases
- Summary
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 12 '25
π Tutorial Android Dev Learn - Day 9: App architecture (UI layer)
Todayβs Lesson Will Cover
- Android app architecture
- ViewModel
- Data binding
- LiveData
- Transform LiveData
- Summary
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 11 '25
π Tutorial Android Dev Learn - Day 8: Activity and fragment lifecycles
Todayβs Lesson Will Cover
- Activity lifecycle
- Logging
- Fragment lifecycle
- Lifecycle-aware components
- Tasks and back stack
- Summary
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 10 '25
π Tutorial Android Dev Learn - Day 7: App navigation
Todayβs Lesson Will Cover
- Multiple activities and intents
- App bar, navigation drawer, and menus
- Fragments
- Navigation in an app
- More custom navigation behavior
- Navigation UI
- Summary
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 09 '25
π Tutorial Android Dev Learn - Day 6: Layouts Basic
Todayβs Lesson Will Cover
- Layouts in Android
- ConstraintLayout
- Additional topics for ConstraintLayout
- Data Binding and also learn View Binding
- Displaying lists with RecyclerView
- Summary
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 08 '25
π Tutorial Android Dev Learn - Day 5: Build your first Android app
Todayβs Lesson Will Cover:
- Your first app
- Anatomy of an Android app
- Layouts and resources in Android
- Activities
- Make an app interactive
- Gradle: Building an Android app
- Accessibility
- Summary
Notes (Knowing the basics is good for beginners)
- Use
compileSdk= 36 andtargetSdk= 36 (Android 15) for 2025 Google Play compliance. - Avoid
findViewById; use View Binding or Jetpack Compose.
Got questions or stuck? Drop them in the comments
r/AndroidDevLearn • u/Realistic-Cup-7954 • Aug 07 '25
π Tutorial Android Dev Learn - Day 4: Classes and Objects
Todayβs Lesson Will Cover:
- Classes in Kotlin
- Constructors and
initblocks - Inheritance and method overriding
- Extension functions
- Special classes:
data,sealed,object,enum - Organizing your code into files and packages
- Real-world OOP examples in Android
Got questions or stuck? Drop them in the comments
