1. Download our Official Android App: Forums for Android!

Apps Draw in Text Box

Discussion in 'Android Development' started by 9Ate7, Jan 8, 2013.

  1. 9Ate7

    9Ate7 Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    33
    Joined:
    May 9, 2012

    May 9, 2012
    33
    0
    15
    I am wondering if there is a way to draw an image, or edit simple lines in a text box. The entire screen is a textView/ect and i would like to be able to write a sentence then draw an image and write again. By draw i think i would use the Canvas, so basically is there a way to include a canvas in a text view?

    Evernote does do this, but to edit an image/draw you need to open another app "Skitch", my goal is to try and do this without any extra apps.

    For example:

    Hello

    (canvas/editable graphical items)

    World
     

    Advertisement

  2. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    No, but why not just put a canvas behind a text view?
     
  3. 9Ate7

    9Ate7 Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    33
    Joined:
    May 9, 2012

    May 9, 2012
    33
    0
    15
    i could do that, if there a way to prevent the items on a canvas over lapping the text in the text view?
     
  4. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    if you place your textview on top of your canvas in your layout file, then it will always be on top, no matter what is rendered on the canvas.
     

Share This Page

Loading...