I want to overlap two imageView.
I tried View.offsetLeftAndRight, but it does not work.
My code is as below:
------
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:orientation="horizontal" android:layout_width="320px"
        android:gravity = "bottom"
        android:id = "@+id/xxx"
        android:layout_height="200px">

 <ImageView xmlns:android="http://schemas.android.com/apk/res/android";
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"


                        android:src = "@drawable/test1"
                        android:id = "@+id/image1"/>

  <ImageView xmlns:android="http://schemas.android.com/apk/res/
android"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"

                        android:src = "@drawable/test2"
                        android:id = "@+id/image2"/>

 </LinearLayout>
----
in onCreate:
ImageView i = (ImageView)findViewById(R.id.image2);
        i.offsetLeftAndRight(-100);
--~--~---------~--~----~------------~-------~--~----~
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