Exit button is not required under Google Guidelines
This commit is contained in:
parent
c8085df15d
commit
f43569b832
2 changed files with 1 additions and 24 deletions
|
@ -29,7 +29,6 @@ public class MenuActivity extends AppCompatActivity {
|
||||||
Button startButton = (Button) findViewById(R.id.startButton);
|
Button startButton = (Button) findViewById(R.id.startButton);
|
||||||
Button continueButton = (Button) findViewById(R.id.continueButton);
|
Button continueButton = (Button) findViewById(R.id.continueButton);
|
||||||
Button highscoreButton = (Button) findViewById(R.id.highscoresButton);
|
Button highscoreButton = (Button) findViewById(R.id.highscoresButton);
|
||||||
Button quitButton = (Button) findViewById(R.id.quitButton);
|
|
||||||
|
|
||||||
|
|
||||||
final ImageView logoEmotionHero = (ImageView) findViewById(R.id.logoEmotionHero);
|
final ImageView logoEmotionHero = (ImageView) findViewById(R.id.logoEmotionHero);
|
||||||
|
@ -42,7 +41,6 @@ public class MenuActivity extends AppCompatActivity {
|
||||||
startButton.setAlpha(0f);
|
startButton.setAlpha(0f);
|
||||||
continueButton.setAlpha(0f);
|
continueButton.setAlpha(0f);
|
||||||
highscoreButton.setAlpha(0f);
|
highscoreButton.setAlpha(0f);
|
||||||
quitButton.setAlpha(0f);
|
|
||||||
|
|
||||||
ObjectAnimator fadeInEmotionHero = ObjectAnimator.ofFloat(logoEmotionHero, "alpha", 0f, 1f);
|
ObjectAnimator fadeInEmotionHero = ObjectAnimator.ofFloat(logoEmotionHero, "alpha", 0f, 1f);
|
||||||
fadeInEmotionHero.setDuration(1000);
|
fadeInEmotionHero.setDuration(1000);
|
||||||
|
@ -55,9 +53,6 @@ public class MenuActivity extends AppCompatActivity {
|
||||||
ObjectAnimator fadeInHighscoreButton = ObjectAnimator.ofFloat(highscoreButton, "alpha", 0f, 1f);
|
ObjectAnimator fadeInHighscoreButton = ObjectAnimator.ofFloat(highscoreButton, "alpha", 0f, 1f);
|
||||||
fadeInHighscoreButton.setDuration(1000);
|
fadeInHighscoreButton.setDuration(1000);
|
||||||
fadeInHighscoreButton.setStartDelay(600);
|
fadeInHighscoreButton.setStartDelay(600);
|
||||||
ObjectAnimator fadeInQuitButton = ObjectAnimator.ofFloat(quitButton, "alpha", 0f, 1f);
|
|
||||||
fadeInQuitButton.setDuration(1000);
|
|
||||||
fadeInQuitButton.setStartDelay(900);
|
|
||||||
|
|
||||||
|
|
||||||
Animation anim = new AlphaAnimation(0.0f, 1.0f);
|
Animation anim = new AlphaAnimation(0.0f, 1.0f);
|
||||||
|
@ -70,13 +65,9 @@ public class MenuActivity extends AppCompatActivity {
|
||||||
AnimatorSet buttonAnimatorSet = new AnimatorSet();
|
AnimatorSet buttonAnimatorSet = new AnimatorSet();
|
||||||
buttonAnimatorSet.playTogether(fadeInstartButton,
|
buttonAnimatorSet.playTogether(fadeInstartButton,
|
||||||
fadeInContinueButton,
|
fadeInContinueButton,
|
||||||
fadeInHighscoreButton,
|
fadeInHighscoreButton);
|
||||||
fadeInQuitButton);
|
|
||||||
buttonAnimatorSet.start();
|
buttonAnimatorSet.start();
|
||||||
|
|
||||||
// AnimatorSet animatorSet = new AnimatorSet();
|
|
||||||
// animatorSet.playSequentially(fadeInEmotionHero, buttonAnimatorSet);
|
|
||||||
// animatorSet.start();
|
|
||||||
|
|
||||||
|
|
||||||
startButton.setOnClickListener(new View.OnClickListener() {
|
startButton.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@ -104,13 +95,6 @@ public class MenuActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
quitButton.setOnClickListener(new View.OnClickListener() {
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
|
||||||
finish();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,13 +39,6 @@
|
||||||
android:id="@+id/highscoresButton"
|
android:id="@+id/highscoresButton"
|
||||||
android:fontFamily="sans-serif" />
|
android:fontFamily="sans-serif" />
|
||||||
|
|
||||||
<Button
|
|
||||||
android:text="Exit"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/quitButton"
|
|
||||||
android:fontFamily="sans-serif"
|
|
||||||
android:layout_marginTop="20dp" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
Loading…
Reference in a new issue