android - Edittext: set right icon size -
i using next code set right icon: edittex.setcompounddrawableswithintrinsicbounds(0, 0, r.drawable.icon_valid, 0);
icon size 12*12 looks smaller.i need set 24*24 @ least. tried using:
drawable dr = getresources().getdrawable(r.drawable.somedrawable); bitmap bitmap = ((bitmapdrawable) dr).getbitmap(); drawable d = new bitmapdrawable(getresources(), bitmap.createscaledbitmap(bitmap, 24, 24, true));
but setcompounddrawableswithintrinsicbounds
gets input parameter int
not drawable
set dimensions dimens.xml file in res/values
android android-edittext
No comments:
Post a Comment