1 Replies - 3405 Views - Last Post: 02 April 2012 - 03:03 PM

#1 nikilauda666  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-March 12

How to make textView button in Android to act as keyboard stroke

Posted 06 March 2012 - 03:51 PM

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

Is This A Good Question/Topic? 0
  • +

Replies To: How to make textView button in Android to act as keyboard stroke

#2 slehmann101  Icon User is offline

  • D.I.C Head

Reputation: 21
  • View blog
  • Posts: 146
  • Joined: 30-November 11

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"

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1