Comments (3)
@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
from progressbutton.
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
}
}
from progressbutton.
@rodolfoizidoro should be fixed in 1.0.2. Please re-open the issue again if not
from progressbutton.
Related Issues (20)
- Question: Use with data binding HOT 2
- defective api for custom view HOT 1
- JAVA Usage? HOT 2
- Migrate to AndroidX ? HOT 1
- [Question] - Image instead of Text HOT 1
- cant set background drawable with . stroke & shape & radius ??? HOT 1
- Memory leak HOT 4
- Progress Bar Stuck Issue HOT 3
- How to implement by using Java HOT 5
- Can I databind textRes and progressState? HOT 1
- How to check if progress is displayed?
- Change progress drawable
- button text is not showing after change visibility to GONE and back to VISIBLE
- Progress Loader is not working when we create refrence of button
- Can't bind AppCompatImgeButton HOT 1
- Bintray Shutting Down May 2021 -- Host artifacts elsewhere? HOT 5
- How do I use this button at XML? HOT 1
- RTL Support
- How to change colors of the loading drawable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from progressbutton.