TextView.setAllCaps()相当于API比14年长? [英] TextView.setAllCaps() equivalent in API older than 14?
本文介绍了TextView.setAllCaps()相当于API比14年长?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
TextView.setAllCaps()开始作为API 14.什么是它相当于对老年人的API(例如13和下降)?
TextView.setAllCaps() started as of API 14. What is its equivalent for older APIs (e.g. 13 and lowers)?
我不能在较低的API找到这样的方法。也许是setTransformationMethod()负责这一对旧的API?如果是的话,我应该如何使用它呢? TextView.setTransformationMethod(新TransformationMethod(){...
是一个有点混乱。
I cannot find such method on lower APIs. Is maybe setTransformationMethod() responsible for this on older APIs? If yes, how should I use it? TextView.setTransformationMethod(new TransformationMethod() {...
is a bit confusing.
推荐答案
试试这个:
textView.setText(textToBeSet.toUpperCase());
这篇关于TextView.setAllCaps()相当于API比14年长?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文