Skip to content

Instantly share code, notes, and snippets.

@trity1993
trity1993 / CommonPageAdapter
Created June 19, 2016 14:07
对viewpager添加view的通用适配器
public class CommonPageAdapter extends PagerAdapter implements IListAdapter<View> {
private static final String TAG = CommonPageAdapter.class.getName();
private List<View> mViews;
private int mChildCount=0;
public CommonPageAdapter() {
}
@trity1993
trity1993 / ActivitySplitAnimationUtil.java
Last active June 7, 2016 16:20
to chanage https://github.com/Udinic/ActivitySplitAnimation; 添加finish anim+更改获取rootview;注意设置主题为Translucent
package cc.trity.sun.utils;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;