locked
Background Color Transparent is not working in GroupHeaderTemplate of Listview in Xamarin Forms iOS RRS feed

  • Question

  • User374666 posted

    I have set background image for whole application, In Listview, GroupHeaderTemplate Background color set 'Transparent', but it displays white only. In Android it's working properly. Anyone knows the solution ?

    Tuesday, January 8, 2019 12:21 PM

Answers

  • User374666 posted

    I have fixed this issue using custom Renderer in iOS. I have attached Renderer file over here.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, January 11, 2019 6:50 AM

All replies

  • User369978 posted

    Can you attach the code ?

    Wednesday, January 9, 2019 8:10 AM
  • User198446 posted

    https://github.com/xamarin/Xamarin.Forms/pull/4002

    Wednesday, January 9, 2019 9:31 AM
  • User374666 posted

    @AndreiMisiukevich_ I have set background transparent as per shown in above mentioned link but it's not working. It is set transparent, but due to default color of groupheader color is white in iOS so, its displays listview group header white. Listview's items background set transparent but issue occurs for only Group Header.

    I have attached code snippet.

    Thursday, January 10, 2019 5:36 AM
  • User198446 posted

    @rgajjar i am not sure, if it has been already included to any release or not.

    You need to do next:

    Xamarin.Forms.PlatformConfiguration.iOSSpecific.SetDefaultBackgroundColor(cell, Color.Transparent);

    Also it would make sense for you to change listView groupHeader style for ios RE: this PR

    https://github.com/xamarin/Xamarin.Forms/pull/4616/files

    Thursday, January 10, 2019 9:10 AM
  • User374666 posted

    @AndreiMisiukevich_ FYI, Actually There is no property like SetDefaultBackgroundColor in iOS Specific. I have solved this issue using Renderer. In Renderer, I have set cell background Transparent.

    Thanks :smile:

    Thursday, January 10, 2019 12:08 PM
  • User369978 posted

    @rgajjar said: @AndreiMisiukevich_ FYI, Actually There is no property like SetDefaultBackgroundColor in iOS Specific. I have solved this issue using Renderer. In Renderer, I have set cell background Transparent.

    Thanks :smile:

    For anyone who's looking for the same issue , can you attach the detailed solution and mark it as answer? Thanks.

    Friday, January 11, 2019 1:48 AM
  • User374666 posted

    I have fixed this issue using custom Renderer in iOS. I have attached Renderer file over here.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, January 11, 2019 6:50 AM