@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_set_image);
Preferences.makeAppFullscreen(this, Color.TRANSPARENT);
setEnter();
if (savedInstanceState != null)
{
image = savedInstanceState.getString(URL);
title = savedInstanceState.getString(NAME);
text = savedInstanceState.getString(TEXT);
}
Bundle bundle = getIntent().getExtras();
if (bundle != null)
{
image = bundle.getString(URL);
title = bundle.getString(NAME);
text = bundle.getString(TEXT);
}
wallpaper = (DoubleTapImageView)findViewById(R.id.id_image);
progress = (ProgressBar)findViewById(R.id.id_progress);
apply = (ImageView)findViewById(R.id.id_apply);
mColor = Preferences.getAttributeColor(this, R.attr.colorAccent);
anim = AnimationUtils.loadAnimation(this, R.anim.slide_left_from_right);
_anim = AnimationUtils.loadAnimation(this, R.anim.slide_right_from_left);
exitTransition = ActivityTransition.with(this.getIntent())
.to(this, wallpaper, "walls")
.duration(300)
.start(savedInstanceState);
apply.setOnLongClickListener(applyLongClick);
}
ActivitySetWallpapers.java 文件源码
java
阅读 50
收藏 0
点赞 0
评论 0
项目:Mire
作者:
评论列表
文章目录