How to create android custom view?
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
精彩评论