コード例 #1
0
        @Override
        public void handleMessage(Message msg) {
          bar.incrementProgressBy(7);

          if (i == 14) {
            Intent intent = new Intent(Chargement.this, Principale.class);
            startActivity(intent);
          }
        }
コード例 #2
0
ファイル: Main.java プロジェクト: dzhan008/realexp
  public void Gain50Exp(View view) {
    user.gain_exp(50);
    mProgress.incrementProgressBy(50);

    Snackbar snackbar = Snackbar.make(view, "You got 50 EXP!", Snackbar.LENGTH_LONG);
    snackbar.setAction("Action", null).show();

    if (mProgress.getProgress() >= mProgress.getMax()) {
      LevelUp(view);
    }
  }
コード例 #3
0
 @UiThread
 public void updateProbarJob(int diff) {
   pbJob.incrementProgressBy(diff);
 }
コード例 #4
0
 public void incrementProgress() {
   pbar.incrementProgressBy(1);
 }