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 <henrik.lindqv...@gmail.com> 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 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