开发者

Layout for android

I need to have a layout for my widget, 开发者_开发技巧but I don't know how to arrage my images on widget screen.

I need to have 4 small Images on first row

then 2 Images on 2nd row

1 Image on 3rd row

and 1 Image on 4th row

Could you please someone create the xml file ?


You could use TableRows within a TableLayout.

Refer Hello TableLayout for an example.


Using the hierarchyviewer.bat in your sdk|tools folder along the way might be a very good idea as well.


LinearLayout(vertical)
    LinearLayout(horizontal)
        ImageView
        ImageView
        ImageView
        ImageView
   LinearLayout(horizontal)
        ImageView
        ImageView
   ImageView
   ImageView

Okay?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜