You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 line
824B

  1. package de.hems.trafficsim;
  2. import android.content.Context;
  3. import android.view.SurfaceView;
  4. import android.view.ViewGroup;
  5. /**
  6. * A Surface View which servers as a stage for a renderer.
  7. */
  8. public class TimeRecordView extends SurfaceView {
  9. public TimeRecordView(Context context, Track track) {
  10. super(context);
  11. this.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
  12. }
  13. /**
  14. * Updates the size information of the SurfaceView, used by the Android SDK.
  15. *
  16. * @param w new width
  17. * @param h new height
  18. * @param oldw old width
  19. * @param oldh old height
  20. */
  21. @Override
  22. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  23. super.onSizeChanged(w, h, oldw, oldh);
  24. }
  25. }