I'm not sure if this is the right place to post Android app development questions. Sorry if I have picked the wrong section.
I have an animation that is set to a ListView by:
listView.setLayoutAnimation(LayoutAnimationController controller)
This happens in the body of instantiateItem(View collection, int position), which is in a class that is extending PagerAdapter.
I am unable to set mPager.setOffscreenPageLimit(0) because of the minimum limit of 1, so there is always at least one offscreen page.
The problem is that this offscreen page will not play the animation when I swipe to that page.
How can I make it so that my animation will play every single time, even when I am switching to a cached offscreen page?
Thanks to anyone who can help!
Related
Hi,
I included a WebView in my activity and load some Javascript in it which is then going to get data from an external website.
This works and displays fine but the problem is that my activity doesn't scroll when the WebView is done loading so I san't see the bottom of the WebView such as all the other Views I put below this. Any idea os how I should handle this ?
Cheers.
Do WebViews have a scroller built in? Might need to put a ScrollView around it?
Thanks, I used a ScrollView around the WebView and it worked. The WebView has a scroll built-in but it was the main layout that had not.
I have added youtube & market widgets to home screen. The small pages of the widgets moves beautifully but it takes long time to move automatically. I mean is there any time settings for the page flow.
Hey guys,
What's the difference between Window Animation scale and Transition animation scale? I set the window animation scale to 5 to see what's the difference but I cannot really tell?
Window is how fast the popups for things like as a example notification choosing, transition is going from menu to menu(with animations turned on)
1x is normal speed, 0.5 is twice as fast and 10 is 10 times as slow
Sent from my ice cream powered Nexus S
Played with window animation and it seems that its not used as much as the transition animation.
Sent from my Nexus S 4G using XDA App
rasengan82 said:
Hey guys,
What's the difference between Window Animation scale and Transition animation scale? I set the window animation scale to 5 to see what's the difference but I cannot really tell?
Click to expand...
Click to collapse
When setting the value lower (number wise) the animations are done faster, such as windows coming in and out of view etc (doesn't effect scrolling) I think home scrolling is effected though
When setting the value higher (number wise) the animations are presented alot slower, I set the value to 5 that you were using, from the Default (1), and all the animations were HELL! slow haha! Painful to use, felt boggy
Transition Animation numbers effect when windows come in and out of view such as opening settings, applications etc
The window animation is the windows "inside windows" that come in and out of view, such as if you set window animation to 10, and then go to the home page and press your settings button so it displays "Add, Wallpapers, Search, Widgets" etc, it opens hell slow
As well as if the value of Window Animation Scale is 10, when you get out of everything and go back into it to change it to 1 (Default) again, the window that opens that shows x.5 | x1 | x1.5 | 2 | 2.5 etc opens heaps slowly!
That's what the difference is
Show transition animation
Hi all,
How can i enable back the animations?
I played a little with all the options (x1, x0.5, x10 etc) just to see the differences. Then I selected the first option ("none"/"off") for Windows animation scale and Transition animation scale and then these 2 options became inactive. I cannot enable them back. I have an HTC One V.
Please advice.
tomitza07 said:
Hi all,
How can i enable back the animations?
I played a little with all the options (x1, x0.5, x10 etc) just to see the differences. Then I selected the first option ("none"/"off") for Windows animation scale and Transition animation scale and then these 2 options became inactive. I cannot enable them back. I have an HTC One V.
Please advice.
Click to expand...
Click to collapse
me too, using htc one v, i can't turn it back on though have reset it to factory default both from the power button and volume down while booting, or from the storage factory data reset setting.
i contacted HTC support but they simulated my problems and still be able to turn the windows animation scale and transition scale back on after being switched off.
Anyone know what "Animator duration scale" in the Developer options settings is?
I'd like to know, too
Seems even google doesn't know since I haven't found the information despite googling for some time.
Since transition and window animations are covered by the other options I can only assume it affects widget animations or something.
clankfu said:
Anyone know what "Animator duration scale" in the Developer options settings is?
Click to expand...
Click to collapse
This animation is when you press the app tray button.
However, you may change this option and notice it has no effect! Fine, call me a liar. Seriously though...
The reason it will *appear* to have no effect is because the launcher will need to be restarted.
Just set it to .5 or off if you want your app tray to pop up MUCH faster.
I assume this has no effect on custom launchers.
bunklung said:
This animation is when you press the app tray button.
However, you may change this option and notice it has no effect! Fine, call me a liar. Seriously though...
The reason it will *appear* to have no effect is because the launcher will need to be restarted.
Just set it to .5 or off if you want your app tray to pop up MUCH faster.
I assume this has no effect on custom launchers.
Click to expand...
Click to collapse
I was looking for this too, and did not find any answer, so I tried to set Animator duration scale to 10x and result is that this is let's say in app animation. In camera app it's animation of hiding settings buttons etc.
Truth is that an app has to be restarted to take effect. Just press recent apps and swype application , you're testing on away.
You can try it or watch video on YT http://youtu.be/Qot4n0EV1SE
hope this helps.
It changes the speed of certain apps animation and some system animation. Keeping it off or lower will increase the speed of animation.
video-https://youtu.be/jAlH2BxJhBM
Does anyone know how to disable that animation?
i check all setting and don't have find this "function" (sorry for bad english ahah)
Go to Developers options and set window animation scale, transition animation scale, and animator duration scale to zero. That should do it, I guess.
It's not an animation. More like a screen that pops up and says something along the lines of "battery optimized and boosted, 200 ram released"
It is adware. Some app you installed recently is causing it. You either find out which app it is by yourself my elimination and post all the apps you installed and ask the community for suspect apps.
Also which ROM?
It's a native part of the stock ze500kl marshmallow rom.