phil wrote:
> I want to show two images in a linear view - the foreground image and
> the next image (imagine being able to swipe to the next photo).
> 
> Here's some ascii art to show what I'm trying to achive :)
> 
> +-------------------+
> |                     |-------+
> |                     |        |
> |                     |        |
> |                     |-------+
> +-------------------+
> 
>     <LinearLayout android:orientation="horizontal"
>                   android:layout_height="240px"
>                   android:layout_width="fill_parent">
>               <ImageView android:id="@+id/NextPic"
>                          android:layout_width="200px"
>                          android:layout_height="200px"
>                          android:layout_gravity="right"
>                          android:src="@drawable/default_pic">
>               </ImageView>
>               <ImageView android:id="@+id/CurrentPic"
>                          android:layout_width="240px"
>                          android:layout_height="240px"
>                          android:src="@drawable/default_pic">
>               </ImageView>
>       </LinearLayout>
> 
> Instead what's happening is that it's putting the images side by side
> (predictable).

LinearLayout does not support overlapping. Try using RelativeLayout --
widgets later in the XML definition are higher on the Z-axis and will
appear "above" widgets earlier in the XML definition.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 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