Results 1 to 1 of 1
  1. #1
    Join Date
    Jul 2016
    Rep Power

    Post Draw dynamic button with listener of its exact position in a layout

    To draw buttons dynamically by giving x, y,width,height from JSON response in a particular layout set clicklistener?

    I have tried to draw the buttons dynamically using canvas and i am not able to get the clicked position of buttons that is created dynamically in a particular layout in Android . I have attached a image of the buttons that are created dynamically using canvas. But i need a best solution to get the clicked position of the buttons that are created dynamically. Have attached the pic how the button are drawed using canvas.Thank You.
    Attachments Pending Approval Attachments Pending Approval

Similar Threads

  1. Replies: 1
    Last Post: 02-11-2013, 10:45 AM
  2. Replies: 2
    Last Post: 12-11-2011, 10:44 PM
  3. any layout that uses exact coordinates
    By alinaqvi90 in forum AWT / Swing
    Replies: 2
    Last Post: 08-13-2010, 01:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts