Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create proper layouts in Android?

 
Ruturaj Vaidya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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!
 
Pratik Goswami
Ranch Hand
Posts: 136
Android Chrome Mac
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You should use


Thanks
Pratik Goswami

 
Ruturaj Vaidya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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...
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic