Make EditText behave as a TextView in code

后端 未结 8 2415
暗喜
暗喜 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:01

    EditText is a subclass of TextView - so except for editing, what applies to TextView applies to EditText as well.

提交回复
热议问题