android - Integer type not allowed at 'padding' for 5dp -
i have project wrote, when finished it fine code worked no errors. 1 day open eclipse , have 3 errors, 1 each in 3 of of layouts.
two cases of:
error integer type not allowed @ 'padding'
this error code:
<tablerow xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" > # line error on
the above same in 2 different layouts , code bellow third:
<textview android:id="@+id/finalbilltextview" android:layout_width="match_parent" android:layout_height="wrap_content" #line error on android:layout_span="2" android:layout_weight="1" android:text="@string/total_bill_tv" />
with error of:
error parsing xml: duplicate attribute
i dont understand how doing wrong. else in code use '5dp' or similar fine. if if delete code , retype errors go away, , wont return till reload eclipse.
i have tried creating value in dimens.xml file in values folder , referencing @dimen/ did not work ether , dont understand duplacate value @ all. eclipse error maybe?
if typo part didn't fix it(just mis typed above), doing "clean project" clears out error if using eclipse.
Comments
Post a Comment