【发布时间】:2020-01-30 05:00:45
【问题描述】:
我正在尝试在我的应用程序中制作动画,但是当我单击按钮 t 制作动画时,我的应用程序崩溃并且 logcat 出现此错误
“访问被拒绝查找属性“hwservicemanager.ready”“ 请帮我解决它
signup_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(Login.this, SignUp.class);
// startActivity(intent);
//Attach all the elements those you want to animate in design
Pair[] pairs = new Pair[7];
pairs[0] = new Pair<View, String>(logo_image, "logo_image");
pairs[1] = new Pair<View, String>(logoText, "logo_text");
pairs[2] = new Pair<View, String>(sloganText, "logo_desc");
pairs[3] = new Pair<View, String>(username, "username_tran");
pairs[4] = new Pair<View, String>(password, "password_tran");
pairs[5] = new Pair<View, String>(login_btn, "login_button_tran");
pairs[6] = new Pair<View, String>(signup_btn, "signup_button_tran");
//wrap the call in API level 21 or higher
// if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Login.this, pairs);
startActivity(intent, options.toBundle());
// }
}
});
【问题讨论】:
标签: java android android-studio