• ViewManager 译


    public          interface  接口

    ViewManager view的管理器

    android.view.ViewManager
    Known Indirect Subclasses  

    Class Overview类的概览


    Interface to let you add and remove child views to an Activity. To get an instance of this class, call Context.getSystemService().

    接口,让你添加和删除子views到一个activity。为了获得这个类的一个实例,可以通过调用Context.getSystemService()。

    Summary总结


    Public Methods
                abstract                                                            void        

    addView(View view, ViewGroup.LayoutParams params)           

    添加view(view,viewgroup布局参数)     

    Assign the passed LayoutParams to the passed View and add the view to the window.
                abstract                                                            void        

    removeView(View view)         

    删除view 

                abstract                                                            void        

    updateViewLayout(View view, ViewGroup.LayoutParams params)          

    更新view布局(view,viewgroup布局参数)

    Public Methods 公共方法


            public                           abstract                  void              addView       (View view, ViewGroup.LayoutParams params)    

      Added in API level 1

    Assign the passed LayoutParams to the passed View and add the view to the window. 

    Throws WindowManager.BadTokenException for certain programming errors, such as adding a second view to a window without removing the first view. 

    Throws WindowManager.InvalidDisplayException if the window is on a secondary Display and the specified display can't be found (see Presentation).

    共有抽象方法:addView(view,viewgroup布局参数)

    分配这个被传递的布局参数 到 被传递的这个view,并将这个view添加到window中。一些编程错误可能会抛出WindowManager.BadTokenException。例如,添加第二个view到一个window然而却没有移调第一个view。如果这个window在第二个Display,但是这个指定的display却没有被发现(请见 Presentation)。

    Parameters
    view          The view to be added to this window.
    params          The LayoutParams to assign to view.

            public                           abstract                  void              removeView       (View view)    

    抽象方法删除View

      Added in API level 1
     

            public                           abstract                  void              updateViewLayout       (View view, ViewGroup.LayoutParams params)

    抽象方法更新view布局(view,viewgroup布局参数)

  • 相关阅读:
    IO输入输出流
    IDEA项目创建的保存方式
    JAVA File类的学习
    构造方法私有化
    写好文献综述的5个技巧
    毕业设计:文献参考(20)
    毕业设计:文献参考(19)
    毕业设计:文献参考(18)
    毕业设计:文献参考(17)
    毕业设计:文献参考(16)
  • 原文地址:https://www.cnblogs.com/muyable/p/3780376.html
Copyright © 2020-2023  润新知