Class

Focusability

Focusability configures whether a focus target can be focused.

Source set: Common
public class Focusability private constructor(private val value: Int)

Focusability configures whether a focus target can be focused.

Members

Companion

Source set: Common
public companion object

Properties

Always

Source set: Common
public val Always: Focusability

This focus target can always gain focus. This should be used for components that can be focused regardless of input device / system state, such as text fields.

SystemDefined

Source set: Common
public val SystemDefined: Focusability

Focusability of this focus target will be defined by the system. This should be used for clickable components such as buttons and checkboxes: these components should only gain focus when they are used with certain types of input devices, such as keyboard / d-pad.

Never

Source set: Common
public val Never: Focusability

This focus target can not gain focus. This should be used for disabled components / components that are currently not interactive.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: