Disable grey highlight on listview item tap


#1

how to disable grey highlight on listview item tap?


#2

solved:

need itemLoading event of listview,
it goes in this function for every single item, u can also set different UITableViewCellSelectionStyle for different items.

in this example i’m setting it to none for all items:

viewModel.itemLoading=(args)=>{
        const cell = args.ios;
        cell.selectionStyle = UITableViewCellSelectionStyle.UITableViewCellSelectionStyleNone;
      
}

#3

@Giorgius do you have a code example? I’m trying to disable the ripple effect in an angular project


#4

this is a code example, maybe its not an angular syntax but its just function called on itemLoading event:

viewModel.itemLoading=(args)=>{
        const cell = args.ios;
        cell.selectionStyle = UITableViewCellSelectionStyle.UITableViewCellSelectionStyleNone;
      
}

add itemLoading event to listview and call this function on this event (in angular syntax):

let itemLoading=(args)=>{
        const cell = args.ios;
        cell.selectionStyle = UITableViewCellSelectionStyle.UITableViewCellSelectionStyleNone;
      
}