tags:

views:

71

answers:

2
+2  A: 

At least I can help you with the "Button" Problem: The magic attribute you missed is android:orientation

Without this attribute android take android:orientation="horizontal" as set. That means that every view is lined up on the horizontal line, so right of your button is your grid, which cant be displayed because your LinearLayout in which you have your button has layout_width="fill_parent"

One last tip: less is more, if you have only one view inside a layout, remove the layout and just place the view. (if you only want to have one button in your LinearLayout)

WarrenFaith
I knew I'd missed something. I'm getting closer to the result I want. Thanks a bunch!
jlindenbaum
A: 

Hi, were you able to solve this? I'm a NooB to this and want to create exactly what you asked for - reusable header/footer and a side bar. So far I can inflate the views fine, but none of the buttons seem to work in the inflated view.

Not sure how to go about it. Any help would be appreciated.

Thanks!

Sreedevi J
Hey, sorry for the late response. I solved it by using the <include tag on views. So each activity gets its view, which includes the two static views (header/footer) everything in between has a "wrap" height with a weight of 1.0 to help it "float" and resize automatically.
jlindenbaum