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 4 of 4

Thread: AIDE - LogCat - you must supply a layout_width attribute.

  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AIDE - LogCat - you must supply a layout_width attribute.

    No matter what I place in TextView layout_width it occurs the same way.

    <Text view
             android:id"@+id/dob"
              android:width="0dp"
              android:height="30dp"
              android:textColour="#000000"
              android:text="Enter D.O.B DD/MM/YYYY"
    />

    If more code is needed then I'll be more than happy to provide it.

    I'm mixing practical and theory as I'm only learning java.
    Thanks in advance.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: AIDE - LogCat - you must supply a layout_width attribute.

    Have you tried doing what the IDE is suggesting: add a layout_width attribute?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jan 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: AIDE - LogCat - you must supply a layout_width attribute.

    Quote Originally Posted by Norm View Post
    Have you tried doing what the IDE is suggesting: add a layout_width attribute?
    I have, changing dp. Wrap_content, match_parent and so on.

    P.S my apologies for posting on the wrong section.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: AIDE - LogCat - you must supply a layout_width attribute.

    So if you supply a a layout_width attribute, the IDE complains that you need to supply a layout_width attribute?
    Check your spelling.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Assign layout_width programmatically
    By ptia in forum Android Development
    Replies: 2
    Last Post: December 16th, 2012, 04:09 AM
  2. [HELP] How can I retrieve attribute/method?
    By k4it0xtr3me in forum Object Oriented Programming
    Replies: 0
    Last Post: January 21st, 2011, 02:18 AM
  3. what happens when you supply the same name of a nonexistent input file?
    By etidd in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: March 28th, 2010, 11:59 PM