znieh99
Fortgeschrittenes Mitglied
- 12
Hallo Forum,
ich habe ein style welches eine Trennlinie repräsentiert. Das funktioniert auch, die Ausgabe ist ok. Wenn ich aber im layout auf Design gehe bekomme ich die Meldung:
NOTE: One or more layouts are missing the layout_width or layout_height attributes. ...
<View> does not set the required layout_height attribute:
Mein style:
Mein Layout:
ich habe ein style welches eine Trennlinie repräsentiert. Das funktioniert auch, die Ausgabe ist ok. Wenn ich aber im layout auf Design gehe bekomme ich die Meldung:
NOTE: One or more layouts are missing the layout_width or layout_height attributes. ...
<View> does not set the required layout_height attribute:
Mein style:
Code:
<!-- Trennlinie -->
<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:background">@color/colorYellow</item>
</style>
Mein Layout:
Code:
<!-- Trennlinie -->
<View style="@style/Divider"
android:id="@+id/divider2"
android:layout_below="@+id/short_text"
android:layout_marginTop="5dp"
android:layout_marginBottom="4dp"/>