[android-developers] View animation cannot repeat
I have tried to load an animation xml to animate an ImageVIew. I set the animation to repeatMode RESERVE and set the repeat count to INFINITIE. However, it just stops after the it completes. My animation is below, I just want the view to go from left to right and then come back to left repeatedly. set xmlns:android=http://schemas.android.com/apk/res/android; android:repeatCount=infinite android:repeatMode=reserve translate android:fromXDelta=0% android:toXDelta=110% android:duration=1/ /set And below is my code //Animation variable ImageView animation_drawable_00, animation_drawable_01; Animation animation_set_00; private void init_animation() { animation_drawable_00 = (ImageView) findViewById(R.id.schedule_cloud_animation); animation_drawable_01 = (ImageView) findViewById(R.id.schedule_apple_animation); animation_set_00 = AnimationUtils.loadAnimation(this, R.anim.schedule_cloud_animation); animation_drawable_00.startAnimation(animation_set_00); } Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: View animation cannot repeat
For more information: My imageview go from left to right and I want to come back from right to left. However, it just go back to the original position instantly. On Sunday, 6 April 2014 22:28:19 UTC+8, Booker wrote: I have tried to load an animation xml to animate an ImageVIew. I set the animation to repeatMode RESERVE and set the repeat count to INFINITIE. However, it just stops after the it completes. My animation is below, I just want the view to go from left to right and then come back to left repeatedly. set xmlns:android=http://schemas.android.com/apk/res/android; android:repeatCount=infinite android:repeatMode=reserve translate android:fromXDelta=0% android:toXDelta=110% android:duration=1/ /set And below is my code //Animation variable ImageView animation_drawable_00, animation_drawable_01; Animation animation_set_00; private void init_animation() { animation_drawable_00 = (ImageView) findViewById(R.id.schedule_cloud_animation); animation_drawable_01 = (ImageView) findViewById(R.id.schedule_apple_animation); animation_set_00 = AnimationUtils.loadAnimation(this, R.anim.schedule_cloud_animation); animation_drawable_00.startAnimation(animation_set_00); } Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] How to access and write to an Allocation in Renderscript
Hi, all. I am now developing a renderscript based application and I want to use it to do filter on images. I would like to ask if I can have a function to access a specific pixel of an allocation which is a bitmap? I can use rsGetElementAt() to read but any set function? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Please help about Renderscript compute
Hi, all. I am a newbie of Android development and I am developing an app for image processing and I ported some filters to android. However, the performance is not good and I read some articles pointing renderscript is one of the way to boost performance. I read some codes but I find it too difficult for me to understand. I have a edge detection filter implemented in JAVA and I would like to port it to RS. I have read the Helloworld Compute code and I can see the root() is processing one pixel each time and unpack it into a float4 variable. However, in my code, I need to read not only one pixel data but several to calculate the result and I use 2D array to store the values. How can I implement this in RS, computing more than one pixel in the same time? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en