Make EditText behave as a TextView in code

后端 未结 8 2384
暗喜
暗喜 2020-12-29 13:39

How to make an EditText look like a TextView that is done in Java but not in XML..

I have seen how to do it using xml file like

style=\"@android:styl         


        
8条回答
  •  暖寄归人
    2020-12-29 14:12

    add below two line into your edittext xml:

    android:focusable="false"
    android:inputType="none"
    

提交回复
热议问题