convertToRelativeDirection

open fun convertToRelativeDirection(flags: Int, layoutDirection: Int): Int(source)

Replaces a movement direction with its relative version by taking layout direction into account.

Return

Updated flags which uses relative flags (START, END) instead of LEFT, RIGHT.

Parameters

flags

The flag value that include any number of movement flags.

layoutDirection

The layout direction of the View. Can be obtained from getLayoutDirection.

See also