mercredi 6 juillet 2016

'layout_height' attribute should be defined

I'm getting annoying "'layout_height' attribute should be defined" lint error. Although I have it defined in my style:

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="AppTheme" parent="@android:style/Theme.Light.NoTitleBar.Fullscreen">
    <item name="android:editTextStyle">@style/EditTextAppTheme</item>
    <item name="android:buttonStyle">@style/ButtonAppTheme</item>
    <item name="android:imageButtonStyle">@style/ImageButtonAppTheme</item>
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
</style>

So I tried to turn off this lint rule, but with no avail: enter image description here

How can I solve this annoying behavior? Or can I just turn off lint rules?

Thanks a lot!

Aucun commentaire:

Enregistrer un commentaire