Android Question Add image into editext

Nkalampika

Active Member
Licensed User
hello, with this method we can add an image in an editext.text?

Dim cs As CSBuilder
cs.Initialize.Size(30).Typeface(Typeface.MONOSPACE)
cs.Append("B4A: ").Image(LoadBitmap(File.DirAssets, "b4a.png"), 40dip, 40dip, False).Append(CRLF)
cs.popall
label.text=cs

*
I want to do the same thing with an edittext
 

npsonic

Active Member
Licensed User
hello, with this method we can add an image in an editext.text?

Dim cs As CSBuilder
cs.Initialize.Size(30).Typeface(Typeface.MONOSPACE)
cs.Append("B4A: ").Image(LoadBitmap(File.DirAssets, "b4a.png"), 40dip, 40dip, False).Append(CRLF)
cs.popall
label.text=cs

*
I want to do the same thing with an edittext
Did you test it with EditText? It works just as good with EditText as it works with Labels.
Just replace label in your code with EditText and see your self.
 
Upvote 0
Top