Skip to main content

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
Source: Tips4allSource: CCNA FINAL EXAM

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

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?