The new Facebook SDK for Android (v4.0) that was released recently caused strange behavior for a customized LoginButton I\'m using. Below is a comparison of how the same XML
i faced the same issue and i solved it by setting the padding and the drawables in java code like this:
authButton.setPadding(0, myTopDp, 0, myBottomDp);
authButton.setCompoundDrawablePadding(hostActivity.getResources().getDimensionPixelSize(R.dimen.fb_margin_override_textpadding));
authButton.setCompoundDrawablesWithIntrinsicBounds(myFbResource, 0, 0, 0);
or if you use your image as drawable
authButton.setCompoundDrawablesWithIntrinsicBounds(myFbDrawable, null, null, null);
I believe the OnPostCreate method is not required.