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

Caused by: java.lang.RuntimeException: Binary XML file line #18: You must supply a layout_width attribute. #8

Open
Jameshuihui opened this issue Aug 19, 2016 · 2 comments

Comments

@Jameshuihui
Copy link

always prompt :Caused by: java.lang.RuntimeException: Binary XML file line #18: You must supply a layout_width attribute.

@whiteLT
Copy link

whiteLT commented Aug 22, 2016

do this:

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="expandableItemStyle">@style/ExpandableItemStyle</item>
</style>

<style name="ExpandableItemStyle">
    <item name="android:layout_height">@dimen/item_size</item>
    <item name="android:layout_width">@dimen/item_size</item>
    <item name="android:background">@drawable/bg_item_with_title</item>
    <item name="android:layout_margin">@dimen/item_margin</item>
    <item name="android:textColor">@color/gray</item>
    <item name="android:textSize">@dimen/item_text_size</item>
</style>

@pedrovgs
Copy link
Contributor

pedrovgs commented Sep 14, 2016

Hi @whiteLT and @Jameshuihui sorry for the delay. As you've already found the issue I've sent a PR updating the project README.md with this information. #10

pedrovgs added a commit that referenced this issue Oct 17, 2016
…sclaimer

Update README.md with a layout style configuration disclaimer to fix #7 and #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants