Android 如何实现在单击时变为全屏的图像滑块?

Android 如何实现在单击时变为全屏的图像滑块?,android,image,slider,fullscreen,Android,Image,Slider,Fullscreen,如何添加单击时变为全屏的图像滑块? 我想能够预览全屏模式的图像,并能够分享或缩放它。我可以通过哪些方式实现此功能?使用此功能缩放图像,并使用共享意图共享图像 Bitmap icon = mBitmap; Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/jpeg"); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); icon.compress

如何添加单击时变为全屏的图像滑块? 我想能够预览全屏模式的图像,并能够分享或缩放它。我可以通过哪些方式实现此功能?

使用此功能缩放图像,并使用共享意图共享图像

Bitmap icon = mBitmap;
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/jpeg");
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
icon.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
File f = new File(Environment.getExternalStorageDirectory() + File.separator + "temporary_file.jpg");
try {
    f.createNewFile();
    FileOutputStream fo = new FileOutputStream(f);
    fo.write(bytes.toByteArray());
} catch (IOException e) {                       
        e.printStackTrace();
}
share.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/temporary_file.jpg"));
startActivity(Intent.createChooser(share, "Share Image"));

当点击时,滑块会变成全屏吗@Milancreate一个全屏片段并打开它,你能给出链接或文章吗?