Comments (4)
你是说GalleryConfig全局配置吗?这个不能设置全局,每个人的需求都不一样,只能说满足大部分人,如果你的配置是全局的,你可以把GalleryConfig弄成成员变量。每次启动传入启动配置还是相对合理些。
from galleryfinal.
这个全局不是所有人一样,也不是指默认。
是指一个应用内,比如UIL,init的时候配置下参数,后面用到的时候都不再需要传入配置参数了,直接调用对应的方法就好了。
或者我在应用启动的时候配置一下,后面其他页面调用的时候不用再传入配置了,因为整个应用里配置基本都一样,如果个别页面需要不一样的话可以传入具体配置,不传配置的话默认调用一开始配置的参数。
from galleryfinal.
哦~你的意思是:app默认的公共配置,而不是框架的默认配置,比如开启编辑功能几乎所有的操作都需要开启,没必要每次都enableEdit。
from galleryfinal.
应该算公共配置,就是对于统一的只要配置一次就行,没必要每次都传完整的配置进去,然后接口就可以用一开始说的方式,调用只需要传入Activity或者Fragment即可。当然还要保留把配置传入的接口,用于需要单独处理的地方。
from galleryfinal.
Related Issues (20)
- 关于相机的问题 HOT 2
- 裁剪崩溃 ExifInterface only supports saving attributes on JPEG formats. HOT 1
- 手机存储爆满,点击照片的剪切旋转等功能崩溃
- 裁剪过小尺寸的照片崩溃 HOT 2
- 沉浸状态栏遮挡
- 安卓7.0 HOT 2
- 使用联想的机子,调用系统的拍照功能之后返回到当前的应用中,当前应用直接崩溃。
- 安卓6.0出现这个错误 HOT 8
- 裁剪过小的图片会造成崩溃,建议作者能try{}catch
- 作者没有做沉浸式的适配吗?
- 设置已选列表,重新打开后无效?
- android 7.0
- android 8.1 Caused by: android.os.FileUriExposedException HOT 1
- 你好,请问设置照片的勾选按钮和未勾选按钮是什么,我没找到,麻烦看到了回一下,挺急的。
- 为什么要获取电话权限?
- 配置功能里面不能直接设置单选
- 图片显示重复
- createNewFile
- save与restore保存key不一致
- 是否支持Androidx? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galleryfinal.