比显示设备的屏幕大图像 [英] Displaying an image larger than the device's screen

查看:87
本文介绍了比显示设备的屏幕大图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想不调整要显示的图像的图像时,在尺寸比设备的屏幕上。它具有在屏幕上的中心。我怎样才能做到这一点?

I'd like to display an image larger, in size, than a device's screen without resizing the image. It has to be centered on the screen. How can I do this?

推荐答案

使用滚动型与图像视图和滚动视图的设置高度

use scrollview with image view and set height of that scroll view

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">
    <ImageView
        android:id="@+id/accountIcon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />

</ScrollView>

这篇关于比显示设备的屏幕大图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆