Android Question Draw 3-10 points polygon

Discussion in 'Android Questions' started by herryj, Feb 8, 2015.

  1. herryj

    herryj Member Licensed User

    Hi, just wanna ask a library or built in lib that can able to create a polygon.

    PS:
    can I use the lib googleMapsExtras POLYGON types to create a polygon alone? without the googlemaps?
    I want it to display on the activity only.

    Looking forward to your responses.

    Sincerely
     
    Last edited: Feb 8, 2015
  2. klaus

    klaus Expert Licensed User

    First, a polygon needs at least 3 points :)!
    What exactly do you want to do with the polygon ?
    You can use a Canvas to draw a polygon.
     
  3. herryj

    herryj Member Licensed User

    Hi klaus,
    I got it and I was supposed to edit this post :)
    I used canvas to draw polygons,

    and as for this, I want to form an object made of polygons. :)

    Well, thanks anyway.
     
  4. klaus

    klaus Expert Licensed User

    Sorry, don't really understand.

    From your first post:
    If you draw with a Canvas onto the Activity you won't have an object.
    What do you want to do with the object ?
     
  5. herryj

    herryj Member Licensed User

    This is what i mean :)
    out from the polygons i've created, I was able to form the image attach.
    Screenshot_2015-02-09-00-16-35.png


    PS:
    Can I ask for a little idea.On how to do it, that if I drag the object in the specific part inside the red area. It will automatically fit in or snap in.
     
  6. klaus

    klaus Expert Licensed User

    :) OK.
     
  7. herryj

    herryj Member Licensed User

    PS:
    Can I ask for a little idea.On how to do it, that if I drag the object in the specific part inside the red area. It will automatically fit in or snap in.
     
  8. klaus

    klaus Expert Licensed User

    From your post #5, I understood that you solved what you wanted.
    You need to be much more clear on what you want to do, I still don't understand.
    What object are you speaking of ?
     
  9. herryj

    herryj Member Licensed User

    Sorry I confuse you, My apology.

    I already creates a polygons, and made a kind of object (object I mean is like boat, book, candle, etc.) out of it. And now what I want to do next is. I have this piece of shape(example a triangle), when I drag this triangle shape on the triangle part in (image attached in POST #5) those red area. This triangle shape will automatically fill in the triangle part of the image attach.

    Really sorry if confuse you then.
    my english is bad.
     
  10. klaus

    klaus Expert Licensed User

    Sorry, I have never done this kind of operation.
    Perhaps somebody else has more experience in this field.
     
  11. stevel05

    stevel05 Expert Licensed User

    Peter Simpson likes this.
  12. derez

    derez Expert Licensed User

    Are you doing a tangram game ? I wrote such a game long time ago, send me your email and I'll send it to you.

    upload_2015-2-8_22-57-43.png
     
    stevel05 likes this.
  13. RandomCoder

    RandomCoder Well-Known Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice