In Android, preferably in XML is it possible to overlay an image around another image?
I have an image which is a blue circle and My app retrieves an icon from an API. After the icon has been retrieved it is displayed via an ImageView.
The XML for the ImageView is:
<ImageView
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="100dp"
android:id="@+id/weather_icon"
android:scaleType="fitCenter"/>
Now I would like to "wrap" an image around this image. The XML for the image I want around the retrieved image is:
<ImageView
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="100dp"
android:scaleType="fitCenter"
android:src="@drawable/image_wrap"/>
Aucun commentaire:
Enregistrer un commentaire