java - Android - how to turn numbers in a TextView into buttons -


my utility app requires user select meeting calendar, removes non-numerical text, , parses remains using logic, final aim of identifying 2 numbers only.

whenever app fails remain 2 numbers only, want open new activity in user "tell" app 2 numbers relevant ones. want display meeting title, location, , description in 3 textviews numbers should clickable special onclick action trigger methods handle identified 2 numbers... question how turn numbers in textviews clickable , have special onclick action. don't think can use linkify cannot put onclicklistener on links. idea turn numbers clickable buttons , add relevant listener buttons. 1) suggestion on how conversion other simple step step parsing? 2) better idea using buttons?

thanks million

call setonclicklistener(this) on textview , supply onclick method in code


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -