Hi there,
First of all I have made a main layout using xml. This layout contains textView buttons 0,1,2..9, DEL and -
I also have in same layout editText field and random question showing to user(textView).
Now, user should use (touch) textView buttons to enter answer e.g. change text in editText field.
Can anybody advise simplest solution.
Please note that I don't want to create separate keyboard layout for this I just want to use buttons to set text.
I tried doing this by making onclickListener for each button, but app crashes as the activity is not registered in manifest and I am not really sure how to go about it.
Thanks
1 Replies - 2888 Views - Last Post: 02 April 2012 - 03:03 PM
#1
How to make textView button in Android to act as keyboard stroke
Posted 06 March 2012 - 03:51 PM
Replies To: How to make textView button in Android to act as keyboard stroke
#2
Re: How to make textView button in Android to act as keyboard stroke
Posted 02 April 2012 - 03:03 PM
Why do you need to create your own keyboard? If you just need numbers you can stick this in your edit text.
android:inputType="number"
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote



|