SubscribeSubscribe with Androidlift to get new post on mail.

Draw Text | How to Draw Text and Shapes on Image Android

Draw Text

Draw text if you are interested in android programming and have a creative mind you can create a simple image editor for android for your own personal use:-

  • This program is concentrated on drawing text on a resource image and saving it on sd-card.
  • We can undo all editing at any time if we do not want so.
  • Drawing text can be change any time.
  • You can ‘Try’ it your self and change its functionality according to your requirements.
  • Easy to implement and supports all devices.
  • Output :

draw text on image android
draw text on image android

 

Activity_Main.java

 

You have to put a image in mipmap folder on which you have to edit. i have used “sample.jpg” file.
You can take any image.

The activity_main.xml is as follows :-

 

AndroidManifest.xml

You Have to add “WRITE_EXTERNAL_STORAGE”user permission to AndroidMainfaist to save image to sd-card.
images would be saved in folder  – ‘/sd-card/txt_images/

Thanks Have Good Day ..!

(22)

  • Ganesh

    It’s helps me a lot ….. thanks androidlift…

    • androidlift

      Thanks Ganesh..!

  • its a very useful to us thx to androidlift….

    • androidlift

      Thanks Kiran…!