Question: how to change the background color of button in android?
Answer: change background of button. <Button. android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawable="@drawable/bg.png" /> Use transparent png for your button. For changing textcolor of button. Button button = findViewById(R.id.yourbutton);