In Android Studio, I want to create an equilateral triangle inside a simple activity using 3 seek-bars as you can see in the following image:
I want to know if it is possible to do this by using XML.
In Android Studio, I want to create an equilateral triangle inside a simple activity using 3 seek-bars as you can see in the following image:
I want to know if it is possible to do this by using XML.
If you really wanted to do this I'd suggest you subclass ViewGroup
and override the onDraw()
method.
Take each child (the three SeekBar
views) and apply a rotation on each of them based on what index the child view is.
Honestly though you're trying to force the existing UI items to do something they're not really designed to do. You're better off building a completely custom View
from scratch.