Make EditText behave as a TextView in code

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

    Make EditText behave as a TextView in code

    try this

            android:longClickable="false"
            android:clickable="false"    
            android:cursorVisible="false"
            android:editable="false"
    

提交回复
热议问题