Skip to content

Instantly share code, notes, and snippets.

View XiongKe94's full-sized avatar
🌴
On vacation

流沙 XiongKe94

🌴
On vacation
  • 中国-北京
View GitHub Profile
@leov1
leov1 / gist:4b249af5e9dc2d7e2c7c9ba20475c47a
Created May 20, 2016 08:54
图片高斯模糊 处理
/** 水平方向模糊度 */
private static float hRadius = 180;
/** 竖直方向模糊度 */
private static float vRadius = 180;
/** 模糊迭代度 */
private static int iterations =3;
/**
* 图片高斯模糊处理
* 
@ssinss
ssinss / EndlessRecyclerOnScrollListener.java
Last active January 19, 2024 08:52
Endless RecyclerView OnScrollListener
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener {
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName();
private int previousTotal = 0; // The total number of items in the dataset after the last load
private boolean loading = true; // True if we are still waiting for the last set of data to load.
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
int firstVisibleItem, visibleItemCount, totalItemCount;