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. How come PICK doesn't seem to work on Contacts.CONTENT_URI?

I have used the following code

public static void invokePick(Activity activity)
{
Intent pickIntent = new Intent(Intent.ACTION_PICK);
pickIntent.setData(Contacts.CONTENT_URI);
activity.startActivityForResult(pickIntent, 1);
}

I get an exception that no activity found matching this criteria.

Thanks for your help
Satya

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

2. How to fill an autocomple with information from a database query

Hi all!!

I want to create an autocomplete that gets its information from a
database query.  I have a database method that returns the Cursor
(with name, value and date fields) I need, but I dont know how to
actually fill it, so it works as expected as the Contacts API demo:
http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/AutoComplete4.html

I want the autocomplete to show the name field from the database
query.

I read the following thread, but still haven't been able to figure it
out.

3. WPA support

4. Why a custom view doen't visible?

5. ImageView & automatic sizing

6. "adb devices" on the G1

7. Creating an email or MMS with an image.