In android L calculator app when you try too add more than ten digits
Text size changes with a cool animation. so Text/Font size goes smaller and you can fit more digits
How can I do that ?
[UPDATE]
As shown in this Video
Asked
Active
Viewed 3,186 times
2

9patchcoder
- 619
- 1
- 5
- 17
-
can u show any example? – Itzik Samara Jul 22 '14 at 18:10
-
yes ... I uploaded a Video – 9patchcoder Jul 22 '14 at 18:50
2 Answers
1
Try these properties. Should be anyone from this.
android:translationX=""
android:translationY=""
android:transformPivotX=""
android:transformPivotY=""
android:scaleX=""
android:scaleY=""

intrepidkarthi
- 3,104
- 8
- 42
- 75
-
-
thanks but I still can't apply it ... could you take a look at the video ? because the size and scale of EditText/TextView remains the same after all – 9patchcoder Jul 22 '14 at 18:55
-
I have Android 5.0 with me. But the text size changes after the zoomin/out animation. – intrepidkarthi Jul 22 '14 at 18:57
-
exactly ... What i meant was how to animate changing of the text/font size not the whole TextView Size – 9patchcoder Jul 22 '14 at 19:03
1
for the Animation use this example :
do it in the Callback onTextChanged which occurs when you Type a char in the View
Hope it helps.
also you can use the same Animation to EditText but use this Example for this : EditText addTextChangeListener

Community
- 1
- 1

Itzik Samara
- 2,278
- 1
- 14
- 18