0
動畫是TextView
從屏幕中心移動到其位置,同時尺寸從零變爲正常。 我已經知道使用TranslateAnimation
和ScaleAnimation
,但我不知道確定poist,所以我不能讓它從中心移動到它的位置。 我做什麼?如何使TextView從屏幕中心移動到Android中的位置
TranslateAnimation translate = new TranslateAnimation(0,(mWidth/2)- strSize/2, 0, ((mHeight/2) - strHeigth));
strHeigth: the TextView heigth;
strSize : the TextView width
mWidth : the screen width;
mHeight : the screeen heigth
我已經試過了,但沒有成功 – HeyNine
究竟是什麼,你所遇到的問題 – abc