Changeset 00d1787 in orbit for android/src


Ignore:
Timestamp:
12/27/13 06:02:27 (8 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
c912129
Parents:
4ca9aa3
Message:
  • Last Score tracking added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • android/src/info/puzzlebox/orbit/FragmentTabFlightThinkGear.java

    r71f66b0 r00d1787  
    99 
    1010import android.bluetooth.BluetoothAdapter; 
    11 import android.content.pm.PackageManager.NameNotFoundException; 
    1211import android.content.res.Configuration; 
    1312import android.graphics.Color; 
     
    7675        int minimumScoreTarget = 40; 
    7776        int scoreCurrent = 0; 
     77        int scoreLast = 0; 
    7878        int scoreHigh = 0; 
    7979 
     
    9393        Button stopTestButton; 
    9494        TextView textViewScore; 
     95        TextView textViewLastScore; 
    9596        TextView textViewHighScore; 
     97        View viewSpaceLastScore; 
    9698 
    9799        ImageView imageViewStatus; 
     
    268270 
    269271                textViewScore = (TextView) v.findViewById(R.id.textViewScore); 
     272                textViewLastScore = (TextView) v.findViewById(R.id.textViewLastScore); 
    270273                textViewHighScore = (TextView) v.findViewById(R.id.textViewHighScore); 
     274                viewSpaceLastScore = (View) v.findViewById(R.id.viewSpaceScoreLast); 
    271275 
    272276 
     
    457461                String button_test_fly_small = getResources().getString(R.string.button_test_fly_small); 
    458462                setButtonText(R.id.buttonTestFly, button_test_fly_small); 
     463 
     464                textViewLastScore.setVisibility(View.GONE); 
     465                viewSpaceLastScore.setVisibility(View.GONE); 
    459466 
    460467                //              viewSpaceGenerateAudioWidth = LayoutParams.MATCH_PARENT; 
     
    665672                                Log.v(TAG, "Meditation: " + eegMeditation); 
    666673                        progressBarMeditation.setProgress(eegMeditation); 
    667                         //                      updatePower(); 
     674                        updatePower(); 
    668675 
    669676                        break; 
     
    10651072        public void resetCurrentScore() { 
    10661073 
     1074                if (scoreCurrent > 0) 
     1075                        textViewLastScore.setText(Integer.toString(scoreCurrent)); 
    10671076                scoreCurrent = 0; 
    10681077                textViewScore.setText(Integer.toString(scoreCurrent)); 
Note: See TracChangeset for help on using the changeset viewer.