Skip to content

disables onItemClick Listner when setClickable to Ripple View #21

@akashk1992

Description

@akashk1992

I've list view listView.setOnItemClickListener(this)

and

I've ripple code in base adapter extending class
View view = layoutInflater.inflate(R.layout.quick_search_property_row, null);
LinearLayout propertyTypeLayout = (LinearLayout) view.findViewById(R.id.property_type_layout);
//ripple effect..
propertyTypeLayout.setBackground(getRippleDrawable(R.drawable.ripple_effect));
propertyTypeLayout.setClickable(true);
propertyTypeLayout.setOnTouchListener(new DrawableHotspotTouch((LollipopDrawable) propertyTypeLayout.getBackground()));

but this clickable removes onItemClickLisner on LIstView

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions