<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/phone_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:src="@drawable/phone_on"
</ImageView>
<Button
android:id="@+id/toggleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Toggle Silent Mode"
</Button>
</LinearLayout>
1 Replies - 974 Views - Last Post: 24 September 2012 - 02:56 PM
#1
Error parsing XML: not well-formed (invalid token)
Posted 23 September 2012 - 05:20 PM
Whats wrong with my code? I keep getting "Error parsing XML: not well-formed (invalid token)" when i compile!
Replies To: Error parsing XML: not well-formed (invalid token)
#2
Re: Error parsing XML: not well-formed (invalid token)
Posted 24 September 2012 - 02:56 PM
You are missing ">" for both ImageView and Button.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|