Issue
Is there is a way to change size of resource icon in button created with FancyButtons library https://github.com/medyo/Fancybuttons ?
In the documentation I see only how to change size of font icon.
My icon is raster png, so I can`t convert it to svg and font icon properly.
Thank you in advance.
Solution
Found answer here. It can be done programmatically:
mFbWeiXinLogin.setIconResource(R.drawable.umeng_socialize_wechat);
mFbWeiXinLogin.setIconPosition(FancyButton.POSITION_LEFT);
mFbWeiXinLogin.getIconImageObject().setLayoutParams(new LinearLayout.LayoutParams(50, 50));
Answered By - Oleh Liskovych
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.