I am developing an app that retrieves contact image from contact database and set it to EditText as drawableLeft along with contact name
I am able to retrieve name as well as contact image as bitmap, but not able to set it as drawableLeft
Try this code:
BitmapDrawable drawableLeft = new BitmapDrawable(getResources(), yourBitmap);
mYourEditText.setCompoundDrawablesWithIntrinsicBounds(drawableLeft, null, null, null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With