Skip to content

Add public instance methods to View class for getting locations and sizes #1760

Closed

Description

@hamorphis
  • View.getLocationInWindow()
  • View.getLocationOnScreen()
  • View.getLocationRelativeTo(view: View)
  • View.getActualSize()

These utility methods will help you identify the view's location in the coordinate systems of the window, the screen or another View. You will also be able to get the actual size of the view after layout has sized it.

Activity

  1. self-assigned this
    on Mar 15, 2016
  2. added this to the milestone on Mar 15, 2016
  3. changed the title [-]Add public instance methods View.getLocationInWindow() and View.getLocationOnScreen()[/-] [+]Add public instance methods to View class for getting locations and sizes.[/+] on Mar 18, 2016
  4. changed the title [-]Add public instance methods to View class for getting locations and sizes.[/-] [+]Add public instance methods to View class for getting locations and sizes[/+] on Mar 18, 2016
  5. added a commit that references this issue on Mar 21, 2016
    fe3d176
  6. lock commented on Aug 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  7. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions