改變TextView的我有點新的Java編程的Android,所以如果我做愚蠢的錯誤,我很抱歉。上的EditText(如果可能的話沒有一個按鈕)
所以基本上,我想提出的是:如果你的答案正確輸入時,將要顯示的下一個TextView的應用程序。當顯示下一個textView時,當正確給出答案時,您需要給出該textView的答案。 textview再次改變。等等。
有誰有一個想法如何做到這一點?
如果你不undarstand什麼即時消息說,這裏是一個例子:
public class Game extends AppCompatActivity {
public static EditText editText_ans;
public static TextView textView_1;
String enteredText = editText.getText().toString();
If(enteredText = 3 && textView_1 = @string/1+2){
setText.textView_1(@string/3+4)
}
If(enteredText = 7 && textView_1 = @string/3+4){
setText.textView_1("100 - 23")
我很堅持,我希望你們想幫助我。
意味着與回答一個問題,如果用戶鍵入正確的答案將其移動到下一個問題 –
是的,我真的dont't知道該怎麼做! @YounasBangash –
做你有解決方案或不 –