having trouble with my xml file. Error parsing xml :invalid token



I am having some troubles with my xml file. when i compile my android program, it says "error in parsing XML file" . I have been trying to locate this error but havent been sucessful. can anyone help? here is my code



<LinearLayout xmlns:android="http://ift.tt/nIICcg"
xmlns:tools="http://ift.tt/LrGmb4"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.pace.daniel.pace.Timmer"
android:layout_margin="10px"
android:background="@drawable/bg"
android:weightSum="1" >




<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:weightSum="1"
android:orientation="horizontal">
<TextView
android:id="@+id/cityText"
style="?android:attr/textAppearanceMedium"

android:text="Alexandria,VA"
android:layout_weight="0.5"
android:textSize="14sp"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_width="match_parent" />
<TextView
android:id="@+id/condDescr"
android:layout_marginLeft="25dp"
android:layout_width="match_parent"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="Clear(Sky Clear)"
/>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content"

android:weightSum="1"
android:orientation="horizontal">
<TextView
android:id="@+id/temp"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:text="30"
android:textAlignment="center"
android:layout_marginStart="60dp"
android:layout_marginLeft="60dp"
android:textColor="#ffffff"
android:textSize="100sp"

/>

< ImageView
android:id="@+id/condIcon"
android:layout_weight="0.5"
android:layout_width="wrap_content"
android:layout_marginRight="60dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"

/>

</LinearLayout>

<TextView
android:id="@+id/timerValue"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="00 : 00"
android:layout_marginBottom="15dp"
android:textAlignment="center"
android:textColor="#ffffff"
android:textSize="50sp" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1">

<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/start"
android:layout_weight="0.33"
android:background="#00000000"
android:src="@drawable/stb"
android:focusable="true" />


<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:weightSum="1" >

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="00:km"
android:textSize="22sp"
android:textAlignment="center"
android:gravity="center_horizontal"

android:id="@+id/distance"
/>

</LinearLayout>



<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/reset"
android:layout_weight="0.33"
android:background="#00000000"

android:src="@drawable/reset" />

</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="20dp"
android:weightSum="1">

<TextView
android:id="@+id/pressLab"
android:layout_gravity="center"
android:layout_width="0dp"
android:textColor="#e1e1e1"
android:layout_marginLeft="60dp"
android:layout_height="wrap_content"
android:text="Pressure"
android:textAlignment="center"
android:layout_weight="0.5"
android:textSize="22sp" />



<TextView
android:id="@+id/humLab"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textSize="22sp"
android:textColor="#e1e1e1"
android:layout_weight="0.5"
android:text="Humidity" />


</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:weightSum="1">

<TextView
android:id="@+id/press"
android:textSize="20sp"
android:layout_marginLeft="60dp"
android:text="1018.1pa"
android:layout_weight="0.5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"

/>
<TextView
android:id="@+id/hum"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="71.0%"
android:layout_marginLeft="50dp"
android:layout_weight="0.5"
android:textSize="20sp"
android:layout_gravity="center"
/>
</LinearLayout>

<TextView
android:id="@+id/windLab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:layout_marginTop="10dp"
android:layout_gravity="center"
android:textColor="#e1e1e1"
android:text="Wind" />

<TextView
android:id="@+id/windSpeed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:textSize="20sp"
android:text="6.7mps"
android:layout_gravity="center"
/>


<TextView
android:id="@+id/windDeg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
/>

</LinearLayout>

No comments:

Post a Comment