Changeset c912129 in orbit for android/src
- Timestamp:
- 12/27/13 06:31:45 (9 years ago)
- Branches:
- master, Servo
- Children:
- a9fa399
- Parents:
- 00d1787
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
android/src/info/puzzlebox/orbit/FragmentTabFlightThinkGear.java
r00d1787 rc912129 92 92 Button testFlightButton; 93 93 Button stopTestButton; 94 95 TextView textViewLabelScores; 96 TextView textViewLabelScore; 97 TextView textViewLabelLastScore; 98 TextView textViewLabelHighScore; 99 View viewSpaceScore; 100 View viewSpaceScoreLast; 101 View viewSpaceScoreHigh; 94 102 TextView textViewScore; 95 103 TextView textViewLastScore; 96 104 TextView textViewHighScore; 97 View viewSpaceLastScore;98 105 99 106 ImageView imageViewStatus; … … 269 276 connectButton.setOnClickListener(this); 270 277 278 textViewLabelScores = (TextView) v.findViewById(R.id.textViewLabelScores); 279 textViewLabelScore = (TextView) v.findViewById(R.id.textViewLabelScore); 280 textViewLabelLastScore = (TextView) v.findViewById(R.id.textViewLabelLastScore); 281 textViewLabelHighScore = (TextView) v.findViewById(R.id.textViewLabelHighScore); 282 283 viewSpaceScore = (View) v.findViewById(R.id.viewSpaceScore); 284 viewSpaceScoreLast = (View) v.findViewById(R.id.viewSpaceScoreLast); 285 viewSpaceScoreHigh = (View) v.findViewById(R.id.viewSpaceScoreHigh); 286 271 287 textViewScore = (TextView) v.findViewById(R.id.textViewScore); 272 288 textViewLastScore = (TextView) v.findViewById(R.id.textViewLastScore); 273 289 textViewHighScore = (TextView) v.findViewById(R.id.textViewHighScore); 274 viewSpaceLastScore = (View) v.findViewById(R.id.viewSpaceScoreLast); 290 291 292 // Hide the "Scores" label by default 293 textViewLabelScores.setVisibility(View.GONE); 294 viewSpaceScore.setVisibility(View.GONE); 275 295 276 296 … … 462 482 setButtonText(R.id.buttonTestFly, button_test_fly_small); 463 483 464 textViewLastScore.setVisibility(View.GONE); 465 viewSpaceLastScore.setVisibility(View.GONE); 466 467 // viewSpaceGenerateAudioWidth = LayoutParams.MATCH_PARENT; 468 469 // @SuppressWarnings("deprecation") 470 // int width = getWindowManager().getDefaultDisplay().getWidth(); 471 // int height = getWindowManager().getDefaultDisplay().getHeight(); 472 473 // viewSpaceGenerateAudioWidth = width / 4; // approximate center of screen 484 textViewLabelScores.setVisibility(View.VISIBLE); 485 viewSpaceScore.setVisibility(View.VISIBLE); 486 487 488 android.view.ViewGroup.LayoutParams layoutParams; 489 490 layoutParams = (android.view.ViewGroup.LayoutParams) viewSpaceScoreLast.getLayoutParams(); 491 layoutParams.width = 10; 492 viewSpaceScoreLast.setLayoutParams(layoutParams); 493 494 layoutParams = (android.view.ViewGroup.LayoutParams) viewSpaceScoreHigh.getLayoutParams(); 495 layoutParams.width = 10; 496 viewSpaceScoreHigh.setLayoutParams(layoutParams); 497 498 499 String labelScore = getResources().getString(R.string.textview_label_score_small); 500 textViewLabelScore.setText(labelScore); 501 502 String labelLastScore = getResources().getString(R.string.textview_label_last_score_small); 503 textViewLabelLastScore.setText(labelLastScore); 504 505 String labelHighScore = getResources().getString(R.string.textview_label_high_score_small); 506 textViewLabelHighScore.setText(labelHighScore); 507 474 508 475 509 // hideEEGRawHistory();
Note: See TracChangeset
for help on using the changeset viewer.