开发者

Layout for android

开发者 https://www.devze.com 2023-01-24 02:58 出处:网络
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 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

精彩评论

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