Translucent status bar on android with Xamarin.Forms. Possible?

caseyryancaseyryan Member ✭✭

Hi!
I was looking thru this page https://github.com/xamarin/Xamarin.Forms/issues/2415
and came across this screenshot

As you can see it uses translucent status bar and it's xamarin forms. I've spent a lot of time trying to set up translucent theme but I've had no success. There seems to be no translucent theme support in Appcompat V7 library.
I tried to set windowTranslucentStatus and fitsSystemWindows to true on DarkActionBar theme, but it doesn't work, the status bar just turns gray but does not become translucent
Could anyone tell me how I can achieve this?

Best Answer

  • caseyryancaseyryan ✭✭
    edited March 17 Accepted Answer

    Well, I've just found the solution
    It's very symple. I only needed to set this prop
    <item name="android:windowTranslucentStatus">true</item>
    It does the trick

Answers

  • caseyryancaseyryan Member ✭✭
    edited March 17 Accepted Answer

    Well, I've just found the solution
    It's very symple. I only needed to set this prop
    <item name="android:windowTranslucentStatus">true</item>
    It does the trick

Sign In or Register to comment.