Android渐变纠错效果
package com.example.myapplication4;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
public class SkipWordActivityOne extends AppCompatActivity {
TextView mAsrTextView1;
TextView mAsrTextView2;
Button startBtn;
int count = 0;
String last;
String current;
boolean isFinish;
int duration = 150;
private Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
if (msg.what == 0) {
if (count < strings1.length - 1) {
isFinish = false;