I am trying to add a bitmap image inside a textview which is encoded and stored in DataBase useing base64 encode. i am using the following code
byte[]img= Base64.decode(cur.getString(2),Base64.DEFAULT);
Drawable qDrawable = new BitmapDrawable(ctx.getResources(),BitmapFactory.decodeByteArray(img,0,img.length));
question.setCompoundDrawablesWithIntrinsicBounds(null,null,qDrawable,null);
this code work good but
the problem is the image width doesn't fit textview width
I tryied to use ScaleType in xml but the textview doesn't have this property like imageview so how I can fix this issue with textview