Changeset 14208


Ignore:
Timestamp:
12/20/12 14:21:47 (12 years ago)
Author:
ltnguyen
Message:

Fixed: Layout, and slider

Location:
issm/trunk-jpl/src/android/ISSM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/android/ISSM/res/layout/activity_issm.xml

    r14110 r14208  
    1212        android:layout_alignParentBottom="true"
    1313        android:layout_alignParentLeft="true"
     14        android:progress="90"
     15        android:max="490"
    1416        android:layout_marginBottom="41dp" />
    1517
     
    2123        android:layout_centerHorizontal="true"
    2224        android:layout_marginBottom="15dp"
    23         android:text="alpha value = 0" />
     25        android:text="Friction Scaling: 100%" />
    2426
    2527    <FrameLayout
  • issm/trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java

    r14200 r14208  
    3737    private ColorMap colorMap;
    3838    private int alpha;
    39 
     39    private final int MINIMUM = 0;
     40    private final int OFFSET = 10;
    4041    @Override
    4142  //------------------------------------------------------------------------------------------------   
     
    5051                }
    5152        }
     53        alpha = 90 + OFFSET;
    5254        setContentView(R.layout.activity_issm);
    5355        this.bar  = (SeekBar) findViewById(R.id.seekBar);
     
    6062                public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser)
    6163                {
    62                         alpha = progress;
     64       
     65                        alpha = progress + OFFSET;
     66                        txtValue.setText("Friction Scaling: " +  alpha + "%");
    6367                }
    6468
  • issm/trunk-jpl/src/android/ISSM/src/com/example/issm/MyGLRenderer.java

    r14109 r14208  
    235235                mProjectionMatrix = new float[triangleVert.length][16];
    236236                for (int i = 0; i < triangleVert.length; i++)
    237                         Matrix.frustumM(mProjectionMatrix[i], 0, -ratio*0.5f, ratio*1.0f, 0.0f, 1.0f, 1.0f, 14f);
     237                        Matrix.frustumM(mProjectionMatrix[i], 0, -ratio*0.7f, ratio*1.0f, 0.0f, 1.0f, 1.0f, 14f);
    238238                //Matrix.frustumM(m, offset, left, right, bottom, top, near, far)
    239239    }
Note: See TracChangeset for help on using the changeset viewer.