how to remove button layout attributes in android code example
Example: imagesbutton how to set background
imageButton.setBackground(this.getDrawable(R.drawable.your_image));
imageButton.setBackground(this.getDrawable(R.drawable.your_image));