Home  >  Forum  >  Android
Post New Query

Android - How to make TextView clickable programmatically


joined on
August 11,2014
Asked on September 15,2015
In my android application, I need to make TextView clickable on and off programmatically. How to achieve it.


joined on
October 10,2013
Replied on September 15,2015

Do as follows.

TextView text = (TextView) activity.findViewById(R.id.text);
text.setClickable(true)


or
text.setClickable(false)

joined on
August 11,2014
Replied on September 15,2015

Thanks.

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us