Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
add tap to start toast, closes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Swanson committed Feb 19, 2012
1 parent 11a6a5b commit 5a52913
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion res/values/strings.xml
Expand Up @@ -7,7 +7,7 @@
<string name="step_two">Everybody picks an estimate card</string>
<string name="step_three">Reveal the cards, low and high talk it out</string>
<string name="step_four">Revote until consensus, move to next story</string>
<string name="deal_me_in_button">Deal me in!</string>
<string name="tap_to_start">Tap anywhere on the card to play!</string>
<string name="settings">Settings</string>
<string name="sequence_settings">Card Sequence</string>
<string name="sequence_settings_summary">Change the sequence of the cards in the deck</string>
Expand Down
6 changes: 6 additions & 0 deletions src/com/sep/planningpoker/activities/MainActivity.java
Expand Up @@ -9,8 +9,10 @@
import android.os.Bundle;
import android.text.Html;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.ViewFlipper;

public class MainActivity extends PlanningPokerActivity {
Expand Down Expand Up @@ -53,6 +55,10 @@ public void onCreate(Bundle savedInstanceState) {
mDownArrowView = findViewById(R.id.down_arrow);

mEstimateTextView = (TextView) findViewById(R.id.estimate_display);

Toast tapToStart = Toast.makeText(this, getResources().getString(R.string.tap_to_start), Toast.LENGTH_LONG);
tapToStart.setGravity(Gravity.BOTTOM, 0, 0);
tapToStart.show();
}

@Override
Expand Down

0 comments on commit 5a52913

Please sign in to comment.