aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Screen Design Problem" Watch "Screen Design Problem" New topic
Author

Screen Design Problem

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Hi,

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
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

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


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

Joined: Aug 03, 2008
Posts: 9280
    
  17

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

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: http://aspose.com/file-tools
 
subject: Screen Design Problem
 
Similar Threads
how to add a scrollbar to a view
TabHost repeating tab content
nullpointer when i try to initiate onclicklistener
How to capture the current screen from device
Layouts, bottom position