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