Tuesday, May 8, 2012

TextView setScaleX()/setScaleY() and setTextIsSelectable(true) selection


I have TextView and want to use setScaleX()/setScaleY() to make the text zoomable. But when I try to select some text by calling someTextView.setTextIsSelectable(true); and TextView has zoom other than 1.0f the text selection markers apprear in wrong place, it seems that the selection is shown in the old place of selected text.



Please see screenshots



NO ZOOM ZOOM 1.2f



A sample project



Can anyone help me with this problem. Thanks.


Source: Tips4all

2 comments:

  1. This is a known issue that we recently fixed internally. Consider changing the font size instead.

    ReplyDelete
  2. I don't see your code, but I assume that you didn't make it selectable after zooming? That's all I can say without seeing the code.

    ReplyDelete