安卓开发怎样让ImageView在Activity设置后下次打开还在????
privatevoidgetImageToView(Intentdata){Bundleextras=data.getExtras();if(extras!=null){...
private void getImageToView(Intent data) {
Bundle extras = data.getExtras();
if (extras != null) {
Bitmap photo = extras.getParcelable("data");
Drawable drawable = new BitmapDrawable(photo);
faceImage.setImageDrawable(drawable);
}
} 展开
Bundle extras = data.getExtras();
if (extras != null) {
Bitmap photo = extras.getParcelable("data");
Drawable drawable = new BitmapDrawable(photo);
faceImage.setImageDrawable(drawable);
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询