TextView doesn't respond to click events (Android Studio)

Issue

On some devices clicking on TextView control doesn't trigger onClick event. Out of handful of devices I used for testing it was affecting only Samsung Galaxy S4 Mini (Android 4.4.2).

Resolution

The issue was resolved by adding android:clickable="true" property to the TextView in layout xml file.

January 2016

Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait