https://github.com/hotbitmapgg/nineimageview
A nine graph display controls
https://github.com/hotbitmapgg/nineimageview
Last synced: about 2 months ago
JSON representation
A nine graph display controls
- Host: GitHub
- URL: https://github.com/hotbitmapgg/nineimageview
- Owner: HotBitmapGG
- License: wtfpl
- Created: 2017-06-28T07:19:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T06:40:07.000Z (almost 8 years ago)
- Last Synced: 2025-03-26T10:03:26.195Z (2 months ago)
- Language: Java
- Homepage:
- Size: 6.52 MB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# NineImageView
[](https://jitpack.io/#HotBitmapGG/NineImageView)
A simple use of nine pictures show the control
## Screenshots
## Import
```java
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}Step 2. Add the dependency
dependencies {
compile 'com.github.HotBitmapGG:NineImageView:V1.1'
}```
## Directions
* custom properties
name | format | instructions
-----|------|----
nineImageHorizontalSpace | dimension | Horizontal Space
nineImageVerticalSpace | dimension | Vertical Space
nineImageRadius | dimension | View Radius
nineImageRatio | float | View Ratio
nineImageColumns | integer | View Columns Number## Usage
* 1.In the XML
```java
```
* 2.In the code
```java
NineImageView nineImageView = (NineImageView) findViewById(R.id.multi_image);
//set the picture url set
nineImageView.setImageUrls(imageUrls);
nineImageView.setOnClickItemListener(new NineImageView.OnClickItemListener() {
@Override
public void onClick(int i, ArrayList url) {
//set the picture click event,then do you have to do operation
}
});```
## instructions
The control of the image to load depends on the glide load library if you need to use other image You can directly copy under the lib files to your project, the framework for the image to replace it.
## About me
[](http://weibo.com/3223089177/profile?topnav=1&wvr=6&is_all=1)
An android developer in Wuhan.
If you want to make friends with me, You can focus on my weibo.
## License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATIONYou just DO WHAT THE FUCK YOU WANT TO.