示例#1
0
 @Override
 protected View initializeView() {
   View view = getView(R.layout.sets_popup);
   String sets = String.format("%d", roundCountdown.getSets());
   setsView = (EditText) view.findViewById(R.id.set_sets);
   setsView.setText(sets);
   setsView.setSelection(sets.length());
   return view;
 }
示例#2
0
 @Override
 protected void OKClicked() {
   String setsText = setsView.getText().toString();
   int sets = Integer.parseInt(setsText.length() == 0 ? "0" : setsText);
   roundCountdown.setSets(sets);
 }