SyntaxFix
Write A Post
Hire A Developer
Questions
Try like this
ImageButton imagetrans=(ImageButton)findViewById(R.id.ImagevieID); imagetrans.setBackgroundColor(Color.TRANSPARENT);
OR
include this in your .xml file in res/layout
android:background="@android:color/transparent