Questions tagged [composable]
160 questions
0
votes
0 answers
Viewmodels + Navigation + Compose
In Compose, while creating Composables like ScreenA (where they would represent the entire screen content), is it a good option to pass in the entire viewmodel as a parameter to the Composable? I mean the values are stored there inside the…

Richard Onslow Roper
- 5,477
- 2
- 11
- 42
0
votes
1 answer
DropDownMenu not showing when click in compose
I have an image and I want to show a dropdownMenuItem when user click in the image. I was debugging the app and I can see that the code go through the DropdownDemo method but is not showing anything.
Am I doing something wrong?
Click…

S.P.
- 2,274
- 4
- 26
- 57
0
votes
1 answer
Is possible insert a Java view that extends Framelayout in composable
Is possible to insert a Java view that extends a Framelayout inside of a composable component. That I want to achieve is insert an old view component in a compose view.
I was searching but did not find any reference.

S.P.
- 2,274
- 4
- 26
- 57
0
votes
2 answers
How to update template ref after mounted vue
I am trying run a function be it computed or watch or watcheffect after the template has mounted.
the watcheffect only executes once, computed of course runs before mounted.
I have tried flush: 'post' in watcheffect and flush in watch, I am rather…

Fanna1119
- 1,878
- 4
- 24
- 30
0
votes
3 answers
How to trigger recomposition when modify the parent data using CompositionLocal
when I use CompositionLocal, I have got the data from the parent and modify it, but I found it would not trigger the child recomposition.
I have successfully change the data, which can be proved through that when I add an extra state in the child…

wjploop
- 209
- 2
- 8
0
votes
1 answer
custom filters and or plugins to run inside components
We have built a large Vuejs app whose components we are now adding to Vuepress.
However we're having issues figuring out how to move over some globally use plugins and composable functions used throughout the project. They are typical helper plugins…

v3nt
- 2,845
- 6
- 36
- 50
0
votes
1 answer
Android composable, BasicCodelabTheme shows error
I have tried to basic composable codelab exercise. In Android Studio BasicCodelabThemes shows as an error. Please help me to find the error
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
…
0
votes
1 answer
How to change @DrawableRes parameter to Drawable in @Compose function?
Picture function draws picture out of resource id; like R.drawable.icon.
@Composable
fun Picture(@DrawableRes resId: Int, modifier: Modifier = Modifier) {
val rectModifier = loadVectorResource(resId).resource.resource
…

Ralf Wickum
- 2,850
- 9
- 55
- 103
-1
votes
1 answer
How do I add background color in Android?
I keep getting 'Unresolved reference:Green' when adding color with 'modifier = Modifier.background(color = Color.Green)'.
I have tried to resolve this by Importing 'androidx.compose.ui.graphics.Companion.Green' but the error still persists. Is there…

CLINTON OGADA
- 1
- 3
-1
votes
1 answer
Draw bell curve in jetpack compose
I need help to create the following composable
Option
All I know is that the shape is a bell curve but I dont know how to achive this using canvas.
Thanks in advance

Shura
- 1