Wow, thanks. Your suggestion with a larger FrameLayout fixed it!

...LinearLayout etc...
<FrameLayout
  android:layout_width="1000px"
  android:layout_height="wrap_content"
  android:layout_gravity="right">
  <ImageView
    android:id="@+id/image"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="right"
    android:scaleType="center"/>
</FrameLayout>
...LinearLayout etc...

You said a child view couldn't be larger than it's parent/container!?
Now the FrameLayout is forcefully wider than it's parents and the
whole app-widget.

Now, if I only could get the clipped edge faded for a nice "ellipsize"
effect. :)


On Jan 16, 7:38 pm, Mark Murphy <[email protected]> wrote:
> On Sun, Jan 16, 2011 at 11:48 AM, Henrik Lindqvist
>
> <[email protected]> wrote:
> >> Of course. That's a rule for any container/child relationship in Android.
>
> > If a child view can't be larger than it's parent, how does a
> > ScrollView work?
>
> The visible bounds of the child are still not bigger than the visible
> bounds of the parent.
>
> >> > 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.
>
> > I can't, it's an AppWidget.
>
> Inflate a different layout for the app widget, one where the ImageView
> is moved outside the FrameLayout into a larger container, or expand
> the FrameLayout.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to