I've already tried that. It works if the bitmap is smaller than the ImageView, it aligns to the right edge correctly. But, if the bitmap is larger, its cropped at both left and right side. Seems like an ImageView can't expand to be larger than it's parent, even inside an FrameLayout.
Any trick to make a ImageView larger than it's parent FrameLayout? On Jan 16, 7:20 am, Zsolt Vasvari <[email protected]> wrote: > Use a layout that supports the android:layout_gravity attribute, such > as FrameLayout. The regular android:gravity is only used the > TextViews to position the text if the view is larger than the text. > > On Jan 16, 11:12 am, Henrik Lindqvist <[email protected]> > wrote: > > > I have a runtime generated Bitmap, for a RemoteView, that I wan't > > displayed within a ImageView without scaling, so I use > > scaleType="center". Now, if the bitmap is smaller than the ImageView I > > wan't it to gravitate to the right. Or, if the bitmap is to large, > > crop the left side. > > > ImageView seems to ignore gravity. I've tried everything. Nesing > > inside a FrameLayout etc, nothing works! Any other options? -- 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

