I need to create a circle that rotates and contains data for my application. Should I create a customized object for my application or should I make a in-application widget?
While on the topic, how do you refer to a widget within an application instead of a stand alone widget for the android desktop?
This is a rotatable LinearLayout that you can put everything in it and you can rotate it by degree if you customize it. use rotate() method to rotate it and…
enjoy! 😉
Update:
add this code to your xml layout and put your Views like ImageView or another LinearLayout in it :
in onCreate() method:
in onClickListener of a button:
Update2:
You can use an animation for rotation before real rotation (
llParent.rotate();). it needs an animation layout like rotate_dialog.xml:and in your code: