我正在使用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);
}
}