Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <android.support.v7.widget.RecyclerView
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layoutAnimation="@anim/layout_animation_slide_in_right"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/main_rv"
- />
- <layoutAnimation
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:animation="@anim/slide_in_right"
- android:delay="15%"
- android:animationOrder="normal"
- />
- <set xmlns:android="http://schemas.android.com/apk/res/android"
- android:shareInterpolator="false" >
- <translate android:duration="500" android:fromXDelta="-100%" android:toXDelta="0%" />
- <alpha android:duration="500" android:fromAlpha="0.0" android:toAlpha="1.0" />
- </set>
- public void onRefresh()
- {
- displayRefresher.setRefreshing(true);
- loadUpTests(lastId);
- runLayoutAnimation();
- displayRefresher.setRefreshing(false);
- }
- private void runLayoutAnimation()
- {
- testsDisplay.getAdapter().notifyDataSetChanged();
- testsDisplay.scheduleLayoutAnimation();
- }
Add Comment
Please, Sign In to add comment