The framework supports both dp and dip, there's no reason to get rid of either one. As for weight, ignoring the height/width is not a solution. The weight is used to distribute the remaining empty space, and the remaining empty space is computed by looking at the width/height. The combination of width/height is also useful to impose a minimum size. For instance width=200dip + weight=1 means "take at least 200 dip and then the remaining space if available." This is extremely powerful to create UIs that scale nicely across multiple form factors.
On Wed, Jun 1, 2011 at 11:08 PM, Chris <crehb...@gmail.com> wrote: > Hey Romain, > > Speaking of LinearLayouts and density-independent pixels can you proclaim > once and for all whether, going forward, its going to be 'dip' or 'dp', or > will the framework always support both? > > Sort of back on topic, can linear layouts with weighting simply ignore the > layout_[height|width] attributes? I had a bitch of a time with a custom > list view (horizontal and vertical) before I found (conflicting) info about > setting the relevant layout attribute to 0dp. > > Thanks, > - C > > -- > 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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