Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

All controls of layout xml not shown in emulator

 
achuthan mukundarajan
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added a search bar which i got from an online tutorial onto my project.But the other controls are not shown in the file



Only the content in the relativelayout and the listview is shown , the rest of the controls are not shown . Please help!!
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
achuthan mukundarajan wrote:

You have a vertical LinearLayout. You put in a RelativeLayout that is 40dp tall. Then, below that you put in a ListView that is as tall as the parent. Since the the ListView is defined with a hieght the same size as the parent't height, there will, naturally, not be any room in the parent for anything else... it would all be pushed off-view and clipped from the screen. You need to change the ListView size to something that doesn't push the rest of the elements off screen.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic