android.R.anim may not have all constants?

by Hermes Pique » Fri, 20 Feb 2009 13:22:17 GMT


Sponsored Links
 Hi.

I'm using android-sdk-windows-1.1_r1.

I saw in some examples that android.R.anim has a lot of constants,
such as slide_in_right and push_down_in. However, in my android.jar I
can only see:

  // Field descriptor #8 I
  public static final int accelerate_decelerate_interpolator =
17432580;

  // Field descriptor #8 I
  public static final int accelerate_interpolator = 17432581;

  // Field descriptor #8 I
  public static final int decelerate_interpolator = 17432582;

  // Field descriptor #8 I
  public static final int fade_in = 17432576;

  // Field descriptor #8 I
  public static final int fade_out = 17432577;

  // Field descriptor #8 I
  public static final int slide_in_left = 17432578;

  // Field descriptor #8 I
  public static final int slide_out_right = 17432579;

If this is correct, how can I create a slide_in_right animation using
AnimationUtils.loadAnimation?

Thank you!

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



android.R.anim may not have all constants?

by Romain Guy » Fri, 20 Feb 2009 13:52:19 GMT


 Just use your own animation in your application. The ApiDemos show how
to create your own animation resources.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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


Sponsored Links


Other Threads

1. SendIntendException when sending an intent

Hello, I'm developing a widget which has a button that sends an intent
to an Activity. When I install it, it works fine several times, but
suddenly it stops working launching this stacktrace exception:

03-31 09:12:30.430: ERROR/RemoteViews(261): Cannot send pending
intent:
03-31 09:12:30.430: ERROR/RemoteViews(261):
android.content.IntentSender$SendIntentException
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
android.app.ContextImpl.startIntentSender(ContextImpl.java:640)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
android.widget.RemoteViews$SetOnClickPendingIntent
$1.onClick(RemoteViews.java:157)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
android.view.View.performClick(View.java:2449)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at android.view.View
$PerformClick.run(View.java:9027)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
android.os.Handler.handleCallback(Handler.java:587)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
android.os.Handler.dispatchMessage(Handler.java:92)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
android.os.Looper.loop(Looper.java:123)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
java.lang.reflect.Method.invokeNative(Native Method)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
java.lang.reflect.Method.invoke(Method.java:521)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-31 09:12:30.430: ERROR/RemoteViews(261):     at
dalvik.system.NativeStart.main(Native Method)

Neither of my classes are in the stacktrace, so I can't figure out
what is causing my app stop working.
Any ideas?

Thanks in advance.



-- 

2. How to test In-app billing without a device with Market >2.3.4

Hi,

How can I test my in-app implementation if I don't have any hw with
Market >2.3.4?

The only options I can see are
1. Find a new market for my android phone, but this is not available
anywhere... I'm using a custom rom so my market does not seem to auto-
update...
2. Install market on the emulator... this does not seem to be all too
easy, please advise.

Please advise how you expect developers to implement fully tested/
verified application to your platform with this lack of test
environment.
It is really poor that this cannot be tested on the emulator in a fast
and easy way. Google please fix this asap!!

BR,
/Rasmus

-- 

3. read multiple sqlite query from file

4. Papago + map Indonesia

5. Programmaticly adding playlists

6. Karena Harganya mirip, bingung pilih desire HD, Nexus S, Sonyericsson Arc

7. Clicking on grid item is not showing up full image view, handling onItemClick()