animation - Arranging buttons in a circle (Android) with lines connecting them -
i attempting create fragment android application have either buttons or imagebuttons programatically arranged in circle, lines drawn them center of view. however, have become stumped how this.
from understanding, can create custom view in can override ondraw() draw lines, cannot put buttons in way. can overlay custom view framelayout or like, not know type of layout use buttons can arranged in circle (and work various screen sizes).
furthermore, have ensure both drawn lines , buttons able animated (that is, instance, buttons , connecting lines can move off-screen @ same rate if 1 entity).
i have seen post, , similar do! : dynamically arrange buttons around circle . however, not quite have satisfactory understanding of answer, particularly how button can created in ondraw() onclick still functioning.
any suggestions appreciated!
i think circlelayout created dmitry-zaitsev may create want.
it has simple implementation below.
<ru.biovamp.widget.circlelayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" app:angleoffset="90.0"> <!-- add here views want --> </ru.biovamp.widget.circlelayout> 

second option creating rotating dialer
third option android-3d-carousel.

Comments
Post a Comment