Status Update
Comments
so...@google.com <so...@google.com> #2
Branch: androidx-master-dev
commit 23a7d960caf43390a554700d3c56ada189a9d10e
Author: Louis Pullen-Freilich <lpf@google.com>
Date: Mon Aug 10 15:11:36 2020
IconButton / IconToggleButton API scrub
Test: ./gradlew updateApi
Bug:
Bug:
Relnote: "Adds enabled parameter to IconButton, and reorders parameters in IconToggleButton"
Change-Id: I0a9419b1a631cadad451395302ad87b7f9214f96
M ui/ui-material/api/current.txt
M ui/ui-material/api/public_plus_experimental_current.txt
M ui/ui-material/api/restricted_current.txt
M ui/ui-material/src/commonMain/kotlin/androidx/compose/material/IconButton.kt
ap...@google.com <ap...@google.com> #3
Branch: androidx-master-dev
commit 87bdc09422bd32c063a93efc0078ba5b788497af
Author: Anastasia Soboleva <soboleva@google.com>
Date: Tue Sep 08 10:47:53 2020
Do not apply alpha to background color
Before this change: when developer passes some color to the background color parameter, we would apply 0.12 transparency alpha to it. This behaviour is not expected and made customisation harder
Test: TextFieldTest
Relnote: "Textfield's background color does not implicitly apply transparency alpha anymore. Instead, any color provided through the backgroundColor parameter will be applied directly."
Bug: 167951441
Change-Id: Iecee9f535b699acf684948fa99ec64217ea3f249
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/androidAndroidTest/kotlin/androidx/compose/material/textfield/TextFieldTest.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextField.kt
sk...@gmail.com <sk...@gmail.com> #4
I'm ok with writing my own styled implementation, but currently using BaseTextField without published TextFieldScroller is really cumbersome. Could you please make that class public?
Also IconsWithTextFieldLayout could be somehow decomposed and published, since it takes care of a lot internals of text field.
so...@google.com <so...@google.com> #6
Thank you for you suggestion. We're looking towards making the scrolling behaviour out of the box in CoreTextField.
Meanwhile, you could use Modifier.horizontalScroll
to achieve the same behaviour because at the moment the TextFieldScroller does not add any "magic". Though it won't be the case in the future.
so...@google.com <so...@google.com> #7
Scrolling behaviour is already a part of the lower-level text fields.
We've also exposed the TextFieldColors object into material text fields so changing colors of different parts of the text field should be easier now.
For prefix/suffix support
va...@qvik.fi <va...@qvik.fi> #8
Hi,
Alternatively, since the label parameter has become optional, you can leave it null and have your own label placed on top (depending on the animation of that label in your design).
I would rather use the default label for accessibility reasons, instead of making my own. I cannot see a way to make
[Text]
[TextField]
to be announced like a TextField with a label.
Description
I'd like to create own branded TextField.
Properties I need to change:
Attaching a visual what would be nice be able to achieve.