Skip to content

Commit

Permalink
Refactoring UI, flash results text
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjluc committed Mar 1, 2015
1 parent da77052 commit aa96d05
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions app/src/main/java/chrisjluc/onesearch/ui/ResultsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import android.os.Bundle;
import android.util.SparseArray;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.TextView;

import com.google.android.gms.common.ConnectionResult;
Expand Down Expand Up @@ -92,6 +94,12 @@ private void updateSavedScoreAndRenderViews() {
editor.commit();

findViewById(R.id.tvBestScoreResultNotify).setVisibility(View.VISIBLE);
Animation anim = new AlphaAnimation(1.0f, 0.0f);
anim.setDuration(200);
anim.setStartOffset(0);
anim.setRepeatMode(Animation.REVERSE);
anim.setRepeatCount(6);
findViewById(R.id.tvBestScoreResultNotify).startAnimation(anim);
((TextView) findViewById(R.id.tvBestScoreResult)).setText(Integer.toString(mScore));
} else {
((TextView) findViewById(R.id.tvBestScoreResult)).setText(Integer.toString(bestScore));
Expand Down
Binary file removed app/src/main/res/drawable/achievement.png
Binary file not shown.
Binary file removed app/src/main/res/drawable/leaderboard.png
Binary file not shown.
Binary file removed app/src/main/res/drawable/pause_button.jpg
Binary file not shown.
Binary file removed app/src/main/res/drawable/skip_button.jpg
Binary file not shown.
5 changes: 3 additions & 2 deletions app/src/main/res/layout/activity_results.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
<chrisjluc.onesearch.ui.components.GameBoldTextView
android:layout_centerHorizontal="true"
android:padding="@dimen/results_title_padding"
android:text="@string/title_activity_results"
android:textSize="@dimen/results_title_size"
android:textSize="36sp"
android:text="RESULTS"
android:textColor="@color/blue"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/wordsearch_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
tools:context=".WordSearchActivity">

<LinearLayout
Expand Down

0 comments on commit aa96d05

Please sign in to comment.