android - Error parsing XML: not well-formed invalid token? -
i keep getting error parsing xml: not well-formed error @ android:layout_height="wrap_content". saw other answers problem opening , closing brackets, these appeared ok me. why getting error? thanks!
activity_main:
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" > <imageview android:id="@+id/imageview1" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignparentleft="true" android:scaletype="fitcenter" android:src="@drawable/ball01" /> <button android:id="@+id/button1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignbottom="@+id/imageview1" android:layout_alignleft="@+id/imageview1" android:layout_marginbottom="17dp" android:background="@drawable/mybutton_background" android:focusableintouchmode="true" android:text="enlighten me!" android:textcolor="#3f0f7f" android:textsize="32sp" android:textstyle="bold|italic" android:typeface="serif" android:visibility="visible" /> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" <----- error android:layout_alignparentleft="true" android:layout_centervertical="true" android:weightsum="1" > <view android:id="@+id/view1" android:layout_width="0dp" android:layout_height="0dp" android:layout_weight="0.2" /> <textview android:id="@+id/textview1" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.6" android:gravity="center_horizontal" android:shadowcolor="@android:color/white" android:shadowradius="10" android:textsize="32sp" /> <view android:id="@+id/view2" android:layout_width="0dp" android:layout_height="0dp" android:layout_weight="0.2" /> </linearlayout> </relativelayout>
Comments
Post a Comment