Question: in Mobile development Login Page (Interactions) On the login page: Enter yourname (under the username) NO pwd Click on button Display your name on the
in Mobile development
- Login Page (Interactions)
On the login page:
Enter yourname (under the username) NO pwd
Click on button
Display your name on the TextView
- Layout: add onClick() to button
- On the mainActivity add method onClick()
- Get the ref from textview
- Get the value convert to string
- Set the value to text view
public void display(View V){ EditText text = (EditText) findViewById(R.id.editText); TextView tv = (TextView) findViewById(R.id.textView); tv.setText(text.getText().toString()); }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
