composable Questions
4
Solved
I have a row with a text align at the start and a image align at the end. When I press the image I'm showing a DropdownMenu, but this appear in the start of the row and I want that appear at the en...
Rattly asked 10/8, 2021 at 14:8
2
Solved
Each time, I need to create a composable function, I do:
Right click on a package -> New -> Kotlin Class/File
And I end up with this:
class MyClass {}
Now I have to do three changes manual...
Hjerpe asked 6/9, 2022 at 10:43
3
Solved
I want the size of the text to be in .dp so that it doesn't change according to the system font.
How to achieve this in Jetpack Compose "Text" composable
Petitionary asked 10/6, 2021 at 9:45
7
Solved
Currently in Jetpack Compose, this code throws an IllegalStateException because you cannot nest two vertically scrolling Composables:
@ExperimentalFoundationApi
@Composable
fun MyLazyColumn() {
La...
Katzen asked 26/9, 2021 at 15:55
2
Solved
I have the following composable.
@Composable
fun Temp() {
Row(
modifier = Modifier
.background(Color.Red)
.height(IntrinsicSize.Min)
.fillMaxWidth()
) {
Text(text = "Hello", fontSi...
Thirtyeight asked 29/5, 2022 at 14:19
4
I created a composable with a reactive boolean. For some reason, the reactive boolean only works with .value in the template v-if. It doesn't automatically unwraps it inside the template.
But if I ...
Korean asked 8/6, 2023 at 8:59
2
Solved
I wanted to know how we can add multiple modifier, for example adding background, padding and more to an android jetpack composable?
Remit asked 28/2, 2021 at 8:30
2
Row {
Foo()
Bar(cellSize = 80)
}
I have two composables Foo and Bar. Bar's size is dependent on cellSize and after the calculation Bar usually ends up taller than Foo.
Foo contains a box with c...
Therapsid asked 18/8, 2023 at 13:41
1
I'm trying to access useRoute from within a composable function. Starting with vue 3.3.2 & vue-route 4.2.0, I set up a test using npm init vue@latest with the router enabled. No problem accessi...
Lilith asked 15/5, 2023 at 4:17
0
In my Android app I use Jetpack Compose for the UI.
In a screen I'm rendering an image, using a lottie file that is downloaded from a url.
The lottie image file is rendered like this:
@Composable
p...
Pietrek asked 21/2, 2023 at 20:26
1
I'm trying to use some fragments within jetpack compose but I can not import AndroidViewBinding from (androidx.compose.ui.viewinterop) and it is always appearing as an unresolved name
how to import...
Laureen asked 22/12, 2022 at 7:37
2
Solved
I am developing an application for android devices, using the jetpack compose library.
Example I created inside a compose function
var taskVeriable = remember {mutableStateOf("Hello World"...
Aerodynamics asked 29/10, 2022 at 19:47
1
Solved
I try to use the composable GoogleMap in my project but now I need the LatLngBounds of the visible google map in onMapLoaded so I'm able to load some POI for within this boundaries, but I can't fin...
Rail asked 13/6, 2022 at 21:22
1
Solved
I have a column with a card in the middle. There should be an action when you click on column, but nothing should happen when you click on the card. (like cancelable dialogs)
When I did this with X...
Kurr asked 27/1, 2022 at 10:46
4
Solved
I have a custom composable View (Surface + Text essentially) and I want to change the color of the surface depending on the focus state. The FocusManager#FocusNode is marked internal and I am unawa...
Rowe asked 23/4, 2020 at 18:31
1
I'm currently trying out Vue 3's Composition API, using a main app and several composition funtions, aka 'composables'. I studied official docs and several tuts. It seems there are many ways of acc...
Went asked 3/11, 2021 at 16:29
1
Solved
I'm new in jetpack compose and I'm trying to do a simple thing that I can't achieve it.
That I want to do is in the same row align one component, in this case a surface, at the start and the other ...
Orme asked 6/8, 2021 at 7:33
1
Solved
I have a List<Item> that I want to be displayed using Jetpack Compose. In version "1.0.0-alpha10", this code:
@Composable
fun ItemsScreen(items: List<Item>) {
item?.let {
La...
Dichlorodifluoromethane asked 4/2, 2021 at 10:6
1
© 2022 - 2024 — McMap. All rights reserved.