How can I draw a line using canvas to connect two buttons in android ?
If I create the button in the activity class and draw the line in the view, and do setContentView(my view class obj), the buttons are not visible.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I had a same problem. you can add these lines
Don’t set your setContentView to view object. set it to layout. then add these lines.
Hope it works.