我在布局中有一个TextView:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAllCaps="true"
android:text="Hello"
/>
textAllCaps的效果很好,没有问题。但是当我尝试通过添加textIsSelectable使文本可选择时
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAllCaps="true"
android:textIsSelectable="true"
android:text="Hello"
/>
textAllCaps不起作用。似乎这两个属性无法正确地同时使用。你有什么建议,为什么会出现这种情况,如何使文本全大写且可选择(我感兴趣的是最清晰的方法,不是设置文本更改监听器和手动大写文本)。我将非常感激任何建议,谢谢。