Commit 81d4e6d1 by chengxiuhong

test main

parent 54b9ce18
......@@ -693,22 +693,22 @@ public class EyeTestActivity extends BaseActivity {
return Double.parseDouble(levelByIndex);
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_DOWN){
//两次点击大于1秒
long currentTime = System.currentTimeMillis();
if (mLastOnKeyTime > 0 && currentTime - mLastOnKeyTime < 500) {
return true;
}
mLastOnKeyTime = currentTime;
if(isKeyDwon) {
userChooseError();
}
}
return super.onTouchEvent(event);
}
// @Override
// public boolean onTouchEvent(MotionEvent event) {
// if(event.getAction() == MotionEvent.ACTION_DOWN){
// //两次点击大于1秒
// long currentTime = System.currentTimeMillis();
// if (mLastOnKeyTime > 0 && currentTime - mLastOnKeyTime < 500) {
// return true;
// }
// mLastOnKeyTime = currentTime;
// if(isKeyDwon) {
// userChooseError();
// }
// }
// return super.onTouchEvent(event);
//
// }
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
......
......@@ -32,14 +32,15 @@
android:textSize="@dimen/sp_22" />
</LinearLayout>
<TextView
android:layout_marginTop="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_20"
android:paddingTop="@dimen/dp_16"
android:paddingRight="@dimen/dp_20"
android:id="@+id/next_left"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:gravity="right"
android:layout_height="wrap_content"
android:textColor="@color/text_color"
android:textSize="@dimen/sp_16"/>
android:textSize="@dimen/sp_18"/>
<RelativeLayout
android:id="@+id/rl_eye_test_center1"
android:layout_width="match_parent"
......
......@@ -145,10 +145,10 @@ public class BDttsUtils {
// this.mSpeechSynthesizer.setParam(SpeechSynthesizer.PARAM_TTS_LICENCE_FILE, mSampleDirPath + "/"
// + LICENSE_FILE_NAME);
// 请替换为语音开发者平台上注册应用得到的App ID (离线授权)
this.mSpeechSynthesizer.setAppId("9321224"/*这里只是为了让Demo运行使用的APPID,请替换成自己的id。*/);
this.mSpeechSynthesizer.setAppId("11809311"/*这里只是为了让Demo运行使用的APPID,请替换成自己的id。*/);
// 请替换为语音开发者平台注册应用得到的apikey和secretkey (在线授权)
this.mSpeechSynthesizer.setApiKey("dl47xfIUBeXnrLgEvcYbAaZC",
"f1047beafc867fe4b7f5905ecd43bb56"/*这里只是为了让Demo正常运行使用APIKey,请替换成自己的APIKey*/);
this.mSpeechSynthesizer.setApiKey("mUXMWLVWzh0HiIne0IUxGNf1",
"SjReU66wQb3l9pFwe1OWVVDM0GBTvr99"/*这里只是为了让Demo正常运行使用APIKey,请替换成自己的APIKey*/);
// 发音人(在线引擎),可用参数为0,1,2,3。。。(服务器端会动态增加,各值含义参考文档,以文档说明为准。0--普通女声,1--普通男声,2--特别男声,3--情感男声。。。)
this.mSpeechSynthesizer.setParam(SpeechSynthesizer.PARAM_SPEAKER, "0");
// 设置Mix模式的合成策略
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment