Chor Sipahi Chor Sipahi - 1 year ago 67
Android Question

Use android:EditText as label

I want to set some text in EditText type fields. I want to do this while loading the activity. And then I don't want user to make any changes to it. Can I set EditText type boxes to non-editable mode? Does there exists any other element which could solve my purpose?

Answer Source

A TextView sounds like what you want; you can call setText() on them.

For EditText itself you could call this version of setText(), and set the buffer type to NORMAL instead of EDITABLE.