0

Is possible to disable android ripple effect on ListView? I have disabled it on iOS by this function:

onItemLoading(args: any) {
   if (ios) {
      const cell = args.ios;
      cell.selectionStyle = UITableViewCellSelectionStyle.UITableViewCellSelectionStyleNone;
   } else if (android) {

   }
}

Is it possible on android too?

Roman Šimr
  • 81
  • 1
  • 10

1 Answers1

1

Try setting selector on native android ListView widget upon loaded event.

onLoaded(event) { 
   if (event.object.android) {
     event.object.android.setSelector(new android.graphics.drawable.StateListDrawable());
   }
}
Manoj
  • 21,753
  • 3
  • 20
  • 41