If I have a lot of TextViews serving as item labels, I thought I could extract everything that's common about them into a style, and in the layout use only
<TextView style="@style/label" android:text="Foo"/>
<TextView style="@style/label" android:text="Bar"/>
with style like:
<style name="label">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
But when I do this, it works fine on emulator and device, but the Android XML editor complains that "<TextView>" does not set the required layout_height attribute.
Is there some reason on why it is reporting this warning?