展会信息港展会大全

如何令ImageView可伸缩
来源:互联网   发布日期:2016-01-14 11:31:02   浏览:2385次  

导读:dependencies { compile 'it.sephiroth.android.library.imagezoom:imagezoom:+' } private void initView() { ImageView imageView = (ImageView) findViewById(R.id.image); imageView.setImageDrawable(getResources().getDrawable(R.drawable.subwaymap)...

dependencies {

compile 'it.sephiroth.android.library.imagezoom:imagezoom:+'

}

private void initView() {

ImageView imageView = (ImageView) findViewById(R.id.image);

imageView.setImageDrawable(getResources().getDrawable(R.drawable.subwaymap));

}

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context="com.pku.ipku.ui.setting.PkuMap">

<it.sephiroth.android.library.imagezoom.ImageViewTouch

android:id="@+id/image"

android:layout_width="match_parent"

android:layout_height="match_parent" />

</RelativeLayout>

赞助本站

人工智能实验室

相关热词: android开发 android教程

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港