Ejemplo n.º 1
0
  private void initGui() {
    mGridView = (GridView) findViewById(R.id.tvback_list);
    mGridView.setSelector(new ColorDrawable(Color.TRANSPARENT));
    mGridView.setGravity(Gravity.CENTER);
    mGridView.setVerticalSpacing(20); // 垂直间隔

    mBtnBack = (Button) findViewById(R.id.tvback_btn_back);

    mProgressDlg = (ProgressDialog) AlertUtils.createDialog(AlertUtils.NO_TITLE, this);
  }
Ejemplo n.º 2
0
        @Override
        public void handleMessage(Message msg) {
          mProgressDlg.dismiss();

          switch (msg.what) {
            case MSG_GET_DATA_FINISH:
              showList();
              break;
            case MSG_GET_DATA_ERROR:
              AlertUtils.displayToast(TvBack.this, (String) msg.obj);
              break;
            default:
              break;
          }
        }