android - Displaying a result after receiving user input -


I'm developing an app in Android and need to implement a normal app function Is - accepting the numeric value after typing in the input from the user through a EditText , I want the user to be able to select the 'go' button should be there. As a result, should first appear below TextView . What should I do to display the results (TextView etc?) And how can I go about implementing this process? Thank you

You are new to this, so check D link first.

As you define <1 TextView , 1 EditText and 1 button

  button _go = (button) findViewById (R.id._btngo);  

to

  _go.setOnClickListener (New View.OnClickListener () {public void onClick (see v) {TextView _getdata = (TextView) findViewById (R ) .id._tvresult); EditText _result = (EditText) findViewById (R.id._etgetinput); // Get input value and store string result as string = _result.getText (). ToString (); // Display results in textview getdata.setText (result);}});  

Hope you get the solution .. :)


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -