zoukankan      html  css  js  c++  java
  • 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布局参数)

  • 相关阅读:
    数据结构Java版之基数排序(四)
    数据结构Java版之递归与迭代算法(五)
    SpringBoot项目在新电脑上的配置运行,包括JDK+MAVEN+Git+SpringBoot配置等
    .NET 控制Windows文件和目录访问权限研究(FileSystemAccessRule)
    Navicat Premium 12.0.18安装与激活
    Spring Data JPA方法定义规范
    在c/c++中调用Java方法
    在Java中调用C/C++本地库
    XP环境下C# 调用Pocess.start()时提示文件找不到的错误解决办法
    C++ 获取当前正在执行的函数的相关信息
  • 原文地址:https://www.cnblogs.com/muyable/p/3780376.html
Copyright © 2011-2022 走看看