ViewManager 译

public          interface  接口

ViewManager view的管理器

 
android.view.ViewManager
Known Indirect Subclasses  
AbsListViewBase class that can be used to implement virtualized lists of items. 
AbsSpinnerAn abstract base class for spinner widgets. 
AbsoluteLayout      This class was deprecated      in API level 3.    Use FrameLayout, RelativeLayout             or a custom layout instead.  
AdapterView<T extends Adapter>An AdapterView is a view whose children are determined by an Adapter
AdapterViewAnimatorBase class for a AdapterView that will perform animations when switching between its views. 
AdapterViewFlipperSimple ViewAnimator that will animate between two or more views that have been added to it. 
AppWidgetHostViewProvides the glue to show AppWidget views. 
CalendarViewThis class is a calendar widget for displaying and selecting dates. 
DatePickerThis class is a widget for selecting a date. 
DialerFilter 
DrawerLayoutDrawerLayout acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from the edge of the window. 
ExpandableListViewA view that shows items in a vertically scrolling two-level list. 
FragmentBreadCrumbsHelper class for showing "bread crumbs" representing the fragment stack in an activity. 
FragmentTabHostVersion of FragmentTabHost that can be used with the platform Fragment APIs. 
FrameLayoutFrameLayout is designed to block out an area on the screen to display a single item. 
Gallery      This class was deprecated      in API level 16.    This widget is no longer supported. Other horizontally scrolling widgets include HorizontalScrollView and ViewPager from the support library.  
GestureOverlayViewA transparent overlay for gesture input that can be placed on top of other widgets or contain other widgets. 
GridLayoutA layout that places its children in a rectangular grid
GridViewA view that shows items in two-dimensional scrolling grid. 
HorizontalScrollViewLayout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. 
ImageSwitcher 
LinearLayoutA Layout that arranges its children in a single column or a single row. 
ListViewA view that shows items in a vertically scrolling list. 
MediaControllerA view containing controls for a MediaPlayer. 
NumberPickerA widget that enables the user to select a number form a predefined range. 
PagerTabStripPagerTabStrip is an interactive indicator of the current, next, and previous pages of a ViewPager
PagerTitleStripPagerTitleStrip is a non-interactive indicator of the current, next, and previous pages of a ViewPager
RadioGroup

This class is used to create a multiple-exclusion scope for a set of radio buttons. 

RelativeLayoutA Layout where the positions of the children can be described in relation to each other or to the parent. 
ScrollViewLayout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. 
SearchViewA widget that provides a user interface for the user to enter a search query and submit a request to a search provider. 
SlidingDrawer      This class was deprecated      in API level 17.    This class is not supported anymore. It is recommended you base your own implementation on the source code for the Android Open Source Project if you must use it in your application.  
SlidingPaneLayoutSlidingPaneLayout provides a horizontal, multi-pane layout for use at the top level of a UI. 
SpinnerA view that displays one child at a time and lets the user pick among them. 
StackView 
SwipeRefreshLayoutThe SwipeRefreshLayout should be used whenever the user can refresh the contents of a view via a vertical swipe gesture. 
TabHostContainer for a tabbed window view. 
TabWidgetDisplays a list of tab labels representing each page in the parent's tab collection. 
TableLayout

A layout that arranges its children into rows and columns. 

TableRow

A layout that arranges its children horizontally. 

TextSwitcherSpecialized ViewSwitcher that contains only children of type TextView
TimePickerA view for selecting the time of day, in either 24 hour or AM/PM mode. 
TwoLineListItem      This class was deprecated      in API level 17.    This class can be implemented easily by apps using a RelativeLayout or a LinearLayout.  
ViewAnimatorBase class for a FrameLayout container that will perform animations when switching between its views. 
ViewFlipperSimple ViewAnimator that will animate between two or more views that have been added to it. 
ViewGroup

A ViewGroup is a special view that can contain other views (called children.) The view group is the base class for layouts and views containers. 

ViewPagerLayout manager that allows the user to flip left and right through pages of data. 
ViewSwitcherViewAnimator that switches between two views, and has a factory from which these views are created. 
WebView

A View that displays web pages. 

WindowManagerThe interface that apps use to talk to the window manager. 
ZoomControlsThe ZoomControls class displays a simple set of controls used for zooming and provides callbacks to register for events. 

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布局参数)

转载于:https://www.cnblogs.com/muyable/p/3780376.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值