Sign Up

Text views ending up at top of display

Posted Apr 11, 2018 by Joe Droid

  1. Joe Droid

    Joe Droid Member Scrap Metal

    Messages:
    3
    Likes Received:
    2
    Hello, just starting so I tried Adam's "Let's make a Star Wars quiz". Was able to follow along pretty good but am now stuck. The first text view that asks the question is positioned properly on my emulator display.
    However the multiple choice answers are all crammed up at the very top of the display and are, of course, unreadable.

    Same thing happened when i tried the simple Hello World and added just one text view - it also ended up at the top of the display. Using a virtual device emulator (Pixel API 27). Here's link to the making a quiz page.
    https://www.androidauthority.com/make-a-star-wars-quiz-828959/

    What am I doing wrong? How do I get this text to display properly?

    Thanks,
    J
     
  2. Joe Droid

    Joe Droid Member Scrap Metal

    Messages:
    3
    Likes Received:
    2
    Well, I re-read the text of the lesson and figured it out myself - forgot to set the constraints on the views vertically. So... <embarrassed laughter> ... sorry for taking up resources before doing a thorough analysis myself. Perhaps another newbie will have same problem and read my reply?
     

Share This Page