Ich bin neu in der Programmierung und ich habe eine Aufgabe, eine Gridview mit spaltenweiser Animation anzuzeigen. Ich habe es so versucht.Wie man eine Gridview spaltenweise in Android animieren
Meine res/Anim/animation.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="1500"
android:fromYDelta="5"
android:toYDelta="90%" />
</set>
Teil meiner MainActivity.java
Animation anim = AnimationUtils.loadAnimation(getApplicationContext(),R.anim.animation);
gridView.setAnimation(anim);
anim.start();
Im MainActivity.java bitte helfen Sie mir, wo ich zu korrigieren. Dadurch bekomme ich volle Gridview-Animation.
in Ihrem Adapter machen Eltern View wird animieren .......... – sushildlh
Bitte senden Sie mir ein Beispiel. es könnte für mich besser sein. –