Step 1: First add FrameLayout and make facebook button visibility="gone" and add your custom button. Don't forgot to put .