Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ZOOMZOOM 1.2f

Can anyone help me with this problem. Thanks.

like image 353
Huds0nHawk Avatar asked Jan 01 '12 22:01

Huds0nHawk


2 Answers

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

like image 126
Romain Guy Avatar answered Oct 23 '22 15:10

Romain Guy


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.

like image 43
TheBrillowable Avatar answered Oct 23 '22 15:10

TheBrillowable