Issue There’re many oft-used material icons in androidx.compose.material.icons.Icons but some are missing. Just as an example there is no print icon. … import androidx.compose.material.Icon import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Menu // ok import androidx.compose.material.icons.filled.Print // error, unresolved reference @Composable fun IconsExample() {
Continue readingTag: android-jetpack
Navigating Screen with Jetpack Compose
Issue I am working on an app in Jetpack and I want to traverse from one compose screen to another. I have a login compose and I want whenever the button from the login compose is clicked to go to
Continue readingHow to set card elevation in jetpack compose with Material3
Issue I’ve created the simple card in jetpack compose, Here I set elevation but it shows a type mismatch. Card( shape = RoundedCornerShape(20.dp),elevation = 10.dp ) { Box(modifier = Modifier.height(200.dp)) { Image(painter = painter, contentDescription = contentDescription, contentScale = ContentScale.Crop)
Continue readingCompose TextField clears value on gaining focus
Issue I have a Composable function which displays 2 TextFields. Here’s my code: fun CreateEntryItem() { var wordA by remember { mutableStateOf("") } var wordB by remember { mutableStateOf("") } Column { Row { TextField( value = wordA, onValueChange =
Continue readingHow to make rounded corner in top in jetpack compose
Issue I am using Scaffold in my @Composable function. Inside content = { I am using LazyColumn. I want the Top Start and Top End to corner. Something like this Expected Output I tried this piece of code from here,
Continue readingHow to map PagingSource to another object
Issue I implement paging 3 follow this codelab. codelab But when i create UserPagingRepository, i have problem that data class is not map. In Room DataBase, i use UserLocal otherhand i use UserRemote for data get from api. How can
Continue readingAligning a field on the bottom of a box
Issue I’m working on creating a layout in compose, and I’m facing challenges in positioning elements as desired. Specifically, I’m trying to design a container with an image, occupying half of the screen height. Within this container, I aim to
Continue readingAndroid handle lifecycle event on Jetpack Compose Screen
Issue In Jetpack Compose all screen are composable function. Fragments are not used in Jetpack Compose. How we can handle lifecycle events with Jetpack Compose? If we use Fragment we can handle lifecycle event (onStart/onPause/onResume/onStop). Those are useful for difference
Continue readingWorking with kotlin/compose compared to java/xml guidance
Issue Guess i should say that im new to kotlin with compose, ive only worked on projects with java/xml and im confused here. With java, we have fragments for every screen with its own logic/design. Here i have one activity,
Continue readingWhy BLE scanning not working for me on Android 13?
Issue I’m using Jetpack Compose to build an app that scans for BLE devices. Here’s the composable that simply scans for BLE devices when it enters compostions and stops scanning when exiting. I have already obtained permissions of BLUETOOTH_CONNECT and
Continue reading