Supposons que j'ai trois textes en tant que rubrique.Tout comment vous pouvez prendre textview ou quoi que ce soit.un texte sur la gauche, un au centre et un à droite.J'ai envie d'une animation quand je vais glisser l'écran à gauche, puis le texte à gauche sera parti, le texte du centre viendra à gauche et le texte à droite viendra au centre.Même chose pour la diapositive droite.Peut-on suggérer comment puis-je réaliser ce type d'animation.Plz aide.Comment faire une animation webview en android
0
A
Répondre
0
Vous pouvez essayer de créer une variable d'animation:
private Animation leftAnimation() {
Animation outtoLeft = new TranslateAnimation(
Animation.RELATIVE_TO_SELF, 0.0f,
Animation.RELATIVE_TO_SELF, 0.0f,
Animation.RELATIVE_TO_SELF, 1.0f,
Animation.RELATIVE_TO_SELF, 0.0f);
outtoLeft.setDuration(500);
outtoLeft.setInterpolator(new AccelerateInterpolator());
return outtoLeft;
}
puis ensemble cette action à votre image:
public void onLeftArrowClick(View v) {
frame.setAnimation(moveComingSoonToBottomAnim); // your Frame variable
animVariable.startNow();// your anime variable
frame.setVisibility(View.VISIBLE);
rightFrame.setVisibility(View.GONE); // hide your right text view
}
Questions connexes
- 1. Android: WebView Scroll Animation
- 2. comment faire une animation d'image android
- 3. Comment faire une animation 'occupée' dans Android?
- 4. comment faire une animation flipper Android en utilisant onFling()?
- 5. Comment faire une pause et redémarrer une animation sous Android?
- 6. Comment faire une animation div en diagonale?
- 7. Comment faire une animation d'applet?
- 8. android: comment faire un webview en mode plein écran
- 9. Comment faire une animation "tremblante"
- 10. Comment faire une animation inversée?
- 11. comment faire une animation UIView?
- 12. Comment faire une animation UIBarButtonItem?
- 13. Comment faire une animation d'image aléatoire dans Android?
- 14. Comment réaliser une animation "panoramique" sur Android
- 15. UI animation en android
- 16. Comment donner une animation de curl de page dans webView?
- 17. Comment faire une animation rapide en C# en utilisant WPF
- 18. Animation en android
- 19. Android. TransitionDrawable: comment faire une animation en avant et en arrière
- 20. Animation dans android (faire un homme courir)
- 21. Comment effectuer une animation dans Android AndEngine?
- 22. Android Webview faire verbeux appel Jquery AJAX
- 23. Comment faire pivoter/miroir une animation 3D?
- 24. Android - comment construire webview?
- 25. comment afficher le webview actuel en android
- 26. comment faire cette animation en flash
- 27. animation en android
- 28. Android WebView faire défiler vers le bas
- 29. AppWidget animation en android
- 30. animation d'activité en android
http://stackoverflow.com/questions/7592957/moving-image -pour-android/7593041 # 7593041 –