Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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 at

http://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.