view.draw暗黑3牧牛杖怎么使用用

(时光)渐渐过去,荏苒
大家都在背:
1. Don't write or draw on the wall.
不要在墙上写字或画画.
来自《简明英汉词典》
2. He's a nice lad, and is quick on the draw.
他是个不错的小伙子, 而且头脑也灵活.
来自《简明英汉词典》
3. Put a chimney on the stove to make the fire draw.
把火拔一拔.
来自《现代汉英综合大词典》
4. He draw on his cigarette and blow out a stream of smoke.
他吸了一口香烟,吐出来一股烟雾.
来自辞典例句
5. Everyone had two sheets of paper to draw on.
每个人有两张可画画的纸.
来自辞典例句
PHRASAL VERB
凭借;利用;动用 If you draw on or draw upon something such as your skill or experience, you make use of it in order to do something.&
【语法信息】:V P n
He drew on his experience as a yachtsman to make a documentary programme.
他凭借曾经做过快艇驾驶员的经验制作了一档纪实节目。
PHRASAL VERB
(时光)渐渐过去 As a period of time draws on, it passes and the end of it gets closer.&
【语法信息】:V P
As the afternoon drew on we were joined by more of the regulars.
随着午后时光的渐渐消逝,又有些老主顾加入到我们当中来了。
1. 穿上, 戴上
The man drew on his trousers hurriedly.
那人匆匆穿上裤子。
2. 渐渐来临
Winter is drawing on.
冬天渐渐来临了。
3. 鼓励, 鼓动(某人)
Her refusal only drew her lover on.
她的拒绝只能促使其恋人继续追求她。
4. 利用;动用
0){var rand = parseInt(Math.random() * (000)+100000);top.location.href='/'+encodeURIComponent(document.getElementById('s').value.trim().replace( / /g, '_'))+'?renovate='+}else{top.location.href='/'+encodeURIComponent(document.getElementById('s').value.trim().replace( / /g, '_'));};}" action="/">
查过的词自动加入生词本
Tip:此功能设置只能在登录状态下生效
需要改进的内容:
单词大小写
其他(请在下面补充描述)
错误描述:
您还可在这里补充说明下 O(∩_∩)O~
方便的话,请您留下一种联系方式,便于问题的解决:根据 API 级别筛选:
&&&↳
android.view.View
已知直接子类
这个控件是一个带有时针和分针的模拟时钟.&
Displays an arbitrary image, such as an icon.&
A view that renders a virtual .&
Visual indicator of progress in some operation.&
Provides a dedicated drawing surface embedded inside of a view hierarchy.&
Displays text to the user and optionally allows them to edit it.&
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.&
ViewStub 是不可见的不占用布局空间的视图,用于在运行时延迟加载布局资源.&
已知间接子类
&T&extends&&,
用于实现条目的虚拟列表的基类.&
spinner小部件的抽象基类.SDK 用户可能不需要使用该类.&
class 已声明不赞成使用。
或者自定义布局代替.&
&T&extends&&
AdapterView 是内容由
来决定的视图类.&
Provides the glue to show AppWidget views.&
An editable text view that shows completion suggestions automatically
while the user is typing.&
Button 代表按钮小部件.用户通过按下按钮,或者点击按钮来执行一个动作.&
复选框是包含选中和未选中两种状态的特殊的双状态按钮.&
对 TextView 的扩展,支持
简单的计时器类.&
一个包含选中/未选中两个状态的按钮.当按钮按下或单击时自动改变状态.&
用于选择年月日的类日历布局视图.&
类似 AnalogClock 的数字时钟,显示到秒.&
EditText 只是对 TextView 进行了少量变更,以使其可以编辑.&
A view that shows items in a vertically scrolling two-level list.&
Specialization of
for showing and interacting with the
extracted text in a full-screen input method.&
FrameLayout is designed to block out an area on the screen to display
a single item.&
An implementation of SurfaceView that uses the dedicated surface for
displaying OpenGL rendering.&
选中中心条目的横向滚动列表.&
A transparent overlay for gesture input that can be placed on top of other
widgets or contain other widgets.&
在二维滚动网格中显示条目的视图.网格中的条目来自与视图关联的 .&
用于布局的容器,可以放置让用户使用滚动条查看的视图层次结构,允许视图结构比手机的屏幕大.&
显示一个可以被用户点击的图片按钮.默认情况下,ImageButton 看起来像一个普通的
,拥有标准的背景色,并在不同状态时变更颜色.&
A Layout that arranges its children in a single column or a single row.&
用于显示多个条目的纵向滚动列表视图.条目数据来自于与该类关联的 .&
一个包含媒体播放器控件的视图.包含了一些典型的按钮,像“播放/暂停”、
“倒退”、“快进”与进度条.它保持媒体播放器与控件的状态同步.&
一个继承自
的可编辑的文本视图,
能够根据用户的输入进行自动完成提示,而不需要用户输入整个内容.&
该小部件定义了用于显示一个可以显示标准快捷联系人徽章的图片以及点击 图片时的动作.&
单选按钮是有选中和未选中两种状态的按钮.当其未选中时,用户可以通过按下或点击来选中它.&
这个类用于创建一组单选按钮之间多重排斥的范围.&
RatingBar 是基于 SeekBar 和 ProgressBar 的扩展,用星型来显示等级评定.&
子视图的位置可以用相对于其它子视图或父视图的位置来描述的布局.&
允许用户滚动的,可以放置超过物理显示器大小的视图层次的布局容器.&
SeekBar 是 ProgressBar 的扩展,在其基础上增加了一个可滑动的滑片(注:就是那个可拖动的图标).&
SlidingDrawer可以将内容隐藏在屏幕外,允许用户通过拖拽一个把手,将内容带回屏幕上显示.&
下拉列表(Spinner)是一个每次只能选择所有项中一项的部件.&
提供选项卡(Tab页)的窗口视图容器.此对象包含两个子对象:
一个是使用户可以选择指定标签页的标签的集合;另一个是用于显示标签页内容的 FrameLayout.&
显示代表父选项卡集合中的选项卡的标签列表.&
按照行列来组织子视图的布局.表格布局包含一系列的 对象,用于定义行(实际上你也可以使用其它子对象,将在后面进行解释).&
按照水平方向来组织子视图的布局。TableRow应该总是作为
专用的 ,仅包含
类型的元素.&
用于选择一天中时间的视图,支持24小时及上午/下午显示模式.&
通过一个带有亮度指示同时默认文本为“ON”或“OFF”的按钮显示选中/未选中状态.&
这个布局是用在ListView中的,有两个子视图.&
Displays a video file.&
容器类的基类,用于在变换视图时显示动画效果.&
在添加到该类的两个或两个以上的视图之间绘制动画的简单的 ViewAnimator .&
在两个视图间切换,并包含创建这些视图的工厂类.&
A View that displays web pages.&
ZoomControls 显示一组简单的控件集合用于缩放,并可以注册事件发生时执行的回调函数.&
This class represents the basic building block for user interface components. A View
occupies a rectangular area on the screen and is responsible for drawing and
event handling. View is the base class for widgets, which are
used to create interactive UI components (buttons, text fields, etc.). The
subclass is the base class for layouts, which
are invisible containers that hold other Views (or other ViewGroups) and define
their layout properties.
For an introduction to using this class to develop your
application's user interface, read the Developer Guide documentation on
. Special topics
Using Views
All of the views in a window are arranged in a single tree. You can add views
either from code or by specifying a tree of views in one or more XML layout
files. There are many specialized subclasses of views that act as controls or
are capable of displaying text, images, or other content.
Once you have created a tree of views, there are typically a few types of
common operations you may wish to perform:
Set properties: for example setting the text of a
. The available properties and the methods
that set them will vary among the different subclasses of views. Note that
properties that are known at build time can be set in the XML layout
Set focus: The framework will handled moving focus in
response to user input. To force focus to a specific view, call
Set up listeners: Views allow clients to set listeners
that will be notified when something interesting happens to the view. For
example, all views will let you set a listener to be notified when the view
gains or loses focus. You can register such a listener using
. Other view subclasses offer more
specialized listeners. For example, a Button exposes a listener to notify
clients when the button is clicked.
Set visibility: You can hide or show views using
Note: The Android framework is responsible for measuring, laying out and
drawing views. You should not call methods that perform these actions on
views yourself unless you are actually implementing a
Implementing a Custom View
To implement a custom view, you will usually begin by providing overrides for
some of the standard methods that the framework calls on all views. You do
not need to override all of these methods. In fact, you can start by just
overriding .
Category Methods Description
Constructors
There is a form of the constructor that are called when the view
is created from code and a form that is called when the view is
inflated from a layout file. The second form should parse and apply
any attributes defined in the layout file.
Called after a view and all of its children has been inflated
Called to determine the size requirements for this view and all
of its children.
Called when this view should assign a size and position to all
of its children.
Called when the size of this view has changed.
Called when the view should render its content.
Event processing
Called when a new key event occurs.
Called when a key up event occurs.
Called when a trackball motion event occurs.
Called when a touch screen motion event occurs.
Called when the view gains or loses focus.
Called when the window containing the view gains or loses focus.
Called when the view is attached to a window.
Called when the view is detached from its window.
Called when the visibility of the window containing the view
has changed.
Views may have an integer id associated with them. These ids are typically
assigned in the layout XML files, and are used to find specific views within
the view tree. A common pattern is to:
Define a Button in the layout file and assign it a unique ID.
&Button id="@+id/my_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/my_button_text"/&
From the onCreate method of an Activity, find the Button
Button myButton = (Button) findViewById(R.id.my_button);
View IDs need not be unique throughout the tree, but it is good practice to
ensure that they are at least unique within the part of the tree you are
searching.
The geometry of a view is that of a rectangle. A view has a location,
expressed as a pair of left and top coordinates, and
two dimensions, expressed as a width and a height. The unit for location
and dimensions is the pixel.
It is possible to retrieve the location of a view by invoking the methods
and . The former returns the left, or X,
coordinate of the rectangle representing the view. The latter returns the
top, or Y, coordinate of the rectangle representing the view. These methods
both return the location of the view relative to its parent. For instance,
when getLeft() returns 20, that means the view is located 20 pixels to the
right of the left edge of its direct parent.
In addition, several convenience methods are offered to avoid unnecessary
computations, namely
These methods return the coordinates of the right and bottom edges of the
rectangle representing the view. For instance, calling
is similar to the following computation: getLeft() + getWidth()
for more information about the width.)
Size, padding and margins
The size of a view is expressed with a width and a height. A view actually
possess two pairs of width and height values.
The first pair is known as measured width and
measured height. These dimensions define how big a view wants to be
within its parent (see
for more details.) The
measured dimensions can be obtained by calling
The second pair is simply known as width and height, or
sometimes drawing width and drawing height. These
dimensions define the actual size of the view on screen, at drawing time and
after layout. These values may, but do not have to, be different from the
measured width and height. The width and height can be obtained by calling
To measure its dimensions, a view takes into account its padding. The padding
is expressed in pixels for the left, top, right and bottom parts of the view.
Padding can be used to offset the content of the view by a specific amount of
pixels. For instance, a left padding of 2 will push the view's content by
2 pixels to the right of the left edge. Padding can be set using the
method and queried by calling
Even though a view can define a padding, it does not provide any support for
margins. However, view groups provide such a support. Refer to
for further information.
Layout is a two pass process: a measure pass and a layout pass. The measuring
pass is implemented in
and is a top-down traversal
of the view tree. Each view pushes dimension specifications down the tree
during the recursion. At the end of the measure pass, every view has stored
its measurements. The second pass happens in
and is also top-down. During
this pass each parent is responsible for positioning all of its children
using the sizes computed in the measure pass.
When a view's measure() method returns, its
values must be set, along with those for all of
that view's descendants. A view's measured width and measured height values
must respect the constraints imposed by the view's parents. This guarantees
that at the end of the measure pass, all parents accept all of their
children's measurements. A parent view may call measure() more than once on
its children. For example, the parent may measure each child once with
unspecified dimensions to find out how big they want to be, then call
measure() on them again with actual numbers if the sum of all the children's
unconstrained sizes is too big or too small.
The measure pass uses two classes to communicate dimensions. The
class is used by views to tell their parents how they
want to be measured and positioned. The base LayoutParams class just
describes how big the view wants to be for both width and height. For each
dimension, it can specify one of:
an exact number
MATCH_PARENT, which means the view wants to be as big as its parent
(minus padding)
WRAP_CONTENT, which means that the view wants to be just big enough to
enclose its content (plus padding).
There are subclasses of LayoutParams for different subclasses of ViewGroup.
For example, AbsoluteLayout has its own subclass of LayoutParams which adds
an X and Y value.
MeasureSpecs are used to push requirements down the tree from parent to
child. A MeasureSpec can be in one of three modes:
UNSPECIFIED: This is used by a parent to determine the desired dimension
of a child view. For example, a LinearLayout may call measure() on its child
with the height set to UNSPECIFIED and a width of EXACTLY 240 to find out how
tall the child view wants to be given a width of 240 pixels.
EXACTLY: This is used by the parent to impose an exact size on the
child. The child must use this size, and guarantee that all of its
descendants will fit within this size.
AT_MOST: This is used by the parent to impose a maximum size on the
child. The child must gurantee that it and all of its descendants will fit
within this size.
To intiate a layout, call . This method is typically
called by a view on itself when it believes that is can no longer fit within
its current bounds.
Drawing is handled by walking the tree and rendering each view that
intersects the the invalid region. Because the tree is traversed in-order,
this means that parents will draw before (i.e., behind) their children, with
siblings drawn in the order they appear in the tree.
If you set a background drawable for a View, then the View will draw it for you
before calling back to its onDraw() method.
Note that the framework will not draw views that are not in the invalid region.
To force a view to draw, call .
Event Handling and Threading
The basic cycle of a view is as follows:
An event comes in and is dispatched to the appropriate view. The view
handles the event and notifies any listeners.
If in the course of processing the event, the view's bounds may need
to be changed, the view will call .
Similarly, if in the course of processing the event the view's appearance
may need to be changed, the view will call .
were called,
the framework will take care of measuring, laying out, and drawing the tree
as appropriate.
Note: The entire view tree is single threaded. You must always be on
the UI thread when calling any method on any view.
If you are doing work on other threads and want to update the state of a view
from that thread, you should use a .
Focus Handling
The framework will handle routine focus movement in response to user input.
This includes changing the focus as views are removed or hidden, or as new
views become available. Views indicate their willingness to take focus
through the
method. To change whether a view can take
focus, call .
When in touch mode (see notes below)
views indicate whether they still would like focus via
and can change this via .
Focus movement is based on an algorithm which finds the nearest neighbor in a
given direction. In rare cases, the default algorithm may not match the
intended behavior of the developer. In these situations, you can provide
explicit overrides by using these XML attributes in the layout file:
nextFocusDown
nextFocusLeft
nextFocusRight
nextFocusUp
To get a particular view to take focus, call .
Touch Mode
When a user is navigating a user interface via directional keys such as a D-pad, it is
necessary to give focus to actionable items such as buttons so the user can see
what will take input.
If the device has touch capabilities, however, and the user
begins interacting with the interface by touching it, it is no longer necessary to
always highlight, or give focus to, a particular view.
This motivates a mode
for interaction named 'touch mode'.
For a touch capable device, once the user touches the screen, the device
will enter touch mode.
From this point onward, only views for which
is true will be focusable, such as text editing widgets.
Other views that are touchable, like buttons, will not tak they will
only fire the on click listeners.
Any time a user hits a directional key, such as a D-pad direction, the view device will
exit touch mode, and find a view to take focus, so that the user may resume interacting
with the user interface without touching the screen again.
The touch mode state is maintained across s.
to see whether the device is currently in touch mode.
The framework provides basic support for views that wish to internally
scroll their content. This includes keeping track of the X and Y scroll
offset as well as mechanisms for drawing scrollbars. See
for more details.
Unlike IDs, tags are not used to identify views. Tags are essentially an
extra piece of information that can be associated with a view. They are most
often used as a convenience to store data related to views in the views
themselves rather than by putting them in a separate structure.
You can attach an
object to a view using
. The animation can alter the scale,
rotation, translation and alpha of a view over time. If the animation is
attached to a view that has children, the animation will affect the entire
subtree rooted by that node. When an animation is started, the framework will
take care of redrawing the appropriate views until the animation completes.
Sometimes it is essential that an application be able to verify that an action
is being performed with the full knowledge and consent of the user, such as
granting a permission request, making a purchase or clicking on an advertisement.
Unfortunately, a malicious application could try to spoof the user into
performing these actions, unaware, by concealing the intended purpose of the view.
As a remedy, the framework offers a touch filtering mechanism that can be used to
improve the security of views that provide access to sensitive functionality.
To enable touch filtering, call
or set the
andoird:filterTouchesWhenObscured attribute to true.
When enabled, the framework
will discard touches that are received whenever the view's window is obscured by
another visible window.
As a result, the view will not receive touches whenever a
toast, dialog or other window appears above the view's window.
For more fine-grained control over security, consider overriding the
method to implement your own security policy.
See also .
Base class for derived classes that want to save and restore their own
state in .&
A MeasureSpec encapsulates the layout requirements passed from parent to child.&
Interface definition for a callback to be invoked when a view is clicked.&
Interface definition for a callback to be invoked when the context menu
for this view is being built.&
为焦点变更时执行的回调函数定义的接口.&
Interface definition for a callback to be invoked when a key event is
dispatched to this view.&
Interface definition for a callback to be invoked when a view has been clicked and held.&
Interface definition for a callback to be invoked when a touch event is
dispatched to this view.&
作为背景使用的可绘制对象.它可以是对完整得可绘制对象资源
(比如:PNG 图像、9片图、XML 状态列表描述等等)
或者是象“#ff000000”(黑色)这样得纯色.&
定义该视图是否响应点击事件.&
定义对视图内容的简短描述.&
定义半透明缓存的质量.&
当该属性设为真时,视图从它的容器视图取得可绘制状态(比如得焦点状态、
按下状态、等),而不是使用它自己的状态..&
定义滚动时淡出的边.&
定义淡出边的长度.&
指定当视图窗口被其他可视视图窗口遮挡时,是否过滤掉触控事件.&
布尔型内部属性,用于设置是否根据系统窗口(比如状态栏)来调整视图的布局.&
布尔值,用于控制视图是否可以获得焦点.&
布尔值,用于控制在触控模式下视图是否可以获得焦点.&
布尔值,控制发生诸如长按事件时,是否使用震动反馈.&
为当前视图设置一个标识名,以后可以通过调用
方法来取得视图.&
如果视图作为滚动容器使用,将该值设为真;
这意味它可以缩小占用的空间,以为输入法提供显示的空间.&
定义视图窗口可见时,是否保持屏幕始终处于开启状态.&
定义该视图是否响应长按事件.&
定义视图的最小高度.&
定义视图的最小宽度.&
定义焦点移动为
时,下一个获得焦点的视图.&
定义焦点移动为
时,下一个获得焦点的视图.&
定义焦点移动为
时,下一个获得焦点的视图.&
定义焦点移动为
时,下一个获得焦点的视图.&
单击视图时执行的视图上下文中的方法名.&
以像素为单位设置四条边的内边距.&
以像素为单位设置下边的内边距.&
以像素为单位设置左边的内边距.&
以像素为单位设置右边的内边距.&
以像素为单位设置上边的内边距.&
如果取消该设置,冻结视图时不保存视图的任何状态信息.&
以像数为单位的横向滚动条位置.&
以像数为单位的纵向滚动条位置
一定是尺寸值,由浮点数后跟长度单位组成。比如“14.5sp”。
可用单位有:px (像素)、dp (密度/设备无关像素)、sp (基于首选字体大小的缩放像素)、
in (英寸), mm (毫米).&
定义是否总是绘制横向滚动条滑道.&
定义是否总是绘制纵向滚动条滑道.&
以毫秒为单位定义淡出前等待时间.&
以毫秒为单位定义淡出所用时间.&
定义纵向滚动条的宽度和横向滚动条的高度.&
控制滚动条的位置和样式.&
定义用于横向滚动条把手的可绘制对象.&
定义用于纵向滚动条把手的可绘制对象.&
定义用于横向滚动条滑道的可绘制对象.&
定义用于纵向滚动条滑道的可绘制对象.&
定义显示那个方向的滚动条.&
布尔值,控制发生诸如点击、触控事件时是否使用声效.&
设置一个文本标签,以后可以通过调用
取得视图或者调用
来查找并取得视图.最好使用 ID(通过 android:id 属性定义)来代替
文本标签,因为它的速度更快,并且允许编译时类型检查.&
控制视图的初始可视性.&
为绘图缓存启用自动质量控制模式.
为绘图缓存启用高质量控制模式.
为绘图缓存启用低质量控制模式.
指出视图没有设置状态.
指出视图可用、具有焦点并已选中.
指出视图可用、具有焦点、已选中并且其窗口具有焦点.
指出视图可用并具有焦点.
指出视图可用、具有焦点并且其窗口也具有焦点.
指出视图可用并已选中.
指出视图可用、已选中并且其窗口具有焦点.
指出视图时可用的.
根据不同的状态变更视图的外观.
指出视图可用并且其窗口具有焦点.
视图标志位,指出无论是否处于触控模式下,以及触控模式下是否可以获得焦点,
addFocusables(ArrayList, int, int)
函数都会添加该视图.
视图标志位,指出 addFocusables(ArrayList, int, int)
函数只添加在触控模式下可以获得焦点的视图.
指出视图具有焦点并且已选中.
指出视图具有焦点、已选中并且其窗口具有焦点.
指出视图得到焦点.
指出视图具有焦点并且其窗口也具有焦点.
用于 .移动焦点到前一个可选择条目.
用于 .向下移动焦点.
用于 .移动焦点到下一个可选择条目.
用于 .向左移动焦点.
用于 .向右移动焦点.
用于 .向上移动焦点.
视图不可见,并且不占用布局时的空间.用于 .
视图标志位,指示发生诸如长按事件时视图是否执行震动反馈.
视图不可见,但为其保留布局时所占用的空间.用于 .
视图标志位,用于指明当窗口包含对用户可见的该视图时,屏幕应该一直处于开启状态.
用于识别没有 ID 的视图.
总是允许用户过滚动该视图,用于可以滚动的视图.
允许用户对内容大于滚动区域的视图进行过滚动,用于可以滚动的视图.
不允许用户对该视图进行过滚动.
指出视图可按下、可用、具有焦点并与选中.
指出视图已按下、可用、具有焦点并且其窗口具有焦点.
指出视图已按下、可用并具有焦点.
指出视图已按下、可用、具有焦点并且其窗口具有焦点.
指出视图已按下、可用并且已选中.
指出视图已按下、可用、已选中并且其窗口具有焦点.
指出视图已按下并可用.
指出视图已按下、可用并且其窗口具有焦点.
质粗视图已按下、具有焦点并已选中.
指出视图已按下、具有焦点、已选中并且其窗口具有焦点.
指出视图已按下并具有焦点.
指出视图已按下、具有焦点并且其窗口具有焦点.
指出视图已按下并已选中.
指出视图已按下、已选中并且其窗口具有焦点.
指出视图已按下并且其窗口具有焦点.
用于在内边距内显示滚动条的滚动条风格,增加视图的内边距.
用于在内容区域显示滚动条的滚动条风格,不增加内边距.
用于在视图边上显示滚动条的滚动条风格,增加视图的内边距.
用于在视图边上显示滚动条的滚动条风格,不增加内边距.
指出视图已选中.
指出视图已选中并且其窗口具有焦点.
视图标志位,指示发生诸如单击、触控事件时视图是否播放声音效果.
在该类中使用 android.util.Log 输出日志时的标签.
视图可见.用于 .
指出视图的窗口具有焦点.
公有构造函数
( context)
Simple constructor to use when creating a view from code.
( context,
Constructor that is called when inflating a view from XML.
( context,
attrs, int defStyle)
Perform inflation from XML and apply a class-specific base style.
addFocusables(&& views, int direction)
Add any focusable views that are descendants of this view (possibly
including this view if it is focusable itself) to views.
addFocusables(&& views, int direction, int focusableMode)
Adds any focusable views that are descendants of this view (possibly
including this view if it is focusable itself) to views.
addTouchables(&& views)
Add any touchable views that are descendants of this view (possibly
including this view if it is touchable itself) to views.
Change the view's z order in the tree, so it's on top of other sibling
(boolean autoScale)
Forces the drawing cache to be built if the drawing cache is invalid.
Calling this method is equivalent to calling buildDrawingCache(false).
Cancels a pending long press.
Called by the
when a view who is not the current
input connection target is trying to make a call on the manager.
Cancels any animations for this view.
Called when this view wants to give up focus.
由父视图调用,用于通知子视图在必要时更新 mScrollX 和 mScrollY 的值。
该操作主要用于子视图使用
进行动画滚动时。
Show the context menu for this view.
Frees the resources used by the drawing cache.
( newConfig)
Dispatch a notification about a resource configuration change down
the view hierarchy.
(int hint)
Dispatch a hint about whether this view is displayed.
按照焦点路径分发键盘事件到下一个视图.
Dispatch a key event before it is processed by any input method
associated with the view hierarchy.
Dispatches a key shortcut event.
的子视图中.
Pass the touch screen motion event down to the target view, or this
view if it is the target.
Pass a trackball motion event down to the focused view.
( focused, int direction)
对于具有焦点的视图及其祖先,该方法是处理箭头事件最后的机会.
(boolean hasFocus)
当包含的此视图的窗口获得或失去焦点时调用此方法.视图组应该重写此方法,
将消息传递到他的子视图.
(int visibility)
Dispatch a window visibility change down the view hierarchy.
在指定的画布上手动绘制视图(及其子视图).
Find the view in the hierarchy rooted at this view that currently has
Look for a child view with the given id.
Look for a child view with the given tag.
(int direction)
Find the nearest view in the specified direction that can take focus.
Forces this view to be laid out during the next layout pass.
Get the animation currently associated with this view.
Retrieve a unique token identifying the top-level "real" window of
the window that this view is attached to.
Gets the background drawable
返回小部件顶端到文本基线的偏移量.如果小部件不支持基线对齐,该方法返回 -1.
Bottom position of this view relative to its parent.
description.
Returns the context the view is running in, through which it can
access the current theme, resources, etc.
(int size, int measureSpec)
Utility to return a default size.
Return an array of resource IDs of the drawable states representing the
current state of the view.
(boolean autoScale)
Returns the bitmap in which this view drawing is cached.
Calling this method is equivalent to calling getDrawingCache(false).
Returns the quality of the drawing cache.
( outRect)
Return the visible drawing bounds of your view.
Return the time at which the drawing of the view hierarchy started.
Gets whether the framework should discard touches when the view's
window is obscured by another visible window.
(int direction)
Find and return all focusable views that are descendants of this view,
possibly including this view if it is focusable itself.
When a view has focus and the user navigates away from it, the next view is searched for
starting from the rectangle filled in by this method.
globalOffset)
If some part of this view is not clipped by any of its parents, then
return that area in r in global (root) coordinates.
Return the height of your view.
( outRect)
Hit rectangle in parent's coordinates
Returns the size of the horizontal faded edges used to indicate that more
content in this view is visible.
Returns this view's identifier.
Returns whether the screen should remain on, corresponding to the current
value of .
Return the global
for this view's window.
Get the LayoutParams associated with this view.
Left position of this view relative to its parent.
(int[] location)
Computes the coordinates of this view in its window.
(int[] location)
Computes the coordinates of this view on the screen.
The height of this view as measured in the most recent call to measure().
The width of this view as measured in the most recent call to measure().
Returns the focus-change callback registered for this view.
Returns the over-scroll mode for this view.
Returns the bottom padding of this view.
Returns the left padding of this view.
Returns the right padding of this view.
Returns the top padding of this view.
Gets the parent of this view.
Returns the resources associated with this view.
Right position of this view relative to its parent.
Finds the topmost view in the current view hierarchy.
Returns the current scrollbar style.
Return the scrolled left position of this view.
Return the scrolled top position of this view.
Override this if your view is known to always be drawn on top of a solid color background,
and needs to draw fading edges.
Returns the tag associated with this view and the specified key.
Returns this view's tag.
Top position of this view relative to its parent.
Gets the TouchDelegate for this View.
Find and return all touchable views that are descendants of this view,
possibly including this view if it is touchable itself.
Returns the size of the vertical faded edges used to indicate that more
content in this view is visible.
Returns the width of the vertical scrollbar.
Returns the ViewTreeObserver for this view's hierarchy.
Returns the visibility status for this view.
Return the width of the your view.
Retrieve a unique token identifying the window this view is attached to.
Returns the current visibility of the window this view is attached to
(either , , or ).
( outRect)
Retrieve the overall visible display size in which the window this view is
attached to has been positioned in.
Returns true if this view has focus iteself, or is the ancestor of the
view that has focus.
Returns true if this view is focusable or if it contains a reachable View
returns true.
Returns true if this view is in a window that currently has window focus.
( context, int resource,
Inflate a view from an XML resource.
Mark the the area defined by dirty as needing to be drawn.
(int l, int t, int r, int b)
Mark the the area defined by the rect (l,t,r,b) as needing to be drawn.
Invalidate the whole view.
( drawable)
Invalidates the specified Drawable.
Indicates whether this view reacts to click events or not.
Indicates whether the drawing cache is enabled for this view.
Indicates whether this duplicates its drawable state from its parent.
Returns the enabled status for this view.
Returns whether this View is able to take focus.
When a view is focusable, it may not want to take focus when in touch mode.
Returns true if this view has focus
Indicate whether the horizontal edges are faded when the view is
scrolled horizontally.
Indicate whether the horizontal scrollbar should be drawn or not.
Indicates whether this View is currently in edit mode.
Returns whether the device is currently in touch mode.
Indicates whether or not this view's layout will be requested during
the next hierarchy layout pass.
Indicates whether this view reacts to long click events or not.
Indicates whether this View is opaque.
Indicates whether the view is currently in pressed state.
Indicates whether this view will save its state (that is,
whether its
method will be called).
Returns true if scrollbars will fade when this view is not scrolling
Indicates the selection state of this view.
Returns the visibility of this view and all of its ancestors
Indicate whether the vertical edges are faded when the view is
scrolled horizontally.
Indicate whether the vertical scrollbar should be drawn or not.
(int l, int t, int r, int b)
Assign a size and position to a view and all of its
descendants
This is the second phase of the layout mechanism.
(int widthMeasureSpec, int heightMeasureSpec)
This is called to find out how big a view should be.
(int offset)
Offset this view's horizontal location by the specified amount of pixels.
(int offset)
Offset this view's vertical location by the specified number of pixels.
Check whether the called view is a text editor, in which case it
would make sense to automatically display a soft input window for
( outAttrs)
Create a new InputConnection for an InputMethod to interact
with the view.
Filter the touch event to apply security policies.
Called after
when the container is done
changing the view.
(int keyCode,
的默认实现.
(int keyCode,
Default implementation of : always returns false (doesn't handle
the event).
(int keyCode, int repeatCount,
的默认实现.
(int keyCode,
Handle a key event before it is processed by any input method
associated with the view hierarchy.
(int keyCode,
Called when an unhandled key shortcut event occurs.
(int keyCode,
的默认实现.
This is called when a container is going to temporarily detach a child, with
实现该方法来处理触屏事件.
Implement this method to handle trackball motion events.
(boolean hasWindowFocus)
Called when the window containing this view gains or loses focus.
如果该视图定义了 OnClickListener,则调用它.
(int feedbackConstant, int flags)
BZZZTT!!1!
Like , with additional options.
(int feedbackConstant)
BZZZTT!!1!
Provide haptic feedback to the user for this view.
Call this view's OnLongClickListener, if it is defined.
(int soundConstant)
Play a sound effect for this view.
Causes the Runnable to be added to the message queue.
( action, long delayMillis)
Causes the Runnable to be added to the message queue, to be run
after the specified amount of time elapses.
(int left, int top, int right, int bottom)
Cause an invalidate of the specified area to happen on a subsequent cycle
through the event loop.
Cause an invalidate to happen on a subsequent cycle through the event loop.
(long delayMilliseconds, int left, int top, int right, int bottom)
Cause an invalidate of the specified area to happen on a subsequent cycle
through the event loop.
(long delayMilliseconds)
Cause an invalidate to happen on a subsequent cycle through the event
Call this to force a view to update its drawable state.
Removes the specified Runnable from the message queue.
(int direction,
previouslyFocusedRect)
Call this to try to give focus to a specific view or to one of its descendants
and give it hints about the direction and a specific rectangle that the focus
is coming from.
(int direction)
Call this to try to give focus to a specific view or to one of its
descendants and give it a hint about what direction focus is heading.
Call this to try to give focus to a specific view or to one of its
descendants.
Call this to try to give focus to a specific view or to one of its descendants.
当某些变更导致视图的布局失效时调用该方法.该方法按照视图树的顺序调用.
( rectangle)
Request that a rectangle of this view be visible on the screen,
scrolling if necessary just enough.
( rectangle, boolean immediate)
Request that a rectangle of this view be visible on the screen,
scrolling if necessary just enough.
(int size, int measureSpec)
Utility to reconcile a desired size with constraints imposed by a MeasureSpec.
restoreHierarchyState(&& container)
Restore this view hierarchy's frozen state from the given container.
saveHierarchyState(&& container)
Store this view hierarchy's frozen state into the given container.
what, long when)
Schedules an action on a drawable to occur at a specified time.
(int x, int y)
Move the scrolled position of your view.
(int x, int y)
设置视图的滚动位置。会触发
事件,并使视图失效重绘。
(int eventType)
Handles the request for sending an
the event type.
Handles the request for sending an .
( animation)
Sets the next animation to play for this view.
(int color)
Sets the background color for this view.
将指定的可绘制对象设为背景;或删除背景.如果指定的可绘制对象有内边距,
则这个视图的内边距就会设为可绘制对象的内边距.然而,当背景被移除时,视图的内边距不变.
(int resid)
Set the background to a given resource.
(boolean clickable)
Enables or disables click events for this view.
( contentDescription)
description.
(int color)
Setting a solid background color for the drawing cache's bitmaps will improve
perfromance and memory usage.
(boolean enabled)
Enables or disables the drawing cache.
(int quality)
Set the drawing cache quality of this view.
(boolean enabled)
Enables or disables the duplication of the parent's state into this view.
(boolean enabled)
设置视图的可用状态.由子类决定视图的各可用状态如何显示.
(int length)
Set the size of the faded edge used to indicate that more content in this
view is available.
(boolean enabled)
Sets whether the framework should discard touches when the view's
window is obscured by another visible window.
(boolean focusable)
设置该视图是否可以获取焦点.
(boolean focusableInTouchMode)
设置在触控模式下该视图是否可以获取焦点.
(boolean hapticFeedbackEnabled)
Set whether this view should have haptic feedback for events such as
long presses.
(boolean horizontalFadingEdgeEnabled)
Define whether the horizontal edges should be faded when this view
is scrolled horizontally.
(boolean horizontalScrollBarEnabled)
Define whether the horizontal scrollbar should be drawn or not.
Sets the identifier for this view.
(boolean keepScreenOn)
Controls whether the screen should remain on, modifying the
value of .
Set the layout parameters associated with this view.
(boolean longClickable)
Enables or disables long click events for this view.
(int minHeight)
Sets the minimum height of the view.
(int minWidth)
Sets the minimum width of the view.
(int nextFocusDownId)
Set the id of the view to use for the next focus
(int nextFocusLeftId)
Set the id of the view to use for the next focus
(int nextFocusRightId)
Set the id of the view to use for the next focus
(int nextFocusUpId)
Set the id of the view to use for the next focus
注册点击该视图时执行的回调函数.如果该视图不可点击,会将其改为可以点击的状态.
Register a callback to be invoked when the context menu for this view is
being built.
Register a callback to be invoked when focus of this view changed.
Register a callback to be invoked when a key is pressed in this view.
Register a callback to be invoked when this view is clicked and held.
Register a callback to be invoked when a touch event is sent to this view.
(int overScrollMode)
为视图设置过滚动模式。有效的过滚动模式有
(默认值)、
(视图内容大于容器时允许过滚动)、
(int left, int top, int right, int bottom)
设置内边距.视图可能会根据滚动条的样式和可视性,增加一些必要的用于显示滚动条的空间.
(boolean pressed)
Sets the pressed that for this view.
(boolean enabled)
Controls whether the saving of this view's state is
enabled (that is, whether its
will be called).
(int style)
Specify the style of the scrollbars.
(boolean isScrollContainer)
Change whether this view is one of the set of scrollable containers in
its window.
(boolean fadeScrollbars)
Define whether scrollbars will fade when the view is not scrolling.
(boolean selected)
Changes the selection state of this view.
(boolean soundEffectsEnabled)
Set whether this view should have sound effects enabled for events such as
clicking and touching.
Sets a tag associated with this view and a key.
Sets the tag associated with this view.
( delegate)
Sets the TouchDelegate for this View.
(boolean verticalFadingEdgeEnabled)
Define whether the vertical edges should be faded when this view
is scrolled vertically.
(boolean verticalScrollBarEnabled)
Define whether the vertical scrollbar should be drawn or not.
(int visibility)
Set the enabled state of this view.
(boolean willNotCacheDrawing)
When a View's drawing cache is enabled, drawing is redirected to an
offscreen bitmap.
(boolean willNotDraw)
If this view doesn't do any drawing on its own, set this flag to
allow further optimizations.
显示该视图上下文菜单.
( animation)
Start the specified animation now.
Unschedule any events associated with the given Drawable.
Cancels a scheduled action on a drawable.
Returns whether or not this View can cache its drawing or not.
Returns whether or not this View draws on its own.
(int startDelay)
Trigger the scrollbars to draw.
(int startDelay, boolean invalidate)
Trigger the scrollbars to draw.
Trigger the scrollbars to draw.
在水平范围内计算滚动条滑块的滚动范围.该值用来计算滚动条滑块的长度.
在水平范围内计算滚动条滑块的偏移量.该值用来计算水平滑块的位置.
计算滚动条水平方向上的滚动范围.
计算滚动条把手在纵向滚动范围内占用的幅度.该值用于计算滚动条把手在滚动条滑道中的长度.
计算滚动条把手在纵向滚动范围内的位置.该值用于计算滚动条把手在滚动条滑道中的位置.
计算滚动条代表的纵向范围.
调用此方法来绘出子视图.可被衍生类重写,以便在其子项被画出之前取得控制权.
dispatchRestoreInstanceState(&& container)
Called by restoreHierarchyState(SparseArray) to retrieve the state for this view and its
dispatchSaveInstanceState(&& container)
Called by saveHierarchyState(SparseArray) to store the state for this view and its children.
(boolean pressed)
为视图的所有子视图调用 setPressed 方法.
(boolean selected)
为视图的所有子视图调用 setSelected 方法.
( changedView, int visibility)
Dispatch a view visibility change down the view hierarchy.
在视图状态的变化影响到所显示可绘制对象的状态时调用该方法.
Apply the insets for system windows to this view, if the FITS_SYSTEM_WINDOWS flag
返回底部渐变边缘的强度或密集度.强度的值介于0.0(无渐变)到1.0(全渐变)之间.
Amount by which to extend the bottom fading region.
如果视图要向上下文菜单加入额外信息,就应该实现该方法.返回的结果作为
回调函数的参数.
Returns the height of the horizontal scrollbar.
返回左渐变边缘的强度或密集度.强度的值介于0.0(无渐变)到1.0(全渐变)之间.
Amount by which to extend the left fading region.
返回右渐变边缘的强度或密集度.强度的值介于0.0(无渐变)到1.0(全渐变)之间.
Amount by which to extend the right fading region.
Returns the suggested minimum height that the view should use.
Returns the suggested minimum width that the view should use.
返回顶部渐变边缘的强度或密集度.强度的值介于0.0(无渐变)到1.0(全渐变)之间.
Amount by which to extend the top fading region.
Initializes the fading edges from a given set of styled attributes.
Initializes the scrollbars from a given set of styled attributes.
If the View draws content inside its padding and enables fading edges,
it needs to support padding offsets.
(int[] baseState, int[] additionalState)
Merge your own state values in additionalState into the base
state values baseState that were returned by
Invoked by a parent ViewGroup to notify the end of the animation
currently associated with this view.
Invoked by a parent ViewGroup to notify the start of the animation
currently associated with this view.
当视图附加到窗体上时调用该方法.在这个时点,视图拥有了用于显示的表面,将开始绘制.
( newConfig)
Called when the current configuration of the resources being used
by the application have changed.
Views should implement this if the view itself is going to add items to
the context menu.
(int extraSpace)
为当前视图生成新的
状态时发生.
将视图从屏幕上分离的时候调用该方法.这个时点视图已经不具有可绘制部分.
(int hint)
Gives this view a hint about whether is displayed or not.
实现该方法,用于自己绘制内容.
Request the drawing of the horizontal and the vertical scrollbar.
根据 XML 生成视图工作完成.该函数在生成视图的最后调用,在所有子视图添加完之后.
(boolean gainFocus, int direction,
previouslyFocusedRect)
当视图的焦点改变时调用.由定向导航导致的焦点变更时, direction 和
previouslyFocusedRect 提供了焦点是从那里来的进一步信息.
(boolean changed, int left, int top, int right, int bottom)
该视图设置其子视图的大小及位置时调用.派生类可以重写此方法,并为其子类布局.
(int widthMeasureSpec, int heightMeasureSpec)
评估视图及其内容,以决定其宽度和高度.此方法由
调用,子类可以重载以提供更精确、更有效率的衡量其内容尺寸的方法.
(int scrollX, int scrollY, boolean clampedX, boolean clampedY)
调用,用于响应过滚动操作.
允许视图重新应用之前由
保存的内部状态的回调函数.
允许视图保存其内部状态的回调函数,以便于之后使用相同状态创建新实例.
(int l, int t, int oldl, int oldt)
This is called in response to an internal scroll in this view (i.e., the
view scrolled its own contents).
(int alpha)
执行阿尔法变换时执行.子类可以使用该方法指定阿尔法值,然后返回真;
在调用 onDraw() 时,使用该阿尔法值.如果返回假,则先在不可见的缓存中绘制视图,
完成该请求;看起来不错,但是可能相对于在子类中绘制要慢.默认实现返回假.
(int w, int h, int oldw, int oldh)
布局时该视图的大小发生改变时调用该方法.如果是刚加入的视图,变更前的值为 0.
( changedView, int visibility)
Called when the visibility of the view or an ancestor of the view is changed.
(int visibility)
当窗口中内容的可视性在
之间变更时调用.注意,该可视性代表你的窗口在窗口管理器中是否可见;并不
会告诉你属性为
的窗口在屏幕上是否可见.
(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent)
Scroll the view with standard behavior for scrolling beyond the normal
content boundaries.
(int measuredWidth, int measuredHeight)
This mehod must be called by
to store the
measured width and measured height.
如果你的视图子类显示自己的可绘制对象,他应该重写此方法并为自己的每个可绘制对象返回真.
继承的方法
来自 class
Creates and returns a copy of this Object.
Compares this instance with the specified object and indicates if they
are equal.
Called before the object's memory is reclaimed by the VM.
&?&extends&&
Returns the unique instance of
that represents this
object's class.
Returns an integer hash code for this object.
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
Returns a string containing a concise, human-readable description of this
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
来自 interface
Called when the drawable needs to be redrawn.
what, long when)
A Drawable can call this to schedule the next frame of its
animation.
A Drawable can call this to unschedule an action previously
scheduled with .
来自 interface
(int keyCode,
Called when a key down event has occurred.
(int keyCode,
Called when a long press has occurred.
(int keyCode, int count,
Called when multiple down/up pairs of the same key have occurred
(int keyCode,
Called when a key up event has occurred.
来自 interface
(int eventType)
Handles the request for sending an
the event type.
Handles the request for sending an .
android:background
android:clickable
android:contentDescription
android:drawingCacheQuality
android:duplicateParentState
android:fadingEdge
android:fadingEdgeLength
android:filterTouchesWhenObscured
android:fitsSystemWindows
android:focusable
android:focusableInTouchMode
android:hapticFeedbackEnabled
android:id
android:isScrollContainer
android:keepScreenOn
android:longClickable
android:minHeight
android:minWidth
android:nextFocusDown
android:nextFocusLeft
android:nextFocusRight
android:nextFocusUp
android:onClick
android:padding
android:paddingBottom
android:paddingLeft
android:paddingRight
android:paddingTop
android:saveEnabled
android:scrollX
android:scrollY
android:scrollbarAlwaysDrawHorizontalTrack
android:scrollbarAlwaysDrawVerticalTrack
android:scrollbarDefaultDelayBeforeFade
android:scrollbarFadeDuration
android:scrollbarSize
android:scrollbarStyle
android:scrollbarThumbHorizontal
android:scrollbarThumbVertical
android:scrollbarTrackHorizontal
android:scrollbarTrackVertical
android:scrollbars
android:soundEffectsEnabled
android:tag
android:visibility
DRAWING_CACHE_QUALITY_AUTO
DRAWING_CACHE_QUALITY_HIGH
DRAWING_CACHE_QUALITY_LOW
EMPTY_STATE_SET
ENABLED_FOCUSED_SELECTED_STATE_SET
ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET
ENABLED_FOCUSED_STATE_SET
ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET
ENABLED_SELECTED_STATE_SET
ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET
ENABLED_STATE_SET
ENABLED_WINDOW_FOCUSED_STATE_SET
FOCUSABLES_ALL
FOCUSABLES_TOUCH_MODE
FOCUSED_SELECTED_STATE_SET
FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET
FOCUSED_STATE_SET
FOCUSED_WINDOW_FOCUSED_STATE_SET
FOCUS_BACKWARD
FOCUS_DOWN
FOCUS_FORWARD
FOCUS_LEFT
FOCUS_RIGHT
HAPTIC_FEEDBACK_ENABLED
KEEP_SCREEN_ON
OVER_SCROLL_ALWAYS
OVER_SCROLL_IF_CONTENT_SCROLLS
OVER_SCROLL_NEVER
PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET
PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET
PRESSED_ENABLED_FOCUSED_STATE_SET
PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET
PRESSED_ENABLED_SELECTED_STATE_SET
PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET
PRESSED_ENABLED_STATE_SET
PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET
PRESSED_FOCUSED_SELECTED_STATE_SET
PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET
PRESSED_FOCUSED_STATE_SET
PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET
PRESSED_SELECTED_STATE_SET
PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET
PRESSED_WINDOW_FOCUSED_STATE_SET
SCROLLBARS_INSIDE_INSET
SCROLLBARS_INSIDE_OVERLAY
SCROLLBARS_OUTSIDE_INSET
SCROLLBARS_OUTSIDE_OVERLAY
SELECTED_STATE_SET
SELECTED_WINDOW_FOCUSED_STATE_SET
SOUND_EFFECTS_ENABLED
VIEW_LOG_TAG
WINDOW_FOCUSED_STATE_SET
公有构造函数
( context)
( context,
( context,
attrs, int defStyle)
addFocusables
(&& views, int direction)
addFocusables
(&& views, int direction, int focusableMode)
addTouchables
(&& views)
bringToFront
buildDrawingCache
(boolean autoScale)
buildDrawingCache
cancelLongPress
checkInputConnectionProxy
clearAnimation
clearFocus
computeScroll
createContextMenu
destroyDrawingCache
dispatchConfigurationChanged
( newConfig)
dispatchDisplayHint
(int hint)
dispatchKeyEvent
dispatchKeyEventPreIme
dispatchKeyShortcutEvent
dispatchPopulateAccessibilityEvent
dispatchTouchEvent
dispatchTrackballEvent
dispatchUnhandledMove
( focused, int direction)
dispatchWindowFocusChanged
(boolean hasFocus)
dispatchWindowVisibilityChanged
(int visibility)
findViewById
findViewWithTag
focusSearch
(int direction)
forceLayout
getAnimation
getApplicationWindowToken
getBackground
getBaseline
getContentDescription
getContext
getDefaultSize
(int size, int measureSpec)
getDrawableState
getDrawingCache
(boolean autoScale)
getDrawingCache
getDrawingCacheBackgroundColor
getDrawingCacheQuality
getDrawingRect
( outRect)
getDrawingTime
getFilterTouchesWhenObscured
getFocusables
(int direction)
getFocusedRect
getGlobalVisibleRect
globalOffset)
getGlobalVisibleRect
getHandler
getHitRect
( outRect)
getHorizontalFadingEdgeLength
getKeepScreenOn
getKeyDispatcherState
getLayoutParams
getLocalVisibleRect
getLocationInWindow
(int[] location)
getLocationOnScreen
(int[] location)
getMeasuredHeight
getMeasuredWidth
getNextFocusDownId
getNextFocusLeftId
getNextFocusRightId
getNextFocusUpId
getOnFocusChangeListener
getOverScrollMode
getPaddingBottom
getPaddingLeft
getPaddingRight
getPaddingTop
getResources
getRootView
getScrollBarStyle
getScrollX
getScrollY
getSolidColor
getTouchDelegate
getTouchables
getVerticalFadingEdgeLength
getVerticalScrollbarWidth
getViewTreeObserver
getVisibility
getWindowToken
getWindowVisibility
getWindowVisibleDisplayFrame
( outRect)
hasFocusable
hasWindowFocus
( context, int resource,
invalidate
invalidate
(int l, int t, int r, int b)
invalidate
invalidateDrawable
( drawable)
isClickable
isDrawingCacheEnabled
isDuplicateParentStateEnabled
isFocusable
isFocusableInTouchMode
isHapticFeedbackEnabled
isHorizontalFadingEdgeEnabled
isHorizontalScrollBarEnabled
isInEditMode
isInTouchMode
isLayoutRequested
isLongClickable
isSaveEnabled
isScrollbarFadingEnabled
isSelected
isSoundEffectsEnabled
isVerticalFadingEdgeEnabled
isVerticalScrollBarEnabled
(int l, int t, int r, int b)
(int widthMeasureSpec, int heightMeasureSpec)
offsetLeftAndRight
(int offset)
offsetTopAndBottom
(int offset)
onCheckIsTextEditor
onCreateInputConnection
( outAttrs)
onFilterTouchEventForSecurity
onFinishTemporaryDetach
(int keyCode,
onKeyLongPress
(int keyCode,
onKeyMultiple
(int keyCode, int repeatCount,
onKeyPreIme
(int keyCode,
onKeyShortcut
(int keyCode,
(int keyCode,
onStartTemporaryDetach
onTouchEvent
onTrackballEvent
onWindowFocusChanged
(boolean hasWindowFocus)
performClick
performHapticFeedback
(int feedbackConstant, int flags)
performHapticFeedback
(int feedbackConstant)
performLongClick
playSoundEffect
(int soundConstant)
postDelayed
( action, long delayMillis)
postInvalidate
(int left, int top, int right, int bottom)
postInvalidate
postInvalidateDelayed
(long delayMilliseconds, int left, int top, int right, int bottom)
postInvalidateDelayed
(long delayMilliseconds)
refreshDrawableState
removeCallbacks
requestFocus
(int direction,
previouslyFocusedRect)
requestFocus
(int direction)
requestFocus
requestFocusFromTouch
requestLayout
requestRectangleOnScreen
( rectangle)
requestRectangleOnScreen
( rectangle, boolean immediate)
resolveSize
(int size, int measureSpec)
restoreHierarchyState
(&& container)
saveHierarchyState
(&& container)
scheduleDrawable
what, long when)
(int x, int y)
(int x, int y)
sendAccessibilityEvent
(int eventType)
sendAccessibilityEventUnchecked
setAnimation
( animation)
setBackgroundColor
(int color)
setBackgroundDrawable
setBackgroundResource
(int resid)
setClickable
(boolean clickable)
setContentDescription
( contentDescription)
setDrawingCacheBackgroundColor
(int color)
setDrawingCacheEnabled
(boolean enabled)
setDrawingCacheQuality
(int quality)
setDuplicateParentStateEnabled
(boolean enabled)
setEnabled
(boolean enabled)
setFadingEdgeLength
(int length)
setFilterTouchesWhenObscured
(boolean enabled)
setFocusable
(boolean focusable)
setFocusableInTouchMode
(boolean focusableInTouchMode)
setHapticFeedbackEnabled
(boolean hapticFeedbackEnabled)
setHorizontalFadingEdgeEnabled
(boolean horizontalFadingEdgeEnabled)
setHorizontalScrollBarEnabled
(boolean horizontalScrollBarEnabled)
setKeepScreenOn
(boolean keepScreenOn)
setLayoutParams
setLongClickable
(boolean longClickable)
setMinimumHeight
(int minHeight)
setMinimumWidth
(int minWidth)
setNextFocusDownId
(int nextFocusDownId)
setNextFocusLeftId
(int nextFocusLeftId)
setNextFocusRightId
(int nextFocusRightId)
setNextFocusUpId
(int nextFocusUpId)
setOnClickListener
setOnCreateContextMenuListener
setOnFocusChangeListener
setOnKeyListener
setOnLongClickListener
setOnTouchListener
setOverScrollMode
(int overScrollMode)
setPadding
(int left, int top, int right, int bottom)
setPressed
(boolean pressed)
setSaveEnabled
(boolean enabled)
setScrollBarStyle
(int style)
setScrollContainer
(boolean isScrollContainer)
setScrollbarFadingEnabled
(boolean fadeScrollbars)
setSelected
(boolean selected)
setSoundEffectsEnabled
(boolean soundEffectsEnabled)
setTouchDelegate
( delegate)
setVerticalFadingEdgeEnabled
(boolean verticalFadingEdgeEnabled)
setVerticalScrollBarEnabled
(boolean verticalScrollBarEnabled)
setVisibility
(int visibility)
setWillNotCacheDrawing
(boolean willNotCacheDrawing)
setWillNotDraw
(boolean willNotDraw)
showContextMenu
startAnimation
( animation)
unscheduleDrawable
unscheduleDrawable
willNotCacheDrawing
willNotDraw
awakenScrollBars
(int startDelay)
awakenScrollBars
(int startDelay, boolean invalidate)
awakenScrollBars
computeHorizontalScrollExtent
computeHorizontalScrollOffset
computeHorizontalScrollRange
computeVerticalScrollExtent
computeVerticalScrollOffset
computeVerticalScrollRange
dispatchDraw
dispatchRestoreInstanceState
(&& container)
dispatchSaveInstanceState
(&& container)
dispatchSetPressed
(boolean pressed)
dispatchSetSelected
(boolean selected)
dispatchVisibilityChanged
( changedView, int visibility)
drawableStateChanged
fitSystemWindows
getBottomFadingEdgeStrength
getBottomPaddingOffset
getContextMenuInfo
getHorizontalScrollbarHeight
getLeftFadingEdgeStrength
getLeftPaddingOffset
getRightFadingEdgeStrength
getRightPaddingOffset
getSuggestedMinimumHeight
getSuggestedMinimumWidth
getTopFadingEdgeStrength
getTopPaddingOffset
getWindowAttachCount
initializeFadingEdge
initializeScrollbars
isPaddingOffsetRequired
mergeDrawableStates
(int[] baseState, int[] additionalState)
onAnimationEnd
onAnimationStart
onAttachedToWindow
onConfigurationChanged
( newConfig)
onCreateContextMenu
onCreateDrawableState
(int extraSpace)
onDetachedFromWindow
onDisplayHint
(int hint)
onDrawScrollBars
onFinishInflate
onFocusChanged
(boolean gainFocus, int direction,
previouslyFocusedRect)
(boolean changed, int left, int top, int right, int bottom)
(int widthMeasureSpec, int heightMeasureSpec)
onOverScrolled
(int scrollX, int scrollY, boolean clampedX, boolean clampedY)
onRestoreInstanceState
onSaveInstanceState
onScrollChanged
(int l, int t, int oldl, int oldt)
onSetAlpha
(int alpha)
onSizeChanged
(int w, int h, int oldw, int oldh)
onVisibilityChanged
( changedView, int visibility)
onWindowVisibilityChanged
(int visibility)
overScrollBy
(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent)
setMeasuredDimension
(int measuredWidth, int measuredHeight)
verifyDrawable

我要回帖

更多关于 自拍神器怎么使用 的文章

 

随机推荐