• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create proper layouts in Android?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to ask question to Lucas Jordan and Pieter Greyling that how to design or develop proper layouts for screen in any android project development?

I am new to android and just now from 3 months working on a android project which is basically for tablets. But when I used fill parent option it isn't working well and need to give hard quoted values of screen resolution. It worked for that tablet but not on different one as it's of another screen resolution.

So basically i want to know how to develop such kind of screens in androids which were smart enough to adjust any screen of any size?

Please help me regarding this as I am stuck here in major issue over it.

Thanks!
 
Ranch Hand
Posts: 136
Android Mac Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
You should use


Thanks
Pratik Goswami

 
Ruturaj Vaidya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you Pratik but when designing some complicated layouts it's not possible with "fill parent". i'm having some issues over complex layouts only...
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with you, once you get to a little complicated UIs, it becomes difficult to create correct layouts.

I use DroidDraw, and took some time to learn how to use it, and what happens when I change settings and add layout managers to see what happens. I like that you can load any xml layout file you have and see what it will look like, as well as how it can generate the xml for you.

It isn't perfect and most complicated UIs will still be difficult to write, but maybe that means we just have to find easier UIs to create to get the same points across.

Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic