将图像增大到超出屏幕尺寸
我想在屏幕上显示图像,但图像边缘将大于屏幕本身的尺寸。 即,如果最大屏幕宽度为 X,那么我希望图像的宽度为 X +100,最大屏幕高度为 Y,则图像高度为 Y +100。
我希望此选项能够将图像向右/向左移动,并且图像仍然会显示在整个屏幕上。
I want to display an image on the screen but the image edges will be larger than the size of the screen itself.
IE if the maximum screen width is X then I want the width of the image will be X +100 and maximum screen height is Y then the image height is Y +100.
I want this option for the ability to move the image to the right / left and still the image will be shown on the whole screen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,我使用
RelativeLayout
和requestLayout
函数:并在代码中生成适当的图像:
For this purpose I use
RelativeLayout
withrequestLayout
function:And in the code generate an appropriate image: