|
| 1 | +[](https://jitpack.io/#Omega-R/OmegaCenterIconButton) |
| 2 | +[](https://opensource.org/licenses/MIT) |
| 3 | + |
| 4 | +# OmegaCenterIconButton |
| 5 | +It's AppCompatButton with centered text and icon. Allow you add icons to left, right and both side. |
| 6 | + |
| 7 | +<p align="center"> |
| 8 | + <img src="/images/example.png?raw=true" width="300" height="533" /> |
| 9 | +</p> |
| 10 | + |
| 11 | +# Installation |
| 12 | +To get a Git project into your build: |
| 13 | + |
| 14 | +**Step 1.** Add the JitPack repository to your build file |
| 15 | +``` |
| 16 | +allprojects { |
| 17 | + repositories { |
| 18 | + ... |
| 19 | + maven { url 'https://jitpack.io' } |
| 20 | + } |
| 21 | +} |
| 22 | +``` |
| 23 | +**Step 2.** Add the dependency |
| 24 | +``` |
| 25 | +dependencies { |
| 26 | + compile 'com.github.Omega-R:OmegaCenterIconButton:0.0.1@aar' |
| 27 | +} |
| 28 | +``` |
| 29 | + |
| 30 | +# Usage |
| 31 | +Example of usage in xml layout |
| 32 | +``` |
| 33 | + <com.omega_r.libs.centericonbutton.OmegaCenterIconButton |
| 34 | + android:layout_width="match_parent" |
| 35 | + android:layout_height="wrap_content" |
| 36 | + android:drawableLeft="@drawable/ic_android_black_24dp" |
| 37 | + android:text="Great" |
| 38 | + android:textSize="14sp" |
| 39 | + android:theme="@style/BlueButtonStyle"/> |
| 40 | +``` |
| 41 | + |
| 42 | +# License |
| 43 | +``` |
| 44 | +The MIT License |
| 45 | +
|
| 46 | +Copyright 2017 Omega-R |
| 47 | +
|
| 48 | +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and |
| 49 | +associated documentation files (the "Software"), to deal in the Software without restriction, |
| 50 | +including without limitation the rights to use, copy, modify, merge, publish, distribute, |
| 51 | +sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
| 52 | +furnished to do so, subject to the following conditions: |
| 53 | +
|
| 54 | +The above copyright notice and this permission notice shall be included in all copies or substantial |
| 55 | +portions of the Software. |
| 56 | +
|
| 57 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
| 58 | +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 59 | +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 60 | +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 61 | +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 62 | +``` |
0 commit comments