@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_zoom_image);
AmbientMode.attachAmbientSupport(this);
// Check if integer was actually given.
if (!(getIntent().hasExtra(getString(R.string.intent_extra_image)))) {
throw new NotFoundException("Expecting extras");
}
// Grab the resource id from extras and set the image resource.
int value = getIntent().getIntExtra(getString(R.string.intent_extra_image), 0);
ImageView expandedImage = findViewById(R.id.expanded_image);
expandedImage.setImageResource(value);
}
ZoomImageActivity.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:android-WearAccessibilityApp
作者:
评论列表
文章目录