I make a layout and apply 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 an error, and now it says:
LinearLayout does not set the required layout_height attribute
Does he not find an attribute in my style?
I don't know if this was the best solution, but it worked for me:
Target SDK: 2.3 and
minSdkVersion = "7"
source
share