CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2020-05-25
by Lord

Original Post

Original - Posted on 2019-02-13
by iamnaran



            
Present in both answers; Present only in the new answer; Present only in the old answer;

From a project:
activity_layout.xml ``` <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:layoutAnimation="@anim/layout_animation" android:orientation="vertical"> </ScrollView> ``` activity_recycler_view.xml ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/colorWhite" tools:context=".activities.AttendanceActivity">
<android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@id/bottom_parent" android:fitsSystemWindows="true">
<android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layoutAnimation="@anim/layout_animation" app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout> </RelativeLayout> ``` item_animation_fall_down.xml ``` <set xmlns:android="http://schemas.android.com/apk/res/android" android:duration="500">
<translate android:fromYDelta="-20%" android:toYDelta="0" android:interpolator="@android:anim/decelerate_interpolator" />
<alpha android:fromAlpha="0" android:toAlpha="1" android:interpolator="@android:anim/decelerate_interpolator" />
<scale android:fromXScale="105%" android:fromYScale="105%" android:toXScale="100%" android:toYScale="100%" android:pivotX="50%" android:pivotY="50%" android:interpolator="@android:anim/decelerate_interpolator" />
</set> ``` layout_animation.xml ``` <?xml version="1.0" encoding="utf-8"?> <layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android" android:animation="@anim/item_animation_fall_down" android:animationOrder="normal" android:delay="15%" /> ```
Made Simple with XML only
[Visit Gist Link][1]
[1]: https://gist.github.com/iamnaran/cd715475ac953c93d30c3443ccf7180a
**res/anim/layout_animation.xml** ``` <?xml version="1.0" encoding="utf-8"?> <layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android" android:animation="@anim/item_animation_fall_down" android:animationOrder="normal" android:delay="15%" /> ``` **res/anim/item_animation_fall_down.xml**
``` <set xmlns:android="http://schemas.android.com/apk/res/android" android:duration="500">
<translate android:fromYDelta="-20%" android:toYDelta="0" android:interpolator="@android:anim/decelerate_interpolator" />
<alpha android:fromAlpha="0" android:toAlpha="1" android:interpolator="@android:anim/decelerate_interpolator" />
<scale android:fromXScale="105%" android:fromYScale="105%" android:toXScale="100%" android:toYScale="100%" android:pivotX="50%" android:pivotY="50%" android:interpolator="@android:anim/decelerate_interpolator" />
</set> ``` Use in layouts and recylcerview like: ``` <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layoutAnimation="@anim/layout_animation" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> ```

        
Present in both answers; Present only in the new answer; Present only in the old answer;