|
| 1 | +# DroidAwesome |
| 2 | +Custom Views that support FontAwesome directly |
| 3 | + |
| 4 | +## Views Supported: ## |
| 5 | +* TextView |
| 6 | +* AutoComplete TextView |
| 7 | +* EditText |
| 8 | +* Switch |
| 9 | +* CheckBox |
| 10 | +* Radio Button |
| 11 | +* Button |
| 12 | +* Toggle Button |
| 13 | + |
| 14 | +## Screenshot ## |
| 15 | + |
| 16 | + |
| 17 | +## Gradle Setup ## |
| 18 | +To be added soon |
| 19 | + |
| 20 | +## Maven Setup ## |
| 21 | +To be added soon |
| 22 | + |
| 23 | +## How to use it? ## |
| 24 | +1. Define required icons in res/values/icons.xml |
| 25 | +``` |
| 26 | +<?xml version="1.0" encoding="utf-8"?> |
| 27 | + <resources> |
| 28 | + <string name="android_icon_font_awesome"></string> // http://fontawesome.io/cheatsheet/ |
| 29 | + </resources> |
| 30 | +``` |
| 31 | +2. Now use custom view in activity.xml |
| 32 | +``` |
| 33 | +<com.lmntrx.livin.library.droidawesome.DroidAwesomeAutoCompleteTextView |
| 34 | + android:layout_width="wrap_content" |
| 35 | + android:layout_height="wrap_content" |
| 36 | + android:textSize="65sp" |
| 37 | + android:textColor="#0f0" |
| 38 | + android:gravity="center" |
| 39 | + android:text="@string/android_icon_font_awesome"/> |
| 40 | +``` |
| 41 | + |
| 42 | +## ChangeLog ## |
| 43 | +### 1.0.0 ### |
| 44 | +* Added custom TextView |
| 45 | +* Added custom AutoComplete TextView |
| 46 | +* Added custom EditText |
| 47 | +* Added custom Button |
| 48 | +* Added custom ToggleButton |
| 49 | +* Added custom Switch |
| 50 | +* Added custom CheckBox |
| 51 | +* Added custom Radio Button |
| 52 | + |
| 53 | +## Copyright ## |
| 54 | +``` |
| 55 | +Copyright 2016 DroidAwesome - Livin Mathew |
| 56 | +
|
| 57 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 58 | +you may not use this file except in compliance with the License. |
| 59 | +You may obtain a copy of the License at |
| 60 | +
|
| 61 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 62 | +
|
| 63 | +Unless required by applicable law or agreed to in writing, software |
| 64 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 65 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 66 | +See the License for the specific language governing permissions and |
| 67 | +limitations under the License. |
| 68 | +``` |
0 commit comments