K
K
Koshkasobaka2021-07-08 16:30:54
Android
Koshkasobaka, 2021-07-08 16:30:54

Is it possible to dynamically add images inside a note?

60e7097a1a6ce230959114.jpeg
The body of the note is an editText. Is there any way to add images from the gallery inside it? I saw this in my notes on my phone and really want to understand how to repeat it. So far, it is only possible to load the image outside the editTexta and into the ImageView already created in advance:

btAddImage.setOnClickKustener { val content = registerForActivityResulr(ActivityResultContracts.GetContent()) { imageUri: Uri? -> image.load(imageUri) } 
content.launch("image/*") }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Zagaevsky, 2021-07-08
@zagayevskiy

No, EditText can't do that. I think there is a custom view.

S
Sergey Rasputin, 2021-07-09
@Extilsit

Look at this application, maybe
https://4pda.to/forum/index.php?showtopic=1017677

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question