Xamarin Android Has Double Black Navigation Bar [Android O]










0















I have an app developed with Xamarin Android. This app works fine in all android's Versions, but in Android Oreo (27) the app has a double black navigation bar like the Image.



enter image description here



I has proofed changing the styles in all possible forms, but this not works.



Someone know how remove this black space of my Xamarin Android App?. Thanks.



EDIT



My Code for styles is:



<resources>

<style name="MyTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:colorPrimary">@color/color_primary</item>
<item name="android:colorPrimaryDark">@color/color_primary_dark</item>
<item name="colorAccent">@color/color_accent</item>
<item name="android:colorActivatedHighlight">@color/color_accent</item>
<item name="android:colorPressedHighlight">@color/color_accent</item>
<item name="android:colorLongPressedHighlight">@color/color_accent</item>
<item name="android:colorFocusedHighlight">@color/color_accent</item>
<item name="android:statusBarColor">@color/color_accent</item>
<item name="drawerArrowStyle">@style/MyDrawerArrowToggle</item>
<item name="android:typeface">serif</item>
</style>

<style name="MyTheme.NoActionBar.Transparent" parent="MyTheme.NoActionBar">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="windowActionBarOverlay">true</item>
</style>

<style name="MyDrawerArrowToggle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="color">@color/white</item>
</style>

<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:background">?android:attr/listDivider</item>
</style>

</resources>









share|improve this question
























  • Share your code so we can analize

    – G.hakim
    Nov 13 '18 at 5:27











  • that for sure is not a navigation bar. It is just a black part of your layout. There is likely something wrong with your code.

    – Vladyslav Matviienko
    Nov 13 '18 at 5:35











  • @G.hakim I edit my question with the styles code

    – Erick Velasco
    Nov 13 '18 at 12:13











  • Use Android monitor or Android Studio to dump your view hierarchy and inspect where this black area origins from. It could also be that your have simply not sized your view to occupy that area.

    – Cheesebaron
    Nov 13 '18 at 16:06











  • I agree with what @Cheesebaron has to say use Android studio with dumped code and check for whats covering the black area

    – G.hakim
    Nov 14 '18 at 5:49
















0















I have an app developed with Xamarin Android. This app works fine in all android's Versions, but in Android Oreo (27) the app has a double black navigation bar like the Image.



enter image description here



I has proofed changing the styles in all possible forms, but this not works.



Someone know how remove this black space of my Xamarin Android App?. Thanks.



EDIT



My Code for styles is:



<resources>

<style name="MyTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:colorPrimary">@color/color_primary</item>
<item name="android:colorPrimaryDark">@color/color_primary_dark</item>
<item name="colorAccent">@color/color_accent</item>
<item name="android:colorActivatedHighlight">@color/color_accent</item>
<item name="android:colorPressedHighlight">@color/color_accent</item>
<item name="android:colorLongPressedHighlight">@color/color_accent</item>
<item name="android:colorFocusedHighlight">@color/color_accent</item>
<item name="android:statusBarColor">@color/color_accent</item>
<item name="drawerArrowStyle">@style/MyDrawerArrowToggle</item>
<item name="android:typeface">serif</item>
</style>

<style name="MyTheme.NoActionBar.Transparent" parent="MyTheme.NoActionBar">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="windowActionBarOverlay">true</item>
</style>

<style name="MyDrawerArrowToggle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="color">@color/white</item>
</style>

<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:background">?android:attr/listDivider</item>
</style>

</resources>









share|improve this question
























  • Share your code so we can analize

    – G.hakim
    Nov 13 '18 at 5:27











  • that for sure is not a navigation bar. It is just a black part of your layout. There is likely something wrong with your code.

    – Vladyslav Matviienko
    Nov 13 '18 at 5:35











  • @G.hakim I edit my question with the styles code

    – Erick Velasco
    Nov 13 '18 at 12:13











  • Use Android monitor or Android Studio to dump your view hierarchy and inspect where this black area origins from. It could also be that your have simply not sized your view to occupy that area.

    – Cheesebaron
    Nov 13 '18 at 16:06











  • I agree with what @Cheesebaron has to say use Android studio with dumped code and check for whats covering the black area

    – G.hakim
    Nov 14 '18 at 5:49














0












0








0








I have an app developed with Xamarin Android. This app works fine in all android's Versions, but in Android Oreo (27) the app has a double black navigation bar like the Image.



enter image description here



I has proofed changing the styles in all possible forms, but this not works.



Someone know how remove this black space of my Xamarin Android App?. Thanks.



EDIT



My Code for styles is:



<resources>

<style name="MyTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:colorPrimary">@color/color_primary</item>
<item name="android:colorPrimaryDark">@color/color_primary_dark</item>
<item name="colorAccent">@color/color_accent</item>
<item name="android:colorActivatedHighlight">@color/color_accent</item>
<item name="android:colorPressedHighlight">@color/color_accent</item>
<item name="android:colorLongPressedHighlight">@color/color_accent</item>
<item name="android:colorFocusedHighlight">@color/color_accent</item>
<item name="android:statusBarColor">@color/color_accent</item>
<item name="drawerArrowStyle">@style/MyDrawerArrowToggle</item>
<item name="android:typeface">serif</item>
</style>

<style name="MyTheme.NoActionBar.Transparent" parent="MyTheme.NoActionBar">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="windowActionBarOverlay">true</item>
</style>

<style name="MyDrawerArrowToggle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="color">@color/white</item>
</style>

<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:background">?android:attr/listDivider</item>
</style>

</resources>









share|improve this question
















I have an app developed with Xamarin Android. This app works fine in all android's Versions, but in Android Oreo (27) the app has a double black navigation bar like the Image.



enter image description here



I has proofed changing the styles in all possible forms, but this not works.



Someone know how remove this black space of my Xamarin Android App?. Thanks.



EDIT



My Code for styles is:



<resources>

<style name="MyTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:colorPrimary">@color/color_primary</item>
<item name="android:colorPrimaryDark">@color/color_primary_dark</item>
<item name="colorAccent">@color/color_accent</item>
<item name="android:colorActivatedHighlight">@color/color_accent</item>
<item name="android:colorPressedHighlight">@color/color_accent</item>
<item name="android:colorLongPressedHighlight">@color/color_accent</item>
<item name="android:colorFocusedHighlight">@color/color_accent</item>
<item name="android:statusBarColor">@color/color_accent</item>
<item name="drawerArrowStyle">@style/MyDrawerArrowToggle</item>
<item name="android:typeface">serif</item>
</style>

<style name="MyTheme.NoActionBar.Transparent" parent="MyTheme.NoActionBar">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="windowActionBarOverlay">true</item>
</style>

<style name="MyDrawerArrowToggle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="color">@color/white</item>
</style>

<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:background">?android:attr/listDivider</item>
</style>

</resources>






android xamarin xamarin.android navigationbar






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 12:14







Erick Velasco

















asked Nov 13 '18 at 4:06









Erick VelascoErick Velasco

40211




40211












  • Share your code so we can analize

    – G.hakim
    Nov 13 '18 at 5:27











  • that for sure is not a navigation bar. It is just a black part of your layout. There is likely something wrong with your code.

    – Vladyslav Matviienko
    Nov 13 '18 at 5:35











  • @G.hakim I edit my question with the styles code

    – Erick Velasco
    Nov 13 '18 at 12:13











  • Use Android monitor or Android Studio to dump your view hierarchy and inspect where this black area origins from. It could also be that your have simply not sized your view to occupy that area.

    – Cheesebaron
    Nov 13 '18 at 16:06











  • I agree with what @Cheesebaron has to say use Android studio with dumped code and check for whats covering the black area

    – G.hakim
    Nov 14 '18 at 5:49


















  • Share your code so we can analize

    – G.hakim
    Nov 13 '18 at 5:27











  • that for sure is not a navigation bar. It is just a black part of your layout. There is likely something wrong with your code.

    – Vladyslav Matviienko
    Nov 13 '18 at 5:35











  • @G.hakim I edit my question with the styles code

    – Erick Velasco
    Nov 13 '18 at 12:13











  • Use Android monitor or Android Studio to dump your view hierarchy and inspect where this black area origins from. It could also be that your have simply not sized your view to occupy that area.

    – Cheesebaron
    Nov 13 '18 at 16:06











  • I agree with what @Cheesebaron has to say use Android studio with dumped code and check for whats covering the black area

    – G.hakim
    Nov 14 '18 at 5:49

















Share your code so we can analize

– G.hakim
Nov 13 '18 at 5:27





Share your code so we can analize

– G.hakim
Nov 13 '18 at 5:27













that for sure is not a navigation bar. It is just a black part of your layout. There is likely something wrong with your code.

– Vladyslav Matviienko
Nov 13 '18 at 5:35





that for sure is not a navigation bar. It is just a black part of your layout. There is likely something wrong with your code.

– Vladyslav Matviienko
Nov 13 '18 at 5:35













@G.hakim I edit my question with the styles code

– Erick Velasco
Nov 13 '18 at 12:13





@G.hakim I edit my question with the styles code

– Erick Velasco
Nov 13 '18 at 12:13













Use Android monitor or Android Studio to dump your view hierarchy and inspect where this black area origins from. It could also be that your have simply not sized your view to occupy that area.

– Cheesebaron
Nov 13 '18 at 16:06





Use Android monitor or Android Studio to dump your view hierarchy and inspect where this black area origins from. It could also be that your have simply not sized your view to occupy that area.

– Cheesebaron
Nov 13 '18 at 16:06













I agree with what @Cheesebaron has to say use Android studio with dumped code and check for whats covering the black area

– G.hakim
Nov 14 '18 at 5:49






I agree with what @Cheesebaron has to say use Android studio with dumped code and check for whats covering the black area

– G.hakim
Nov 14 '18 at 5:49













1 Answer
1






active

oldest

votes


















0














I don't know what is the error, but I fixed it changing the "Destiny Android Version" in the properties. Android 8.1 (27) instead "Use compile using SDK Version"



enter image description here



I not change the Android Version for compile.



enter image description here



And now my app is fine.



enter image description here






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273636%2fxamarin-android-has-double-black-navigation-bar-android-o%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I don't know what is the error, but I fixed it changing the "Destiny Android Version" in the properties. Android 8.1 (27) instead "Use compile using SDK Version"



    enter image description here



    I not change the Android Version for compile.



    enter image description here



    And now my app is fine.



    enter image description here






    share|improve this answer



























      0














      I don't know what is the error, but I fixed it changing the "Destiny Android Version" in the properties. Android 8.1 (27) instead "Use compile using SDK Version"



      enter image description here



      I not change the Android Version for compile.



      enter image description here



      And now my app is fine.



      enter image description here






      share|improve this answer

























        0












        0








        0







        I don't know what is the error, but I fixed it changing the "Destiny Android Version" in the properties. Android 8.1 (27) instead "Use compile using SDK Version"



        enter image description here



        I not change the Android Version for compile.



        enter image description here



        And now my app is fine.



        enter image description here






        share|improve this answer













        I don't know what is the error, but I fixed it changing the "Destiny Android Version" in the properties. Android 8.1 (27) instead "Use compile using SDK Version"



        enter image description here



        I not change the Android Version for compile.



        enter image description here



        And now my app is fine.



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 18:18









        Erick VelascoErick Velasco

        40211




        40211



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273636%2fxamarin-android-has-double-black-navigation-bar-android-o%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            How to read a connectionString WITH PROVIDER in .NET Core?

            In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

            Museum of Modern and Contemporary Art of Trento and Rovereto