Android:使用带Android-Query的TouchImageView时的空白图像

时间:2015-04-18 17:43:59

标签: android android-query touchimageview

我正在使用Android-Query库在Fragment内加载多个图像。当我按下图像时,新的Activity开始,以全屏模式显示该图像 - >就我而言,我看到的只是一张空白的图片......

public class FullScreenImage extends Activity {

    String[] imageUrls = Data.Cars;
    private AQuery aq;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.item_pager_image);

        aq = new AQuery(this);       

        Intent i = getIntent();

        int position = i.getExtras().getInt("id");

        if(i.getExtras().containsKey("id")){
        position = i.getExtras().getInt("id");
    } else {
        this.finish();
    }

        final TouchImageView FullImage = (TouchImageView) findViewById(R.id.image_no1);
     // FullImage.setZoom(1); <- tried this but it's not working
        aq.id(R.id.image_no1).progress(R.id.loading).image(imageUrls[position], false, false);    

    }
}

0 个答案:

没有答案