New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when apply ripple builder on view holder #22
Comments
Well I fixed that, but the ripple dont show on customs cells :( |
try this: if(convertView == null) {
viewHolder = new ViewHolder();
convertView = ApplicationLoader.mainLayoutInflater.inflate(R.layout.lsta_pral_item, null);
viewHolder.imageView = (ImageView)convertView.findViewById(R.id.lstaPralItem);
//add code in here
convertView=MaterialRippleLayout.on(convertView)
.rippleColor(Color.parseColor("#FF0000"))
.rippleAlpha(0.2f)
.rippleHover(true)
.rippleInAdapter(true)
.create();
convertView.setTag(viewHolder);
} else {
viewHolder = (ViewHolder) convertView.getTag();
} edit: code formatting |
Your initial crash happened because you apply a |
Yes, later I reuse the view, but the effect dont appear, I'll try that 3c |
Hi, I have used the above formatted code,but ripple effect is not showing on list Item.Any help please? |
I'm trying your library on my view holder but when I run the project the application crash, these happend when I scroll the listView.
The code is:
public class CategoryViewCell extends AbstractAdapter
{
}
And the crash is:
The text was updated successfully, but these errors were encountered: