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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -