> > In fact, this is just a trial code. What I really want to do is to > > tile a ViewGroup with a whole bunch of ImageViews. I want to specify > > the absolute location and dimensions of eachImageViewinside the > > parent ViewGroup. However, it looks to me that I cannot do this. I > > found there is AbsoluteLayout, but it is deprecated. So do you know of > > any option to achieve this? > > Write your own ViewGroup. > > Or, don't use widgets at all, and draw on the Canvas, the way 2D games do.
Hi Mark, If I can tile a ViewGroup as I planned originally, I can tile beyond the visible region. Then when it is scrolled, Android can just quickly scroll in the new tiles (with whatever hardware acceleration it can use). If I use Canvas, I need to redraw the entire Canvas using the tiles (basically, copying tile buffer onto Canvas using drawBitmap), would this be slower than the first option, because it cannot benefit from the possible hardware acceleration? This is just my concern. Your expertise is highly appreciated! Thanks, Frank > > Bear in mind that there is a massive range of screen resolutions > (based on size/density), which is why AbsoluteLayout is deprecated, as > it does not lend itself to creating UIs that work well on everything > from a 3" phone to a 10" tablet to a 42" TV. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

