I have a GridView which, depending on the situation, may have 3 or 4
columns.  The column widths need to change depending on whether 3 or 4
are being displayed.  I therefore can't hardcode the width into the
layout XML containing the GridView, it must be set via the
setColumnWidth command.

The problem is that setColumnWidth can only set the width in pixels,
and I want to specify the width in dp.  How can I do this, or must I
create 2 layouts with the column width hardcoded into each in dp?

-- 
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

Reply via email to