放置在图像的右下角的小图像按钮 [英] Placing small image button on right corner of a image
本文介绍了放置在图像的右下角的小图像按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能够拍摄的照片,并把它网格视图,但是,有一个拍摄照片,我想放在一个图像右上角的小图像按钮。
I am able to take the pictures and put it grid view but, Has a picture is taken i want to place small image button on right corner of a image.
推荐答案
试试这个..
<ImageView
android:id="@+id/thumbImage"
android:layout_width="134dp"
android:layout_height="121dp"
android:scaleType="fitXY"
android:layout_centerInParent="true"
android:src="@drawable/antartica1" />
<ImageButton
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/buttonanimation"
android:layout_margin="3dp"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true" />
这篇关于放置在图像的右下角的小图像按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文