RotateAnimation - Stopping and starting again after every rotation

by Nithin » Mon, 29 Mar 2010 16:09:59 GMT


Sponsored Links
 Hi,

I am rotating a view using rotateAnimation with this code
new RotateAnimation(0, 360, w / 2, h / 2);
I want to rotate this view infinitely, so i put
setRepeatCount(RotateAnimation.INFINITE);

But the problem is after every one complete rotation, its stopping and
starting again, means by default rotateAnimation have
AccelerateDecelerateInterpolator(). I feel because of this. So if i
put setInterpolator(null), its throwing null pointer exception. How to
solve this.

I want to rotate my view without any lag.

Nithin



--



Other Threads

1. Android & North America 3G

As interested as I am in Android on my next smart phone, there doesn't
seem to be one available with North American 3G (ie, UMTS 850/1900).
Which will be the first to have Android ported?  HTC Touch Pro, SE
Xperia X1a, Toshiba TG01 ... and feel free to before & after WMC'09.

TIA and cheerios from the Avalon Peninsula, Newfoundland Canada  :)

--~--~---------~--~----~------------~-------~--~----~

2. Backlight adjustment on Eee PC and other platforms

Current Android code for backlight adjustment do not work properly for
systems other than G1. This is mainly because:

1) The corresponding sysfs file changed. In "mydroid/hardware/
libhardware/power/power.c", LCD_BACKLIGHT is hard coded to "/sys/class/
leds/lcd-backlight/brightness". While it should be "/sys/class/
backlight/eeepc/backlight/brightness" for Eee PC.

2) The backlight range is assumed to be from 0 - 255 as in "mydroid/
packages/apps/Settings/src/com/android/settings/
BrightnessPreference.java". While it should be from 0 - 7 for Eee PC.

For 1), we can use a property to set the value for the LCD_BACKLIGHT,
instead of hard code it.
For 2), we can check sysfs file "max_brightness" to get the max
backlight level.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How to retrieve current keyboard configuration (without configuration changes)?

4. How to remove app from the Market

5. How to stop an Activity

6. Android emulator colour format

7. Problem with sound on Notifications on Emulator