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

提个优化建议 #191

Open
CCTV-11 opened this issue May 5, 2023 · 0 comments
Open

提个优化建议 #191

CCTV-11 opened this issue May 5, 2023 · 0 comments

Comments

@CCTV-11
Copy link

CCTV-11 commented May 5, 2023

你现在这种写法,需要在各个页面有图片的地方编写相关代码,可否把图片的集合通过Bundle带入到一个新的Activity或者fragment , 在这个新的页面统一管理,这样会减少代码的冗余。
Bundle args = new Bundle();
args.putInt(AppDefs.ARG_POSITION, index);
args.putSerializable("attachments", (Serializable) fileInfos);
UIDevice.showAdaptiveUI(getActivity(), StackActivity.class, PhotoFragment.class.getName(), args);

我这样创建一个新的Fragment , 把图片集合带过来,在预览图片,会是白色的,物理返回键按一下,会短暂的出现预览的大图。

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