hi am trying to learn android programming. im following a tube tut to get started i know java but xml is new to me and am having problems with it the code below shows no errors in activity_main.xml but the file shows an error in the ADT directory tree and this is preventing me from importing (R.layout.activity_main) to the java class can anyone spot the error cos i cant seem to find it thanks
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Your Total is 0" android:textSize="45dp" android:layout_gravity="center" android:gravity="center" android:id="@+id/tvDisplay]" /> <Button android:layout_height="wrap_content" android:layout_width="250dp" android:text="++" android:textSize="20dp" android:layout_gravity="center" android:gravity="center" android:id="@+id/badd" /> <Button android:layout_height="wrap_content" android:layout_width="250dp" android:text="--" android:textSize="20dp" android:layout_gravity="center" android:gravity="center" android:id="@+id/bsub" /> </LinearLayout>
--- Update ---
k this worked for me in case others have similare problem
Right-click your project folder Android Tools -> Fix Project Properties.