I m kinda new to Android, now I m developing a very simple game, the logic is described as following: The user sees a 10-digit value after pressing a "Ready" Button
. After 5 seconds, the value changes to
* * * * * * *
and the user has to enter it in a text field (type "number") below. Under that text field there are 2 Button
s: "Check" and "Give a hint". The check Button
compares the user value to original value and changes a TextView
according to the result("Correct"/"Incorrect"). The hint Button
should show 3 random digits in the original value.
我对这项小应用有一些问题:
- I m not sure which type I have to use to show the original value to the user: a
TextView
, a text field or something else? - How do I force the app to show 3 random digits from the original value in the case
when user presses the hint
Button
?
感谢任何帮助。