I have a layout with the follwoing:
Framelayout
with two ImageView
s. Each ImageView
has one image.
What I am trying to acheive is: on touch on the ImageView
, the touch area should become transparent and show the image below.
Layout XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/rect" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/i2" />
</FrameLayout>
</LinearLayout>
So basically on touch on imageView2
the touch area should show the image from imageView1
.
I just need some pointers or references.