Hello, At First I want to say sorry that my English is not the best.
In my Android Project, I have a Canvas Shaped View.
My Question is.
Is it possible to use the Canvas shaped View as style of a Button?
Asked
Active
Viewed 53 times
-2

krepaski
- 3
- 1
-
Yes. You can http://stackoverflow.com/questions/19349155/how-do-i-add-a-button-to-canvas-without-letting-the-button-resize – rajmathan Feb 18 '15 at 14:37
-
This links to an answer for java.awt.Button using FlowLayout as a solution. Both do not exist in Android, so the link is probably not helpful in this case. – Micky Feb 18 '15 at 14:41
1 Answers
0
You could just use the view like a button by setting an OnClickListener on it. No need to use a dedicated Button object.

Micky
- 5,578
- 7
- 31
- 55
-
Glad I could help. Please consider accepting this as an answer to your question. – Micky Feb 18 '15 at 14:54