Questions tagged [composable]
160 questions
2
votes
1 answer
How to setup a Composable text field to autofill address with keyboard?
I would like to setup a composable input text field, which when on focused, it will show the suggested address on the keyboard similar to how the keyboard is able to show suggested payment card info. I have already enabled autofill on my phone, but…

gongie
- 23
- 2
2
votes
1 answer
Screen flickering on Android Studio emulator
I am developing an Android app with composable and whenever I run the emulator the screen of it flickers like dead pixels on a real android phone
I tried deleting and re-adding emulator but still it persist.
I am using Pixel XL with API 33 (ABI…

Gaurav
- 147
- 1
- 10
2
votes
1 answer
start useStore() from a composable after a click event
I have a simple Vue.js code where when a user is able to trigger commands from a BLE device. So i create a "useSession" composable, that connects to the IoT device, to the gateway, and to the server, and within each, push data to the store, mainly…

Imnotapotato
- 5,308
- 13
- 80
- 147
2
votes
1 answer
ClickableText Composable font color not adjusting to dark mode
I implemented a ClickableText composable following the explanations in the documentation. However, while all regular Text composables within my app properly change their color to black when Android is in light mode and to white when the system is in…

BenjyTec
- 1,719
- 2
- 12
- 22
2
votes
1 answer
Vue 3 composable performance issues?
In the following example from the vue 3 documentation, we're creating a composable to track the mouse movement. https://vuejs.org/guide/reusability/composables.html#mouse-tracker-example
export function useMouse() {
const x = ref(0)
const y…

The Sloth
- 367
- 5
- 18
2
votes
0 answers
My computed property is not updating (composables)
I'm starting to use Vue 3 and composables. However, it seems that the computed properties that depends on variables (or computed properties) in other composables are not updating.
This is my first composable:
import { ref, computed } from…

Rich
- 406
- 6
- 12
2
votes
1 answer
Error message; Cannot access class 'androidx.compose.ui.Alignment.Horizontal'. Check your module classpath for missing or conflicting dependencies
I am making a QR Code Scanner app using Jetpack compose. But when I am trying to use Column, the composable function then the compiler is giving me this error:
Cannot access class 'androidx.compose.ui.Alignment.Horizontal'. Check your module…

Akr
- 117
- 2
- 10
2
votes
2 answers
Jetpack Compose: Mimicking spinner.setSelection() inside of a DropDownMenu
The use case is that you have 10s or 100s of items inside of a dropdown menu, the dropdown options have some ordering - as with number values or alphabetical listing of words - and selections are made in succession.
When the user reopens the menu,…

D. Kupra
- 343
- 1
- 9
2
votes
0 answers
Is there any method/API available to access view hierarchy of activities created using Jetpack Compose widgets?
I would like to access the complete view hierarchy of an Activity. The native Views are easily accessible from their parent view using parent.getChildAt(int index) method. I want to access the same for an activity that uses Composable Widgets.
For…

Yashwardhan
- 41
- 2
2
votes
2 answers
Accessing ref values from composable
Here is my Vue3 app code:
{{ names_data }}