I'm having recyclerview where each row has some text and a checkbox. When I click on list view it will check or uncheck the check this is done, but unfortunately I am getting touch pointer animation while clicking the list. How to remove the touch pointer? Searched a lot but didn't get a proper answer.
Below is my xml code
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingBottom="10dp">
<android.support.v7.widget.AppCompatCheckBox
android:id="@+id/playlist_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:button="@null"
android:checked="false"
android:drawableLeft="@drawable/res_checked_checkbox"
android:drawablePadding="20dp"
android:textColor="@color/dark_white"
android:gravity="center_vertical"
android:fontFamily="@font/quicksand_medium"
android:textSize="18sp"/>
</RelativeLayout>
JAVA code
holder.checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(buttonView.isPressed()) {
if (isChecked) {
updatePlaylist.videoAdded(playlistData.get(position).getId(), playlistData
.get(position).getName());
} else {
updatePlaylist.videoRemoved(playlistData.get(position).getId());
}
}
}
});
Aucun commentaire:
Enregistrer un commentaire