public void onConfirm(View view) {
final Model model = checkInputs();
if (model == null) {
return;
}
final Intent intent = new Intent(this, MainService.class);
intent.putExtra(MainService.ACTION_KEY, MainService.ACTION_TRAIN);
intent.putExtra(MainService.EXTRAS_NEURAL_CONFIG, model);
startService(intent);
final int height = mContainer.getHeight();
final Activity that = this;
mPage.setClickable(false);
mContainer.animate()
.y(-height)
.alpha(0F)
.setInterpolator(new AnticipateInterpolator())
.setDuration(300)
.withEndAction(new Runnable() {
@Override
public void run() {
if (!that.isFinishing()) {
that.finish();
}
}
}).start();
Tracker.getInstance()
.event(TrackCons.Model.CLICK_TRAIN)
.put(TrackCons.Key.MSG, snapshot(model))
.log();
}
NeuralModelActivity.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:Synapse
作者:
评论列表
文章目录