Make EditText behave as a TextView in code

后端 未结 8 2366
暗喜
暗喜 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

    Just add an border to EditText : First Of all add an border.xml in Resources/Drawable

    
    
      
      
    
    

    Second step : add android:background="@drawable/border" to TextView

     
    

提交回复
热议问题