We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling MessageBar messageBar = new MessageBar(this); from an activity extending ActionBarActivity (Support Library v7) gives an XML Inflating error:
Binary XML file line #25: Error inflating class android.support.v7.internal.widget.ActionBarView
It seems that by "injecting" the message layout into the activity layout breaks the ActionBarView layout, thus causing the error.
I've tried the same with a regular activity and it works. Can you give it a try and see if it works on your side?
The text was updated successfully, but these errors were encountered:
Don't attach MessageBar until the content view has been set, otherwise it would be behind your content.
Sorry, something went wrong.
For MessageBar to work with Them.AppCompat,following must be included in
MessageBar
Them.AppCompat
<item name="messageBarContainerStyle">@style/MessageBar.Container</item> <item name="messageBarTextStyle">@style/MessageBar.Message</item> <item name="messageBarButtonStyle">@style/MessageBar.Button</item>
in themes.xml of
themes.xml
otherwise ,there will be force close stating to supply layout_width attribute.
layout_width
No branches or pull requests
Calling MessageBar messageBar = new MessageBar(this); from an activity extending ActionBarActivity (Support Library v7) gives an XML Inflating error:
Binary XML file line #25: Error inflating class android.support.v7.internal.widget.ActionBarView
It seems that by "injecting" the message layout into the activity layout breaks the ActionBarView layout, thus causing the error.
I've tried the same with a regular activity and it works.
Can you give it a try and see if it works on your side?
The text was updated successfully, but these errors were encountered: