Status Update
Comments
cu...@google.com <cu...@google.com>
ap...@google.com <ap...@google.com> #2
Thanks for your ticket.
-
colors (custom bg colors)" - you could use
backgroundColor
parameter to change it -
borders (no border) - yes, we've been considering the possibility to have optional or even customisable bottom indicator for TextField.
-
shape (already possible)
-
animation/position of label (disable animation, could be done by empty label and composition) - this might create unnecessary complexity for the TextField API. 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).
-
leading/ending text (already possible, property name misleading (leadingIcon)) - these are named to be consistent with the Material Design terminology so should not be misleading (
https://material.io/components/text-fields ). I wouldn't expect developers to put text inside the 'leadingIcon' as its baseline won't be aligned with the input's baseline.
Please also keep in mind that you can use the BaseTextField or CoreTextField that provide basic edit text functionality to create any custom text field on top of them.
re...@infinum.com <re...@infinum.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
Description
If this is a bug in the library, we would appreciate if you could attach:
BUILD INFO
STEPS TO REPRODUCE [Be as specific as possible please]
EXPECTED RESULTS
I expect available hardware for these devices because they do have a Fingerprint sensor and they do classify as BIOMETRIC_STRONG because if run Biometric authentication without any set authenticators the internal lib will set the authenticator to BIOMETRIC_STRONG since I have a crypto object initialised and everything works as expected. The method that is responsible for setting the authenticator to strong is
getConsolidatedAuthenticators(@NonNull BiometricPrompt.PromptInfo info, @Nullable BiometricPrompt.CryptoObject crypto)
inside the first else block:OBSERVED RESULTS
I get a BIOMETRIC_ERROR_HW_UNAVAILABLE inside the BiometricManager class due to the fingerprintManager being null:
the result does not make sense to me because I do have a device which have the appropriate strong classified HW based on the behaviour in the EXPECTED RESULTS section. The fingerprint implementation with the CryptoObject worked fine on 1.0.1 version of the library.
NUMBER OF TIMES YOU WERE ABLE TO REPRODUCE (e.g. 3/10)
10/10