"); } @Override public void initView() { TranslateAnimation translateAnimation = new TranslateAnimation(0,BitMapUtils.dip2px(getApplicationContext(),100),0,0); translateAnimation.setDuration(500); translateAnimation.setRepeatMode(Animation.REVERSE); translateAnimation.setRepeatCount(Animation.INFINITE); mTvString.startAnimation(translateAnimation); } @Override public void initData() { translateUtils = new TranslateUtils(); translateUtils.setSource("youdao"); translateUtils.translateFromArticleHtml(mHtmlText, new TranslateUtils.TranslateCallBcak() { @Override public void success(String html) { mHtmlText.loadData(html, "text/html; charset=UTF-8", null);//这种写法可以正确解码 } @Override public void fail(String msg) { } }); } @Override public void initListener() { }}
免責聲明:若本站收錄的資源侵犯了您的權益,我們會及時刪除侵權內容,謝謝合作!