Skip to content

Commit 21529d6

Browse files
authored
Create activity.java
1 parent 55f5b95 commit 21529d6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

HelloWorld/app/activity.java

+12
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)