Category "android-jetpack-compose"

Using Custom Views with Jetpack Compose

Let's suppose I'm using some library that's intended to provide some UI Widgets. Let's say this library provides a Button Widget called FancyButton. In the oth

What is Scaffold? Jetpack compose

I want to know what is Scaffold in jetpack compose with a BottomAppBar example can anyone help me Scaffold

How to eliminate passing View Model to this Jetpack Compose Kotlin Home Screen?

I'm trying to clean-up my code and eliminate View Models where not necessary. I'd like to be able to access itemList, filtering, and itemListFiltered in my Home

Set Drawable instance to Image in Jetpack Compose

In Jetpack Compose, who can tell me is there a way to assign a Drawable Object to the Image compose view? I took the apps installed on an Android device. I get

Jetpack Compose - Column - Gravity center

I'm creating a layout with Jetpack Compose and there is a column. I would like center items inside this column: Column(modifier = ExpandedWidth) { Tex

How can i add a Toolbar in Jetpack Compose?

I need to add a Toolbar in my Android application with a List like below. I am using Jetpack Compose to create the UI. Below is the composable function i am usi

How do I set a shadow color for Jetpack Compose?

Sorry, I can hardly speak English. machine translation: How do I set a shadow color for Jetpack Compose? I can set shadows, but they're ugly. Jetpack Compose co

Jetpack Compose, centering text without font padding?

I'm struggling with vertically centering text in Jetpack Compose version alpha-11. It appears that my font has a significant amount of padding and I'm unable to

How to draw a circular image in Android Jetpack Compose?

Let's say I have a rectangular avatar image like the one below, how can I force it to be drawn as a circle in Jetpack Compose?

Multi style text editing for TextField composable in android jetpack compose

I want to change the text style (fontSize , color , fontWeight , ...) of a selected text in a TextFiled() composable , with a button in android jetpack compose.

ViewModels creation is not supported in Preview

I followed the official guide to create viewModel instance and it works perfectly. However, when there is any viewModel in the @composable, Android Studio isn't

How to show keyboard with Jetpack Compose?

How can I slide in the keyboard? I tried: val keyboardController: SoftwareKeyboardController? = LocalSoftwareKeyboardController.current keyboardController?.sh

How to get activity in compose

Is there a way to get current activity in compose function? @Composable fun CameraPreviewScreen() { val context = ContextAmbient.current if (ActivityCom

How to create an instance of Room Dao or Repository or Viewmodel in GlanceAppWidget class using Jetpack Compose

I am trying to load list of data in App Widget using jetpack compose and i have stored in Room Local database, how i can retrive the data in GlanceAppWidget cla

Jetpack Compose: Custom TextField design

In general, most components in Jetpack Compose seem to be very easy to customize. However, the same cannot be said for the TextField. For example, say that I wa

Jetpack compose can not inspect in AS Layout Inspector

Jetpack compose can not inspect in AS Layout Inspector. Is there any tools can inspect compose layoutnode.

How to display title and snippet on a google maps composable marker, without clicking on it?

I'm using the new google maps integration library with jetpack compose, however I want to modify a behavior of my markers: when the map initializes I want to sh

Software keyboard overlaps content of jetpack compose view

Suppose I have some activity with a jetpack-compose content class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) {

Provided camera selector unable to resolve a camera for the given use case

I use camera in compose to take picture. Code for camera preview^ @Composable fun CameraPreview( modifier: Modifier = Modifier, scaleType: PreviewView.S

Kotlin Multiplatform Compose + Desktop + Web + Mobile

Is it possible at the moment to have a kotlin multiplatform project using compose for sharing the ui code for desktop, web, and mobile at the same time? All the