开发者

How to create android custom view?

开发者 https://www.devze.com 2023-02-15 16:50 出处:网络
I have a picture in my app that can be split into 6 开发者_如何学Gox 6 or 5 x 5 or 4 x 4 grib depending on the users selection.

I have a picture in my app that can be split into 6 开发者_如何学Gox 6 or 5 x 5 or 4 x 4 grib depending on the users selection.

Can someone tell me how to create a tile view that will house the pieces, and the user should be able to move the pieces around the view.

Any help will be greatly appreciated.

Thanks.


You might check out the Drag and Drop Demo in API Demos.

As far as the grid, your best bet is probably TableLayout, as GridView has a one-dimensional view of your data.


take a frame layout and oweride the onDraw method

0

精彩评论

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