• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

All controls of layout xml not shown in emulator  RSS feed

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!!
Posts: 4179
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.
Hang a left on main. Then read this tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!