android - Unable to find Custom Style -


one of xml files not find attributes definied in style. think style correct, works other files. not single style work. says need define layout_width , layout_height attributes, did in style.

i think it's simpler give 1 example. if need whole xml file, no problem.

<relativelayout     style="@style/relativelayout_multiplechoicefrage_aufloesung_content" >  <style name="relativelayout_multiplechoicefrage_aufloesung_content">     <item name="android:layout_width">match_parent</item>     <item name="android:layout_height">wrap_content</item>     <item name="android:orientation">vertical</item>     <item name="android:layout_marginleft">@dimen/frage_content_marginleft</item>     <item name="android:layout_marginright">@dimen/frage_content_marginright</item> </style> 

i cleaned project, didn't work.

hopefully can find solution.

thanks in advance!

did define style in same file layout (your example suggests that)? think you've put style in res/values folder this:

res/values/styles.xml

<?xml version="1.0" encoding="utf-8"?> <resources> <style name="relativelayout_multiplechoicefrage_aufloesung_content">     <item name="android:layout_width">match_parent</item>     <item name="android:layout_height">wrap_content</item>     <item name="android:orientation">vertical</item>     <item name="android:layout_marginleft">@dimen/frage_content_marginleft</item>     <item name="android:layout_marginright">@dimen/frage_content_marginright</item> </style> </resources> 

then should able reference code example right now.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -