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

您好辛苦了:StyledDialog.buildBottomSheetGv()这个有bug #26

Open
usedlie opened this issue Jun 7, 2017 · 1 comment
Open

您好辛苦了:StyledDialog.buildBottomSheetGv()这个有bug #26

usedlie opened this issue Jun 7, 2017 · 1 comment
Labels

Comments

@usedlie
Copy link

usedlie commented Jun 7, 2017

正常show以后,用手指下滑,这个弹窗会消失——问题来了:当再次show的时候,就不再显示了(但是界面会有遮罩,只是弹窗不显示);
重新进界面则可以显示(provinceDialog重新创建了实例),但假设我不进行下滑把弹窗弄没,而是按返回键,则没有这个bug的

�代码如下:
` if (provinceDialog == null) {
int columnsNum = 3;
List datas = new ArrayList<>();
datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"1"));
datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"222"));
datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"333333"));
datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"444"));
datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"55"));
datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"666"));

        datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"7777"));
        datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"fddsf"));
        datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"67gfhfg"));
        datas.add(new BottomSheetBean(R.mipmap.ic_launcher,"oooooppp"));

        ConfigBean configBean = StyledDialog.buildBottomSheetGv("title", datas, "bottomTxt", columnsNum, new MyItemDialogListener() {
            @Override
            public void onItemClick(CharSequence charSequence, int i) {
                LogUtil.d(TAG,"onItemClick(),charSequence:"+ charSequence + "/// i:"+i);
            }
        });
        provinceDialog = configBean.show();
    }else
        provinceDialog.show();`
@usedlie
Copy link
Author

usedlie commented Jun 7, 2017

至于为什么我这么写,只是想减少一点开销

@hss01248 hss01248 added the bug label Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants