Fixed
Status Update
Comments
za...@google.com <za...@google.com> #2
Thanks for filing this.
This is a fair request and I think it will be done in the near future.
We already in progress of doing this for Buttons, so selection controls are coming some day :)
wv...@google.com <wv...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 62eb7deccbe3896c84e04000361bbbc7a69909af
Author: Louis Pullen-Freilich <lpf@google.com>
Date: Wed Sep 16 20:32:07 2020
Exposes InteractionState parameters in stateful Material components, such as Slider and Switch
This allows hoisting the InteractionState above the component, to control how a component appears in different Interactions, or manually setting states for a given component, such as to make a RadioButton appear pressed when a ListItem containing a RadioButton is pressed.
Bug: b/168025711
Bug: b/167164434
Test: ./gradlew updateApi
Relnote: "Exposes InteractionState parameters in stateful Material components, to allow hoisting the state and reading / controlling the state."
Change-Id: Iaca5f65f8132a6f2b45d461001fa740d08b6bacb
M compose/material/material/api/current.txt
M compose/material/material/api/public_plus_experimental_current.txt
M compose/material/material/api/restricted_current.txt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/Checkbox.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/IconButton.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/Menu.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/OutlinedTextField.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/RadioButton.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/Slider.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/Switch.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextField.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt
https://android-review.googlesource.com/1428672
Branch: androidx-master-dev
commit 62eb7deccbe3896c84e04000361bbbc7a69909af
Author: Louis Pullen-Freilich <lpf@google.com>
Date: Wed Sep 16 20:32:07 2020
Exposes InteractionState parameters in stateful Material components, such as Slider and Switch
This allows hoisting the InteractionState above the component, to control how a component appears in different Interactions, or manually setting states for a given component, such as to make a RadioButton appear pressed when a ListItem containing a RadioButton is pressed.
Bug:
Bug:
Test: ./gradlew updateApi
Relnote: "Exposes InteractionState parameters in stateful Material components, to allow hoisting the state and reading / controlling the state."
Change-Id: Iaca5f65f8132a6f2b45d461001fa740d08b6bacb
M compose/material/material/api/current.txt
M compose/material/material/api/public_plus_experimental_current.txt
M compose/material/material/api/restricted_current.txt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/Checkbox.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/IconButton.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/Menu.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/OutlinedTextField.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/RadioButton.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/Slider.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/Switch.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextField.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt
ro...@veeva.com <ro...@veeva.com> #4
Hi is there an ETA for the next release containing this patch?
za...@google.com <za...@google.com> #5
The fix is included in the next beta release (April 2024), which will be fast followed by stable.
Description
Component used: androidx.glance:glance-appwidget
Version used: 1.0.0-rc01
Devices/Android versions reproduced on: Emulator (any API level)
I'm trying to update the glance-experimental-tools project to the latest version of Glance and Compose but, after the release of Glance 1.0.0-beta01, the https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-beta01
@Composable
Content
was removed, in favor of the non Composable functionprovideCotent
:This change unfortunately breaks the glance-experimental-tools completely, since now it is not possible anymore to generare a snapshot of the Widget .