diff options
author | Aurelien Hubert <aurel.hubert@gmail.com> | 2016-06-08 15:39:20 +0200 |
---|---|---|
committer | Joey Rizzoli <joey@cyanogenmoditalia.it> | 2016-06-09 22:52:29 +0200 |
commit | 27ca79e6411408f54139e72fbac694e85a125fe5 (patch) | |
tree | f438d23c9ca8ebf99e11a9bee64951fdd04a1b92 | |
parent | 3fa8147cb8560f560db64454030029e642d39eb0 (diff) | |
download | android_external_ahbottomnavigation-27ca79e6411408f54139e72fbac694e85a125fe5.tar.gz android_external_ahbottomnavigation-27ca79e6411408f54139e72fbac694e85a125fe5.tar.bz2 android_external_ahbottomnavigation-27ca79e6411408f54139e72fbac694e85a125fe5.zip |
Added constructor
Added annotations for parameters
-rw-r--r-- | ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigationItem.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigationItem.java b/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigationItem.java index 9c920f3..24f5529 100644 --- a/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigationItem.java +++ b/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigationItem.java @@ -35,7 +35,7 @@ public class AHBottomNavigationItem { * @param title Title * @param resource Drawable resource */ - public AHBottomNavigationItem(String title, int resource) { + public AHBottomNavigationItem(String title, @DrawableRes int resource) { this.title = title; this.drawableRes = resource; } @@ -46,7 +46,7 @@ public class AHBottomNavigationItem { * @param color Background color */ @Deprecated - public AHBottomNavigationItem(String title, int resource, int color) { + public AHBottomNavigationItem(String title, @DrawableRes int resource, @ColorRes int color) { this.title = title; this.drawableRes = resource; this.color = color; @@ -70,6 +70,17 @@ public class AHBottomNavigationItem { * * @param title String * @param drawable Drawable + */ + public AHBottomNavigationItem(String title, Drawable drawable) { + this.title = title; + this.drawable = drawable; + } + + /** + * Constructor + * + * @param title String + * @param drawable Drawable * @param color Color */ public AHBottomNavigationItem(String title, Drawable drawable, @ColorInt int color) { |