I'm making a layout and applying some styles. so:

```
<style name="LayoutSmallMap">
        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">180dip</item>
        <item name="android:background">@drawable/rounded_corner</item>
        <item name="android:layout_margin">5dip</item>
        <item name="android:padding">3dip</item>
</style>

```

And I use this:

```
<LinearLayout 
       style="@style/LayoutSmallMap">

</LinearLayout>

```

But when I test the phone before it gives error and now states:

**LinearLayout does not set the required layout\_height attribute**

He is not finding the attribute in my style?

**Do not know if it's the best solution, but it worked for me:**
Target SDK: 2.3 and
**minSdkVersion="7"**