Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liuguangqiang/IPicker
A material design style pictures selector.
https://github.com/liuguangqiang/IPicker
Last synced: about 1 month ago
JSON representation
A material design style pictures selector.
- Host: GitHub
- URL: https://github.com/liuguangqiang/IPicker
- Owner: liuguangqiang
- Created: 2016-09-18T06:54:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T03:03:28.000Z (over 4 years ago)
- Last Synced: 2024-08-02T01:21:58.376Z (4 months ago)
- Language: Java
- Homepage: https://github.com/liuguangqiang/IPicker
- Size: 4.53 MB
- Stars: 310
- Watchers: 7
- Forks: 55
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - IPicker - Material Design 风格的图片选择器 (图片)
README
IPicker
======================================
A material design style pictures selector.## Screenshot
## Usage
### Gradle```
dependencies {
implementation 'com.liuguangqiang.ipicker:IPicker:1.1.0'
}
```### Maven
```com.liuguangqiang.ipicker
IPicker
1.1.0
pom```
### Manifest
```
```
### Theme
```<item name="colorPrimary">@color/color_primary</item>
<item name="colorPrimaryDark">@color/color_primary_dark</item>
<item name="colorAccent">@color/color_primary</item>
```### Open the picker
```java
IPicker.setLimit(1);
IPicker.open(context);
```Return the selected images by EventBus.
```
@Subscribe
public void onEvent(IPickerEvent event) {
}
```Also support to get the selected images by a listener.
```
IPicker.setOnSelectedListener(new IPicker.OnSelectedListener() {@Override
public void onSelected(List paths) {}});
```## License
Copyright 2016 Eric Liu
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.