Xamarin Android Has Double Black Navigation Bar [Android O]
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.
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
|
show 1 more comment
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.
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 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
|
show 1 more comment
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.
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
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.
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
android xamarin xamarin.android navigationbar
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
|
show 1 more comment
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
|
show 1 more comment
1 Answer
1
active
oldest
votes
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"
I not change the Android Version for compile.
And now my app is fine.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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"
I not change the Android Version for compile.
And now my app is fine.
add a comment |
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"
I not change the Android Version for compile.
And now my app is fine.
add a comment |
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"
I not change the Android Version for compile.
And now my app is fine.
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"
I not change the Android Version for compile.
And now my app is fine.
answered Nov 14 '18 at 18:18
Erick VelascoErick Velasco
40211
40211
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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