Here are some notes and code samples for implementing custom layouts like a flow layout
http://satyakomatineni.com/item/4359 This covers *************** Inherit from ViewGroup Override OnMeasure Use a pencil and paper to figure out your algorithm Use ViewGroup.measureChild(). Don't directly use child.measure() (Unless you know what you are doing) Use layout params to stuff the origin of each child view Take into accound padding Override OnLayout Just retrieve the layout param object and use its origin Implement custom LayoutParams with any additional layout attributes Override layout params construction methods -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en