Annotation Type TextLayoutMode


@Documented @Deprecated @Retention(RUNTIME) @Target({PACKAGE,TYPE,METHOD}) public @interface TextLayoutMode
Deprecated.
This annotation will be deleted in a forthcoming Robolectric release.
A Configurer annotation for controlling how Robolectric performs UI layout.

PR #4818 changed Robolectric to be more realistic when performing layout on Android views. This change in behavior could cause tests still using the legacy LEGACY looper mode or relying on views being a specific size to fail.

This annotation can be applied to tests to have Robolectric perform the legacy, less accurate mechanism of laying out and measuring Android text views, as a stopgap until the tests can be properly fixed.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Deprecated.
    This enum is deprecated along with TextLayoutMode.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Deprecated.
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated.
    Optional string for storing the issue / bug id tracking the fixing of the affected tests and thus removal of this annotation.
  • Element Details

    • value

      Deprecated.
    • issueId

      String issueId
      Deprecated.
      Optional string for storing the issue / bug id tracking the fixing of the affected tests and thus removal of this annotation.
      Default:
      ""