Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionSheetDialog点击后,跳转新的activity会卡顿 #54

Open
ppg408331701 opened this issue Sep 29, 2017 · 0 comments
Open

ActionSheetDialog点击后,跳转新的activity会卡顿 #54

ppg408331701 opened this issue Sep 29, 2017 · 0 comments

Comments

@ppg408331701
Copy link

比如下面的代码,跳转到新的activity时, ActionSheetDialog会调dismiss()这个有动画的方法,但是这时由于startActivity正在启动,所以ActionSheetDialog的消失动画会非常卡顿,我看GPU曲线都红了一片了,
现在是使用没有动画的消失方法,但是终究不如有动画的好看

dialog.setOnOperItemClickL(new OnOperItemClickL() {
            @Override
            public void onOperItemClick(AdapterView<?> parent, View view, int position, long id) {
                switch (position) {
                    case 4:
 Intent intent = new Intent(mActivity,DetailActivity.class);
                        intent.putExtra(DetailActivity.INTENT_FRAGMENT_INDEX_KEY, DetailActivity.FRAGMENT_FLOWDETAILS);
                        intent.putExtra(DetailActivity.INTENT_TITLE_KEY, "详情");
                        startActivity(intent);
                        break;
                }
                dialog.dismiss();
            }
        });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant