https://github.com/omega-r/omegacentericonbutton
https://github.com/omega-r/omegacentericonbutton
appcompatbutton centerbutton centericonbutton
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/omega-r/omegacentericonbutton
- Owner: Omega-R
- Created: 2018-03-21T09:56:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-02T09:42:43.000Z (over 2 years ago)
- Last Synced: 2025-10-14T19:32:20.288Z (8 months ago)
- Topics: appcompatbutton, centerbutton, centericonbutton
- Language: Java
- Size: 241 KB
- Stars: 63
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://jitpack.io/#Omega-R/OmegaCenterIconButton)
[](https://opensource.org/licenses/MIT)
# OmegaCenterIconButton
It's AppCompatButton with centered text and icon. Allow you add icons to left, right and both side.
# Installation
To get a Git project into your build:
**Step 1.** Add the JitPack repository to your build file
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
**Step 2.** Add the dependency
```
dependencies {
implementation 'com.github.Omega-R:OmegaCenterIconButton:0.0.3@aar'
// The same version as 0.0.3 for androidX
implementation 'com.github.Omega-R:OmegaCenterIconButton:0.0.4@aar'
}
```
# Usage
Example of usage in xml layout
```
```
# License
```
The MIT License
Copyright 2017 Omega-R
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```