如何在没有任何代码的情况下缩放图像视图?
我有一些大局观,我想把它放到其中一项活动中。如何在不使用任何代码的情况下简单地调整它的大小,例如仅使用带有 ADT 的 Eclipse?谢谢。
I have some big picture and I want to put it to the one of the activities. How can I simply resize it without any code, e.g. using only Eclipse with ADT? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您想在布局中缩放它。如果是这样,您可以在 XML 中使用
ScaleType
。只需使用android:scaleType
标签即可。更多信息请访问:http://developer.android.com/reference/ android/widget/ImageView.ScaleType.htmlI'm assuming you want to scale it in your layout. If so, you can use
ScaleType
in XML. Just use theandroid:scaleType
tag. More info available here: http://developer.android.com/reference/android/widget/ImageView.ScaleType.html