The moose likes Android and the fly likes Screen Design Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Screen Design Problem" Watch "Screen Design Problem" New topic

Screen Design Problem

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252

I am designing a layout in android.Where I need one frame and button.The problem I can not make out this.
I tried LinearLayout-->FrameLayout-->Button

Exception is coming.
Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

You need to provide layout_width and layout_height on the LinearLayout too...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

Also to be able to view the button, you'll have to set the orientation of your linear layout to vertical...
Monu Tripathi

Joined: Oct 12, 2008
Posts: 1369

Not sure why you need two container Layouts(LinearLayout and FrameLayout). You are unnecessarily adding extra level in the view hierarchy.

[List of FAQs] | [Android FAQ] | [Samuh Varta]
I agree. Here's the link:
subject: Screen Design Problem
It's not a secret anymore!