Skip to content

Most visited

Recently visited

navigation
added in version 26.1.0
belongs to Maven artifact com.android.support:wear:28.0.0-alpha1

WearableLinearLayoutManager.LayoutCallback

public static abstract class WearableLinearLayoutManager.LayoutCallback
extends Object

java.lang.Object
   ↳ android.support.wear.widget.WearableLinearLayoutManager.LayoutCallback
Known Direct Subclasses


Callback for interacting with layout passes.

Summary

Public constructors

WearableLinearLayoutManager.LayoutCallback()

Public methods

abstract void onLayoutFinished(View child, RecyclerView parent)

Override this method to implement custom child layout behavior on scroll.

Inherited methods

From class java.lang.Object

Public constructors

WearableLinearLayoutManager.LayoutCallback

added in version 26.1.0
WearableLinearLayoutManager.LayoutCallback ()

Public methods

onLayoutFinished

added in version 26.1.0
void onLayoutFinished (View child, 
                RecyclerView parent)

Override this method to implement custom child layout behavior on scroll. It is called at the end of each layout pass of the view (including scrolling) and enables you to modify any property of the child view. Examples include scaling the children based on their distance from the center of the parent, or changing the translation of the children to create an illusion of the path they are moving along.

Parameters
child View: the current child to be affected.

parent RecyclerView: the RecyclerView parent that this class is attached to.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)