Android EditText Transparent Background

前端 未结 11 1745
天涯浪人
天涯浪人 2020-12-05 09:33

I want to have a transparent background for Android EditText widget. How is that possible?

11条回答
  •  借酒劲吻你
    2020-12-05 09:53

    You can also do it programitically like this:

     TypedValue value= new TypedValue();
     getApplicationContext().getTheme().resolveAttribute(android.R.attr.selectableItemBackground, value, true);
    
      myButton.setBackgroundResource(value.resourceId);
    

提交回复
热议问题