How to have a transparent ImageButton: Android

后端 未结 19 1950
庸人自扰
庸人自扰 2020-11-27 08:56


        
19条回答
  •  执念已碎
    2020-11-27 09:44

    This is programatically set background color as transparent

     ImageButton btn=(ImageButton)findViewById(R.id.ImageButton01);
     btn.setBackgroundColor(Color.TRANSPARENT);
    

提交回复
热议问题