Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

ViewCell custom renderer to remove high-light color for Android

$
0
0

Hi,

Has anyone figured out how to do remove the select highlight for android through custom renderer?

Here is what I have for ios

    protected override View GetCellCore(Cell item, View convertView, ViewGroup parent, Context context)
            {
                var cell = base.GetCellCore(item, convertView, parent, context);
                if (cell != null)
                {
                    cell.SetBackgroundColor(Color.Transparent);
                    //cell.SelectionStyle = UITableViewCellSelectionStyle.None;  //Remove the Highlight
                }
        //tv.SeparatorColor = UIColor.Clear;  //Remove the separator line
                //tv.SeparatorStyle = UITableViewCellSeparatorStyle.DoubleLineEtched; //Remove the separator line
                //tv.AlwaysBounceVertical = extendedCell.AlwaysBounceVertical; //Remove the scroll effect
                //tv.ScrollEnabled = extendedCell.EnableScrolling;
}

thanks


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>