Considerations To Know About view
Considerations To Know About view
Blog Article
The view drawing cache was mostly designed out of date with the introduction of components-accelerated rendering in API 11. With components-acceleration, intermediate cache levels are mostly pointless and can certainly lead to a Internet decline in general performance as a result of the cost of building and updating the layer. From the unusual scenarios the place caching layers are handy, which include for alpha animations, setLayerType(int, android.graphics.Paint) handles this with hardware rendering.
String: The hash algorithm to employ when hashing the display. Must be one of many values returned from DisplayHashManager#getSupportedHashAlgorithms() This price can't be null.
A hardware layer can be employed to cache a fancy view tree into a texture and lessen the complexity of drawing functions. As an illustration, when animating a complex view tree which has a translation, a components layer may be used to render the view tree only once.
Called by a mother or father to request that a child update its values for mScrollX and mScrollY if needed. This may generally be completed if the child is animating a scroll using a here Scroller item.
Returns the now configured Drawable for your thumb in the vertical scroll bar if it exists, null or else.
Map: a map with the view's AutofillId and its Digital little one ids or null In the event the view does not have virtual kid that ought to be translated. The Digital youngster ids are exactly the same Digital ids provided by ContentCapture.
Retrieve a singular token pinpointing the best-amount "authentic" window on the window this view is attached to.
Dispatch a important function in advance of it really is processed by any enter technique linked to the view hierarchy. This can be utilized to intercept key activities in Exclusive conditions before the IME consumes them; an average case in point might be dealing with the Again essential to update the application's UI as an alternative to making it possible for the IME to see it and close itself.
translation in y of your view. This price is added write-up-layout to the top house of the view, that is set by its structure. Could be a dimension benefit, which is a floating issue selection appended having a unit like "14.
Indicates the view is pressed. States are employed with Drawable to alter the drawing on the view based on its point out.
Indicates to accessibility providers if the user need to be notified when this view changes. android:accessibilityPaneTitle}