@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
logger = SimpleLogger.getInstance(getContext());
waltDevice = WaltDevice.getInstance(getContext());
// Inflate the layout for this fragment
final View view = inflater.inflate(R.layout.fragment_drag_latency, container, false);
logTextView = (TextView) view.findViewById(R.id.txt_log_drag_latency);
startButton = view.findViewById(R.id.button_start_drag);
restartButton = view.findViewById(R.id.button_restart_drag);
finishButton = view.findViewById(R.id.button_finish_drag);
touchCatcher = (TouchCatcherView) view.findViewById(R.id.tap_catcher);
crossCountsView = (TextView) view.findViewById(R.id.txt_cross_counts);
dragCountsView = (TextView) view.findViewById(R.id.txt_drag_counts);
latencyChart = (ScatterChart) view.findViewById(R.id.latency_chart);
latencyChartLayout = view.findViewById(R.id.latency_chart_layout);
logTextView.setMovementMethod(new ScrollingMovementMethod());
view.findViewById(R.id.button_close_chart).setOnClickListener(this);
restartButton.setEnabled(false);
finishButton.setEnabled(false);
return view;
}
DragLatencyFragment.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:walt
作者:
评论列表
文章目录