| 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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
You need to provide layout_width and layout_height on the LinearLayout too...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
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: 1365
|
|
|
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] | [My Blog] | [Samuh Varta]
|
 |
 |
|
|
subject: Screen Design Problem
|
|
|