Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: whats wrong with this xml

  1. #1
    Member
    Join Date
    Apr 2013
    Posts
    83
    Thanks
    7
    Thanked 3 Times in 3 Posts

    Default whats wrong with this xml

    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.


  2. #2
    Member
    Join Date
    Apr 2013
    Posts
    83
    Thanks
    7
    Thanked 3 Times in 3 Posts

    Default Re: whats wrong with this xml

    k this worked for me in case others have same problem

    Right-click your project folder Android Tools -> Fix Project Properties.

    stupid of me sorry wish i could delete thread but am new to eclipse and android

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: whats wrong with this xml

    No worries. A lesson learned and shared multiplies its value.

Similar Threads

  1. whats wrong
    By Jdino23 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: January 9th, 2014, 04:42 PM
  2. WHATS WRONG
    By subodhkr in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 8th, 2012, 07:47 AM
  3. whats wrong with this one....
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 9
    Last Post: October 6th, 2009, 10:08 AM
  4. help whats wrong
    By silverspoon34 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 3rd, 2009, 01:41 AM