android - EditText textAllCaps not working with textIsSelectable -
i have textview in layout:
<textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textallcaps="true" android:text="hello" />
textallcaps works good, no problem. when try make text selectable adding textisselectable
<textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textallcaps="true" android:textisselectable="true" android:text="hello" />
textallcaps not working. seems these 2 attributes can't work properly. have suggestions why happens , how make text both caps , selectable (i'm interested in clear way, not setting text change listener , capitalizing text manually). i'll appreciate suggestions, thank you.
can try in activity
:
edittext.setfilters(new inputfilter[] {new inputfilter.allcaps()});
Comments
Post a Comment