use of com.looklook.xinghongfei.looklook.adapter.MeiziAdapter in project LookLook by xinghongfei.
the class MeiziFragment method initialView.
private void initialView() {
meiziAdapter = new MeiziAdapter(getContext());
linearLayoutManager = new WrapContentLinearLayoutManager(getContext());
intialListener();
mRecycleMeizi.setLayoutManager(linearLayoutManager);
mRecycleMeizi.setAdapter(meiziAdapter);
mRecycleMeizi.addOnScrollListener(loadmoreListener);
new Once(getContext()).show("tip_guide_6", new Once.OnceCallback() {
@Override
public void onOnce() {
Snackbar.make(mRecycleMeizi, getString(R.string.meizitips), Snackbar.LENGTH_INDEFINITE).setAction(R.string.meiziaction, new View.OnClickListener() {
@Override
public void onClick(View view) {
}
}).show();
}
});
mRecycleMeizi.setItemAnimator(new DefaultItemAnimator());
loadDate();
}
Aggregations