Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started