Add visibility annotation
why is it hidden in Android View? Need it!
This commit is contained in:
parent
d88352107c
commit
4dbc0079c4
1 changed files with 12 additions and 0 deletions
12
src/main/java/org/ligi/passandroid/ui/Visibility.java
Normal file
12
src/main/java/org/ligi/passandroid/ui/Visibility.java
Normal file
|
@ -0,0 +1,12 @@
|
|||
package org.ligi.passandroid.ui;
|
||||
|
||||
import android.support.annotation.IntDef;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import static android.view.View.GONE;
|
||||
import static android.view.View.INVISIBLE;
|
||||
import static android.view.View.VISIBLE;
|
||||
|
||||
@IntDef({VISIBLE, INVISIBLE, GONE})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface Visibility {}
|
Loading…
Reference in a new issue