Esempio n. 1
0
 @SuppressWarnings("unused")
 @OnClick(R.id.button_vehicle_brake)
 public void onVehicleBrake() {
   this.vehicle.stop();
   this.textVehicleResult.setText("vehicle speed : " + vehicle.getSpeed());
 }
Esempio n. 2
0
 @SuppressWarnings("unused")
 @OnClick(R.id.button_vehicle_increase_speed)
 public void onSpeedIncreaseClick() {
   this.vehicle.increaseSpeed(10);
   this.textVehicleResult.setText("vehicle speed : " + vehicle.getSpeed());
 }