Skip to content

Cant get the exact location of the textview within it's parent. #3

@JoseMiralles

Description

@JoseMiralles

Is there anyway of finding the exact x,y coordinates of the stickerTextView.tvmain inside of it's parent? In my case, the parent is a RelativeLayout.

I am trying to use drawText() to draw the text at the same location and with the same rotation as the stickerTextview is within it's parent. However, StickerTextView.Bottom and StickerTextView.Right returns the same value regardless of the position of the StickerTextView.

I also tried StickerTextView.getx and StickerTextView.getY after sticking the parent relativeLayout to the top and left corner of the scree. This only works when the textview reaches a certain size only. Otherwise, if the textview is too small, then it is drawn below where it should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions