How To Overlap Two Images Each Other
how to add images above the image? this is my screen shot http://imgur.com/Yh4DqnJ which have only 1 image in background now i want to add two imagebutton like this image http://im
Solution 1:
Best way to use overlap images is through frame layout Try this code
<FrameLayoutandroid:layout_width="fill_parent"android:layout_height="fill_parent"xmlns:android="http://schemas.android.com/apk/res/android"><ImageViewandroid:src="@drawable/onlymobilepro"android:scaleType="fitCenter"android:layout_height="fill_parent"android:layout_width="fill_parent"/><TextViewandroid:text="This is Frame Layout!!!"android:textSize="24px"android:textColor="#cc0000"android:layout_height="fill_parent"android:layout_width="fill_parent"android:gravity="top"/><TextViewandroid:text="Learn Android Development At onlyMobilePro.com"android:textSize="24px"android:textColor="#00dd00"android:layout_height="fill_parent"android:layout_width="fill_parent"android:gravity="center"/></FrameLayout>
Solution 2:
For overlapping images you should probably use Framelayout, For more info on Frame layout see this link,
Post a Comment for "How To Overlap Two Images Each Other"