Project

General

Profile

« Previous | Next » 

Revision 6e18bd32

Added by Leszek Koltunski about 5 years ago

Turn the Rubik app into a MemoryTest.

View differences:

src/main/java/org/distorted/examples/projection/ProjectionActivity.java
43 43
      super.onCreate(savedState);
44 44
      setContentView(R.layout.projectionlayout);
45 45

  
46
      textF = (TextView)findViewById(R.id.projectionTextFOV);
47
      textN = (TextView)findViewById(R.id.projectionTextNear);
46
      textF = findViewById(R.id.projectionTextFOV);
47
      textN = findViewById(R.id.projectionTextNear);
48 48

  
49
      SeekBar bar1 = (SeekBar)findViewById(R.id.projectionSeekFOV);
50
      SeekBar bar2 = (SeekBar)findViewById(R.id.projectionSeekNear);
49
      SeekBar bar1 = findViewById(R.id.projectionSeekFOV);
50
      SeekBar bar2 = findViewById(R.id.projectionSeekNear);
51 51

  
52 52
      bar1.setOnSeekBarChangeListener(this);
53 53
      bar2.setOnSeekBarChangeListener(this);
......
69 69
    @Override
70 70
    protected void onPause() 
71 71
      {
72
      GLSurfaceView mView = (GLSurfaceView) this.findViewById(R.id.surfaceViewProjection);
72
      GLSurfaceView mView = findViewById(R.id.surfaceViewProjection);
73 73
      mView.onPause();
74 74

  
75 75
      Distorted.onPause();
......
83 83
      {
84 84
      super.onResume();
85 85
      
86
      GLSurfaceView mView = (GLSurfaceView) this.findViewById(R.id.surfaceViewProjection);
86
      GLSurfaceView mView = findViewById(R.id.surfaceViewProjection);
87 87
      mView.onResume();    
88 88
      }
89 89
 
......
101 101
    public void onProgressChanged(SeekBar bar, int progress, boolean fromUser) 
102 102
      {
103 103
      float ret;
104
      ProjectionSurfaceView view = (ProjectionSurfaceView)findViewById(R.id.surfaceViewProjection);
104
      ProjectionSurfaceView view = findViewById(R.id.surfaceViewProjection);
105 105
      ProjectionRenderer renderer = view.getRenderer();
106 106

  
107 107
      switch (bar.getId()) 

Also available in: Unified diff