开发者

Layout within TabHost and TabWidget

I'm extremely new to Android and just trying to get my head around these layouts.

I've got several tabs which contain a LinearLayout with a TabWidget and 开发者_JAVA百科FrameLayout as children. In the FrameLayout I'd like a certain percentage at the bottom of the screen to be reserved for a table, the rest above to be filled with an image.

How can I replicate this in the Android XML?

Any ideas much appreciated.


Inside of the FrameLayout, put a LinearLayout. In the LinearLayout, have your "table" (TableLayout?) and image (ImageView?). Set the table's and image's android:layout_height="0px" and android:layout_weight to be whatever percentage you want for each.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜