How to inset edittext to load an image? It should be like in the vk application, see the example in the screenshot below. Thank you in advance.

lalala

  • Thank you for reducing the picture) how do you do it? So that I immediately do it myself, otherwise I did not find it, but I don’t look at the big ones myself)) - Maxgmer
  • one
    Simply add the appropriate letter to the end of the image address, but before the dot. I usually add m - Yuriy SPb ♦

1 answer 1

This is not a picture in EditText. This is a picture below it. Such things can be seen by turning on "show layout borders" in the developer settings on the device.

enter image description here

  • Thanks, now the question is, will it be necessary to produce any additional manipulations so that the image is in the foreground? - Maxgmer
  • @Maxgmer, did not quite understand the question. Do you mean that it doesn't go under the keyboard? .. - Yuriy SPb ♦
  • so that it is not under the white EditText canvas. Or will it be immediately visible? And how to find out where the text ends in order to calculate the position of the picture? - Maxgmer
  • If you are using LinearLayout vertical, then EditText will never block the image below if you also assign maxHeight or maxLines to it also - Yuriy SPb ♦