当我的文本到语音正在启动时,我需要启动一个可绘制动画,当文本到语音结束时停止该动画,但我无法停止动画。 代码: tts = new TextToSpeech(this, new TextToSpeech.OnInitListener() {
@Override
public void onInit(int status) {
if (status == Te
我需要使用旋转功能进行图像视图。所以我看着Android开发者site。并使用他们的代码。但不知何故,我得到一个错误。 错误:java.lang.ClassCastException: android.graphics.drawable.StateListDrawable cannot be cast to android.graphics.drawable.AnimationDrawable 我