I have an app which lays out several ImageViews symmetrically spaced from the horizontal center of the screen. To do this I use layout code like:
<ImageView ... android:layout_gravity="top|center" android:layout_marginRight="60dip" android:layout_marginTop="80dip"></ ImageView> <ImageView ... android:layout_gravity="top|center" android:layout_marginLeft="-60dip" android:layout_marginTop="80dip"></ ImageView> So I offset one +60dip from the center, and the other -60dip from the center. This has worked fine on 9 different emulators I test with, including Android 1.5, 1.6, and 2.1. But recently a user complained that after "a recent upgrade" the layout became messed up. I tried every way to replicate this issue with my existing test emulators, but only until I installed the 2.2 SDK was I able to see it. I even set up two identical Nexus One emulators, one with 2.1 and the other with 2.2, and only the 2.2 emulator has this problem with the layout. My workaround is to use either left or right gravity for all ImageViews and manually adjust them so they'll be symmetric around the center. But that's a little more tedious to design as opposed to just +/-60 dip. Has anyone else encountered this issue? -- 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

