Open StephaneBg opened 4 years ago
Also related: When I try to set a font family in HintTextAppearance. It doesnt work. Is there any reason?
<style name="hintStyle" parent="TextAppearance.Design.Hint">
<item name="android:fontFamily">@font/xyz</item>
<item name="android:textColor">@android:color/holo_red_dark</item>
<item name="android:textSize">12sp</item>
</style>
Material Library version: Material Android Library version 1.1.0-alpha10
Also:
HintTextAppearance with textAllCaps doesn't work #586
Also related: When I try to set a font family in HintTextAppearance. It doesnt work. Is there any reason?
<style name="hintStyle" parent="TextAppearance.Design.Hint"> <item name="android:fontFamily">@font/xyz</item> <item name="android:textColor">@android:color/holo_red_dark</item> <item name="android:textSize">12sp</item> </style>
Material Library version: Material Android Library version 1.1.0-alpha10
also not working in 1.1.0-beta02
Jesus christ this library is a steaming pile of shit. Nothing is working.
The same bug. Any news when this will be fixed?
Seems like the fontFamily
of the inner TextInputEditText
is also applied to the hint, even when the outer TextInputLayout
sets it to something else using hintTextAppearance
.
If you write a custom typeface override to reuse all over the project programatically, it doesn't render correctly
class FontOverrideEditText @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : TextInputEditText(context, attrs, defStyleAttr) {
init {
typeface = ResourcesCompat.getFont(context, R.font.your_font)
}
}
Is an issue on (current latest) 1.3.0-alpha01
still.
At this time, we can't use TextInputLayout
because of the issue pointed out in #586 specifically. Use requires a series of focus, error, and text change listeners to determine the appearance of the TextInputLayout
hint text.
Looks like hintTextAppearance
doesn't work because it's always overridden by the inner edit text text style. Is it expected behavior, or it's something that will be fixed?
A temporary workaround can be setting hint text appearance after the view layout
textInputFieldView.doOnLayout { textInputFieldView.setHintTextAppearance(R.style.TextInputFieldHintTextAppearance) }
Seeing the same problem would be great to see this fixed.
The bug still exists in 1.4.0-alpha02
. ~1.5 years since the first report. Sometimes this library seems like it's been abandoned by its creators. 🙁
@leticiarossi and @ymarian you seem to be quite active on this component. Any news about this bug? 🙂
the app compat widgets the material components widgets should we wait for 3rd iteration of UI elements library which finally would work?
textAllCaps for hint does not work still Any suggestions?
Typeface is not applied with textPassword inputType -> still appears on 1.5.0
I have similar problem even now. I want to make hint's font poppins and edittext's poppins_semibold but two of them became poppins_semibold.
Description: Typeface is not applied with textPassword inputType.
Expected behavior: When android:inputType="text|textPassword|textNoSuggestions" (incorrect behaviour)![Screenshot_1568119309](https://user-images.githubusercontent.com/1014339/64614901-bc2de880-d3d9-11e9-8c6e-ac6375e285f2.png)
When android:inputType="text|textNoSuggestions" (expected behaviour)![Screenshot_1568119497](https://user-images.githubusercontent.com/1014339/64614915-c2bc6000-d3d9-11e9-904b-e6a725cbd4ee.png)
Source code:
Android API version: All
Material Library version: 1.0.0
Device: Emulators