小编Eas*_*asy的帖子

使用缩放和滚动打开ImageView

我想通过按下按钮在ImageView中打开一个图像.我需要图像可缩放和可滚动.我怎样才能最好地完成这个?谢谢!

图像可以是PNG或JPG

非常感谢!

这是我的新代码,你不介意浏览并给我一个TAG,ZOOM等所有问题的解决方案...我也知道我需要添加我的图像res到它

    package com.DS;

import java.io.File;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.util.FloatMath;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

public class CheatMathActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    final Button button1 = (Button) findViewById(R.id.button1);
    button1.setOnTouchListener(new View.OnTouchListener(){
        public void onTouch(View v) {
   //Opens Algebra Image 
             public …
Run Code Online (Sandbox Code Playgroud)

android scroll zoom button imageview

11
推荐指数
2
解决办法
2万
查看次数

res/raw /中的网页

我想使用网页来显示我的内容,因为这将利用android中内置的缩放和滚动功能.我知道我想在SD卡上设置网页以允许不能访问互联网,但我不知道如何从res/raw /文件夹中调用它.我可以得到一些帮助吗?谢谢

android webpage

1
推荐指数
1
解决办法
3732
查看次数

标签 统计

android ×2

button ×1

imageview ×1

scroll ×1

webpage ×1

zoom ×1