Systers, an Anita Borg Institute Community

Show Snackbar on selection of inappropriate choice. [PWR - Android]

Intro:

In a game scenario, when user clicks on a choice that is inappropriate and will lead to no increase in score plus is not a good action to take in the given scenario, they should be warned about about their decision and allowed to rethink and ponder on the same.

Implementation:

  • Check if user choice has a score of 0 indicating inappropriate choice.
  • If it is an undesired choice, display a snackbar at the bottom of the screen, saying "Are you sure this is the right decision to take?"
  • Just make sure it's not the answer with AnswerDescription "Returns Home" as there also the score is 0.

Required:

As you work on this task, you should join and remain in #gci-general and #powerup on Systers Opensource Slack to get help, feedback, and guidance from mentors and other developers.

Submission

  • Submit a PR with your work (or zip folder with code).
  • Submit a screenshot of the above condition taking place.

Task tags

  • database
  • android
  • intermediate
  • java
  • sql

Students who completed this task

Owen Leong, JacquelineVB, MKASKER, Erika Tan

Task type

  • code Code
  • web Design
close

2016