diff --git a/library/src/main/java/com/getbase/floatingactionbutton/FloatingActionButton.java b/library/src/main/java/com/getbase/floatingactionbutton/FloatingActionButton.java
index <HASH>..<HASH> 100644
--- a/library/src/main/java/com/getbase/floatingactionbutton/FloatingActionButton.java
+++ b/library/src/main/java/com/getbase/floatingactionbutton/FloatingActionButton.java
@@ -26,11 +26,15 @@ import android.support.annotation.IntDef;
 import android.util.AttributeSet;
 import android.widget.ImageButton;
 
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
 public class FloatingActionButton extends ImageButton {
 
   public static final int SIZE_NORMAL = 0;
   public static final int SIZE_MINI = 1;
 
+  @Retention(RetentionPolicy.SOURCE)
   @IntDef({ SIZE_NORMAL, SIZE_MINI })
   public @interface FAB_SIZE {
   }
Fix issue with @FAB_SIZE annotation

RetentionPolicy.SOURCE has to be used, otherwise the IDE will expect
literals (i.e. 0, 1) to be used, instead of constants (SIZE_MINI,
SIZE_NORMAL).