We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55f5b95 commit 21529d6Copy full SHA for 21529d6
HelloWorld/app/activity.java
@@ -0,0 +1,12 @@
1
+import android.view.View
2
+import android.widget.TextView
3
+import android.widget.EditText
4
+
5
+public void onBtnClick(View view){
6
+ TextView txtHello = findViewById(R.id.txtMessage);
7
+ EditView edtTxtName = findViewById(R.id.edtTxtName);
8
9
+ String user = edtTxtName.getText().toString();
10
11
+ txtHello.setText("Hello, " + user);
12
+}
0 commit comments