@Override protected void onRecycleItemClick(View view, int position) { super.onRecycleItemClick(view, position); PostListEntity bean = list.get(position); Bundle bundle = new Bundle(); bundle.putSerializable(AppConfig.TRANS_BEAN, bean); directToActivity(PostDetialActivity.class, bundle, false); }
@Override protected void initToolbarAndMenu() { super.initToolbarAndMenu(); toolbar.setTitleTextColor(getResources().getColor(R.color.white)); toolbar_center_title.setText(menuEntity.title); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowTitleEnabled(false); }
@Override protected void initDataFromBundle(Bundle bundle) { super.initDataFromBundle(bundle); menuEntity = (MenuEntity) bundle.getSerializable(AppConfig.TRANS_BEAN); if (menuEntity == null) { ToastUtil.showShort("参数错误"); finish(); } }
@Override protected void initWidget() { super.initWidget(); initRecycleview(LAYOUT_MANAGER_LINEAR_VERTIAL, 0); asyncLoadData(true); }
@Override protected void onSwipeLayoutRefresh() { super.onSwipeLayoutRefresh(); asyncLoadData(true); }
@Override protected void onRecycleLoadMore() { super.onRecycleLoadMore(); asyncLoadData(false); }