The 2-Minute Rule for view
The 2-Minute Rule for view
Blog Article
int: Optional. Otherwise null, on return this tends to contain the offset in neighborhood view coordinates of this view from right before this operation to soon after it completes. View implementations may well use this to adjust predicted enter coordinate monitoring.
If Untrue, no condition are going to be saved for this view when it's currently being frozen. The default is legitimate, permitting the view to get saved (having said that Additionally, it have to have an ID assigned to it for its point out being saved).
Return the amount of offset placed on the correct edge of this view's handwriting bounds, from the unit of pixel.
The view drawing cache was mainly created out of date With all the introduction of components-accelerated rendering in API 11. With components-acceleration, intermediate cache layers are mostly pointless and can certainly result in a Internet decline in functionality due to the price of creating and updating the layer. While in the scarce circumstances where by caching layers are handy, such as for alpha animations, setLayerType(int, android.graphics.Paint) handles this with hardware rendering.
Defines textual content shown in a little popup window on hover or prolonged push. Could be a string price, using ';' to escape people which include 'n' or 'uxxxx' for the unicode character;
View.OnApplyWindowInsetsListener Listener for applying window insets on the view inside of a customized way. interface
Determine whether the vertical scrollbar really should be drawn or not. void setVerticalScrollbarPosition(int position) Set the posture with the vertical scroll bar. void setVerticalScrollbarThumbDrawable(Drawable drawable) Defines the vertical scrollbar thumb drawable void setVerticalScrollbarTrackDrawable(Drawable drawable) Defines the vertical scrollbar track drawable void setViewTranslationCallback(ViewTranslationCallback callback) Sets a ViewTranslationCallback that is certainly accustomed to Show/cover the translated information.
int: A resource identifier of a type useful resource that materials default values for the view, employed provided that defStyleAttr is 0 or cannot be located in the theme. May be 0 to not search for defaults.
View.OnCreateContextMenuListener Interface definition to get a callback to be invoked if the context menu for this view is remaining built. interface
This technique was deprecated in API degree 28. The view drawing cache was mainly made obsolete Together with the introduction of hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache levels are mostly unwanted and can certainly bring about a net decline in effectiveness as a consequence of the cost of developing and updating the layer. In the unusual situations in which caching levels are valuable, like for alpha animations, check here setLayerType(int, android.graphics.
Uncover and return all touchable views that happen to be descendants of this view, potentially including this view if it is touchable by itself.}