For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/lynx-native-api/lynx-view/find-view-by-name.md.
Lynx
  • English
  • findViewByName

    Find UIView based on name attribute.

    Syntax

    Android

    public View findViewByName(String name);

    Parameters

    • name: The name attribute of the view specified by the front end in the layout file.

    Return

    • The UIView node corresponding to the name attribute.

    iOS

    - (nullable UIView *)findViewWithName:(nonnull NSString *)name;

    Parameters

    • name: The name attribute of the view specified by the front end in the layout file.

    Return

    • The UIView node corresponding to the name attribute.

    Compatibility

    LCD tables only load in the browser

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.