Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1.  
  2. import java.lang.annotation.ElementType;
  3. import java.lang.annotation.Retention;
  4. import java.lang.annotation.RetentionPolicy;
  5. import java.lang.annotation.Target;
  6.  
  7. /**
  8. * Created by denisroyz on 10/7/2015.
  9. * Annotate your {@link LayoutInjectorActivity } or {@link LayoutInjectorFragment }
  10. * * Example for {@link android.app.Activity}:
  11. * * @LayoutId(R.layout.layout_name)
  12. * * public class MyActivity extends LayoutInjectorActivity
  13. *
  14. * * Example for {@link android.app.Fragment}:
  15. * * @LayoutId(R.layout.layout_name)
  16. * * public class MyActivity extends LayoutInjectorActivity
  17. */
  18. @Retention(RetentionPolicy.RUNTIME)
  19. @Target({ElementType.TYPE})
  20. public @interface LayoutId {
  21.  
  22. int value();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement