I want disable ripple effect when tapping on a item of a ListView
. I use nativescript 6 on vue. I have disabled correctly selection color for IOS but for android I'm facing this problem!
Simply add loaded
event on ListView and run this code,
onLoaded: function(args) {
if (args.object.android) {
args.object.android.setSelector(new android.graphics.drawable.StateListDrawable());
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.