Problem with view widths in Android emulator
Having a bit of an issue and hope you guys can help me out, here.
I have a window with the width set to ''100%'. Inside that window, I've added views (using
createView) width widths set to
'50%'`.
The visual effect I'm trying to acheive is that the views take up one side of the screen.
Instead this is what I get: Screenshot
It seems to only happen on Android (emulator and device), but not on the iPhone.
Any idea what's going on?
1 Answer
-
This is an old question, I realize. However, we discovered this weekend that the Android SDK does not handle percentages. You'll need to set an absolute width and height.