copy SelectableContactView.java to your project
copy atts.xml to res/values
if (SelectableContactView.isSelected()){
SelectableContactView.deselect();
}else {
SelectableContactView.select();
}
```xml
<attr name="text" format="string"/>
<attr name="textColor" format="color" />
<attr name="backgroundColor" format="color" />
<attr name="selectColor" format="color" />
<attr name="tickColor" format="color" />
<attr name="shadowColor" format="color" />
<attr name="showShadow" format="boolean" />
<attr name="src" format="reference" />