Thursday, February 27, 2014

Andrews problem


I do not have the system comes with keys, they used to do button buttons above the corresponding figure how I click
When the corresponding key on the numeric keys assigned to the EditText, there is no way, I Andrews novice.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Button has a getText () method, you can get the text displayed on the Button.
There EditText setText () method, you can set the content of the EditText.
Like a combination of these two
Reply:
button on the digital display can setText ("1") to indicate the button click events setOnClickListener
When this event is triggered when the value of the button on the line you assign EditText - EditText setText (button.getText ()).;

No comments:

Post a Comment