zoukankan      html  css  js  c++  java
  • AB_CustomView

    Custom View class

    All custom view requires to implement the IBindableView interface and implement the function:

    public ViewAttribute<CustomViewWidget, ?> getViewAttribute(String attributeName)  

    注:最新API 是
      

    /**
    * Each View Attribute should be created once only.
    * The Custom View is suppose to create and return the designated attribute here
    * Once it is created, it will be maintained by the Binder, just like other system ViewAttributes


    * If you want to override the default behavior of other ViewAttributes, you can return it here
    * or else, returning null will pass the control to super classes' implementation.
    * To access the view Attribute, you can either maintain a reference to the attribute, or use
    * Binder.getAttributeForView(View, AttributeId);


    * @param attributeId : Attribute Id
    * @return the ViewAttribute, or null if don't want to handle
    */

    public ViewAttribute<? extends View, ?> createViewAttribute(String attributeId);

    View Attribute

    >... 待续

  • 相关阅读:
    java练习6
    java练习5
    java练习4
    java练习3
    java练习2
    java练习1
    用代码实现判断字符串的开头和结尾
    语句练习题2
    语句练习题1
    值类型和引用类型的区别
  • 原文地址:https://www.cnblogs.com/pinotao/p/3300616.html
Copyright © 2011-2022 走看看