[英]Android customimageview like whatsapp?
I want to display image like whatsapp first display half image when user click on image in popup display full image i have all square images but image should be display half我想显示像whatsapp这样的图像,当用户在弹出显示完整图像中单击图像时,首先显示半图像我有所有方形图像,但图像应该显示一半
Example :例子 :
Required Imageview Like This :需要这样的图像视图:
What is current display什么是电流显示
You can use following line of code in your xml to display only center part of image in your imageview您可以在 xml 中使用以下代码行在 imageview 中仅显示图像的中心部分
android:scaleType="centerInside"
this will help you another way to crop and display image 这将帮助您以另一种方式裁剪和显示图像
您可以在 xml 中使用以下行
android:scaleType="fitXY"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.