• Android Afianl框架(1)——FinalActivity注解


    java.lang

       1.@Deprecated

               源代码标记@Deprecated是在JDK1.5中作为内置的annotation引入的,用于表明类(class)、方法(method)、字段(field)已经不再推荐使用,并且在以后的JDK版本中可能将其删除,编译器在默认情况下检测到有此标记的时候会提示警告信息。 

      2.@Override
          这个方法是从父类/接口 继承过来的,需要你重写一次

      3.@SuppressWarnings

         批注允许您选择性地取消特定代码段(即,类或方法)中的警告

    android.view.ViewDebug

      1.@CapturedViewProperty

         This annotation can be used to mark fields and methods to be dumped when the view is captured. Methods with this annotation must have no arguments and must return a valid type of data.

     2.@ExportedProperty

      This annotation can be used to mark fields and methods to be dumped by the view server.
     3.@FlagToString

          Defines a mapping from a flag to a String.
     4.@IntToString

              Defines a mapping from an int value to a String.

    net.tsz.afinal.annotation.sqlite  

     1.@Id

      主键注解
     2.@OneToMany

      一对多注解
     3.@Property

      属性注解
     4.@Table

      数据库表注解
     5.@Transient

    忽略属性注解(如果该属性添加这个注解,afinal的orm功能将忽略该属性)

    net.tsz.afinal.annotation.view

         1.@Select


         2.@ViewInject

               此注册         @ViewInject(id=R.id.textView) TextView textView; //这里使用了afinal的ioc功能

     待续...

     
  • 相关阅读:
    冒泡型事件
    非IE浏览器中table标签出现边框的问题
    (转).NET使用一般处理程序生成验证码
    如何使用FreeTextBox
    如何使用DropDownList进行数据绑定并获取值
    (转).NET中获取字符串的MD5码
    (转).NET在后置代码中输入JS提示语句(背景不会变白)
    五大组件之activity(1)
    五大组件之activity(2)Activity的生命周期
    listview里子项有按钮的情况
  • 原文地址:https://www.cnblogs.com/royi123/p/3009112.html
Copyright © 2020-2023  润新知