예제 #1
0
 @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);
 }
예제 #2
0
 @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);
 }
예제 #3
0
 @Override
 protected void initDataFromBundle(Bundle bundle) {
   super.initDataFromBundle(bundle);
   menuEntity = (MenuEntity) bundle.getSerializable(AppConfig.TRANS_BEAN);
   if (menuEntity == null) {
     ToastUtil.showShort("参数错误");
     finish();
   }
 }
예제 #4
0
 @Override
 protected void initWidget() {
   super.initWidget();
   initRecycleview(LAYOUT_MANAGER_LINEAR_VERTIAL, 0);
   asyncLoadData(true);
 }
예제 #5
0
 @Override
 protected void onSwipeLayoutRefresh() {
   super.onSwipeLayoutRefresh();
   asyncLoadData(true);
 }
예제 #6
0
 @Override
 protected void onRecycleLoadMore() {
   super.onRecycleLoadMore();
   asyncLoadData(false);
 }