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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -