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 TableRow
s 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?
精彩评论