Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentPage shows Toolbar background when set as MainPage, but only on Lollipop devices. #20

Open
mikepham opened this issue Jun 21, 2015 · 1 comment

Comments

@mikepham
Copy link
Contributor

Steps

  1. Create ContentPage and set to MainPage.
  2. Start app.

Expectation

Page should show without any Toolbar background.

@mikepham
Copy link
Contributor Author

This is due to the CoordinatorLayout. There is now an option in the AppCompatFormsActivity in the form of the EnableCoordinatorLayout property. By default, this is false and does not surround the default Forms LinearLayout with a CoordinatorLayout.

However, turning it off means when the app is switched, there is a black bar above the app. Turning it on makes that go away, but then you get the Toolbar space allocated. There is no easy fix for this currently. It is suggested to set the EnableCoordinatorLayout to true (before the call to base.OnCreate) and avoid using just a normal ContentPage and instead opt for one of the navigation patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant