Example usage for android.widget TextView isClickable

List of usage examples for android.widget TextView isClickable

Introduction

In this page you can find the example usage for android.widget TextView isClickable.

Prototype

@ViewDebug.ExportedProperty
public boolean isClickable() 

Source Link

Document

Indicates whether this view reacts to click events or not.

Usage

From source file:com.nadmm.airports.FragmentBase.java

protected void makeClickToCall(View row, int resid) {
    TextView tv = (TextView) row.findViewById(resid);
    makeClickToCall(tv);//w  w w  .ja v  a 2 s. c o m
    if (tv.isClickable()) {
        row.setBackgroundResource(R.drawable.row_selector_middle);
    }
}