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. View with both text and progress bar

I need to pass a view with both TEXT and a PROGRESS icon.  can this be
done with a single view.???

Here I can pass only single view , so looking for a view which can
have both TEXT and PROGRESS ICON.


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

2. Make some part of an image transparent: Cut a hole to see the background image

Hi All,

I have a scenario at hand, for which I need a solution as soons as
possible. Here is the problem statement:

I need to show an image overlapped by some other image, 100%. The
condition is that the picture in background should also be visible
through the foreground picture but only through some part of the
foreground picture.
Please try to visualise how it should look like. There is a picture
shown and in middle of it, there is a transparent area through which
the background image is visible.
I knew that I can make an image transparent and make the background
image visible but here I want only some part of the foreground image
to be transparent so that it looks like sort of picture frame applied
to the background puicture.
And for those who read the statement carefully would have understood
that the ultimate thing desired is to have a picture frame applied to
the picture.
Can anyone please suggest a good way to do this.

Thanks
Raman
--~--~---------~--~----~------------~-------~--~----~

3. Fullscreen IME problem

4. Mapview deprecated

5. mapview and list of images

6. Nice Opportunities for mobile application developers

7. LocationManager.getLastKnownLocation("gps") returns null instead of location object