On Jan 16, 5:19 pm, Kostya Vasilyev <[email protected]> wrote: > I think it should work to put it inside a frame layout with exact values for > width/height (specifying maximum image size before cropping occurs). Then on > the image view, specify layout_gravity=right, and width/height as > wrap_content. >
layout_gravity=right, and width/height as wrap_content is what I do now. Almost works. Setting width/height on the FrameLayout is a problem. It's an AppWidget so I don't really know the size. How does this affect the offset of the child? If only ImageView could honor gravity this wouldn't be a problem. Or setting custom typefaces through xml. Sigh. > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > 16.01.2011 19:06 пользователь "Mark Murphy" <[email protected]> > написал: > > > On Sun, Jan 16, 2011 at 11:02 AM, Henrik Lindqvist > > <[email protected]> wrote: > >> 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. > > > Of course. That's a rule for any container/child relationship in Android. > > >> Any trick to make a ImageView larger than it's parent FrameLayout? > > > Move it outside of the FrameLayout into some larger container. Or, > > expand the FrameLayout. > > > -- > > Mark Murphy (a Commons Guy) > >http://commonsware.com|http://github.com/commonsguy > >http://commonsware.com/blog|http://twitter.com/commonsguy > > > _Android Programming Tutorials_ Version 3.1 Available! > > > -- > > 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]<android-developers%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- 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

