Closed rodolfoizidoro closed 5 years ago
@rodolfoizidoro Thanks for reporting the issue. After a quick investigation seems that it's a "feature" of newer Android API versions that ignores any text spans if textAllCaps is set to true. I think the only solution would be to replace AllCapsTransformationMethod to custom one in runtime. I believe I can fix it soon
Okay @razir , I'll be waiting, so far the solution I found was this:
I create a custom view button, to set isAllCaps = false and i do toUpperCase in text Button.
It`s working for me
class GNButton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : MaterialButton(context, attrs) {
val label: String = text.toString().toUpperCase()
init {
isAllCaps = false
text = label
}
fun showProgress() {
showProgress {
progressColor = currentTextColor
gravity = DrawableButton.GRAVITY_CENTER
}
isEnabled = false
}
fun hideProgress() {
hideProgress(label)
isEnabled = true
}
}
@rodolfoizidoro should be fixed in 1.0.2. Please re-open the issue again if not
With textAllCaps = true the progressCircle not working in api 22
@razir