Skip to content

Commit dd632a1

Browse files
author
Evgenii
authored
Create README.md
1 parent ca4183d commit dd632a1

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

README.md

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
Android-ExpandIcon
2+
================
3+
4+
Nice and simple customizable implementation of Google style up/down arrow.
5+
6+
![image](https://github.com/zagum/Android-ExpandIcon/blob/master/art/expand_icon_demo.gif)
7+
8+
Compatibility
9+
-------------
10+
11+
This library is compatible from API 15 (Android 4.0.3).
12+
13+
Download
14+
--------
15+
16+
Add it in your root build.gradle at the end of repositories:
17+
18+
```groovy
19+
allprojects {
20+
repositories {
21+
...
22+
maven { url "https://jitpack.io" }
23+
}
24+
}
25+
```
26+
27+
Add the dependency
28+
29+
```groovy
30+
dependencies {
31+
compile ''
32+
}
33+
```
34+
35+
Usage
36+
-----
37+
38+
Default implementation:
39+
40+
```xml
41+
<com.github.zagum.expandicon.ExpandIconView
42+
android:layout_width="24dp"
43+
android:layout_height="24dp"/>
44+
```
45+
46+
Fully customized implementation:
47+
48+
```xml
49+
<com.github.zagum.expandicon.ExpandIconView
50+
android:layout_width="24dp"
51+
android:layout_height="24dp"
52+
app:animationDuration="300"
53+
app:color="#000"
54+
app:colorLess="@color/colorPrimary"
55+
app:colorMore="@color/colorAccent"
56+
app:roundedCorners="false"
57+
app:switchColor="true"/>
58+
```
59+
60+
Public methods:
61+
62+
```java
63+
expandIconView.switchState();
64+
65+
expandIconView.setState(ExpandIconView.LESS, true);
66+
67+
expandIconView.setFraction(.3f, true);
68+
```
69+
70+
See sample project for more information
71+
72+
License
73+
-------
74+
75+
Copyright 2016 Evgenii Zagumennyi
76+
77+
Licensed under the Apache License, Version 2.0 (the "License");
78+
you may not use this file except in compliance with the License.
79+
You may obtain a copy of the License at
80+
81+
http://www.apache.org/licenses/LICENSE-2.0
82+
83+
Unless required by applicable law or agreed to in writing, software
84+
distributed under the License is distributed on an "AS IS" BASIS,
85+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
86+
See the License for the specific language governing permissions and
87+
limitations under the License.

0 commit comments

Comments
 (0)