Ejemplo n.º 1
0
 @Override
 public void initTitle() {
   mTitleBar.initTitleWithLeftTxtDrawable("联系方式", "返回", R.drawable.btn_back_sel, 5);
   mTitleBar.setOnLeftTxtClickListener(
       new TitleBarView.OnLeftTxtClickListener() {
         @Override
         public void onClick() {
           finish();
         }
       });
 }
Ejemplo n.º 2
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   setContentView(R.layout.activity_my_tongbao);
   ButterKnife.bind(this);
   super.onCreate(savedInstanceState);
   mTitleBar.postDelayed(
       new Runnable() {
         @Override
         public void run() {
           if (!isFinishing()) {
             new CommonDialog(MyTongBaoActivity.this)
                 .builder()
                 .setTitle("提示")
                 .setPositiveBtn("确定", null)
                 .setContentMsg("您尚未在铜板街完成首次交易,无法兑换")
                 .show();
           }
         }
       },
       300);
 }