• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Correct way to format screen

canalrun

Newbie
Hello All,
I have had some experience with Java and android development; extensive experience with Windows and embedded development.

In the few Java-based apps I've created, I run into the problem of how to create the view. I usually cobble something together to get it working, but I know there is a better way.

For example, my next app will target a smart phone. Think of three Windows stacked vertically, A, B, and C. A will be the full-screen width and fill about 60% of the screen height at the top. A will contain an image, smaller than the window, centered horizontally and vertically. B will be beneath this, full-screen width, and about 20% of the screen height containing a single line of text. C is at the bottom, about 50 pixels high, full-screen width, and will have four buttons centered and spaced evenly.

How should I be thinking when creating this layout? I'm used to Windows development where you have properties such as center or X and Y position. Java seems to be more dynamically oriented with layouts and views. What features should I be using to create the above display?

Thanks much,
Barry.
 
Back
Top Bottom