智能售货机及其程序测试(5)
时间:2022-01-03 10:08 来源:毕业论文 作者:毕业论文 点击:次
private ProgressDialog mProgressDialog = null;
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub PalLog。d(TAG, "onCreate"); super。onCreate(savedInstanceState); setContentView(R。layout。scangood_layout); searchEditView = (TextView) findViewById(R。id。searchEditView); // searchEditView。setCursorVisible(true); // searchEditView。setSelectAllOnFocus(false); searchEditView。setInputType(InputType。TYPE_NULL); mHideSearchEditView = (TextView)findViewById(R。id。searchEditView3); mHideSearchEditView。setInputType(InputType。TYPE_NULL); setHintText("请完成验证。");来,自,优.尔:论;文*网www.youerw.com +QQ752018766- mMediaPlayerFragment = MediaPlayerFragment。newInstance(Driver。PAYWAY_THM); replace(mMediaPlayerFragment); speak(false, "11。3。1"); } @SuppressLint("NewApi") private void replace(Fragment mcurrentFragment){ FragmentManager fm = getFragmentManager(); FragmentTransaction transaction = fm。beginTransaction(); transaction。replace(R。id。content, mcurrentFragment); transaction。commit(); } // @Override // public void onClick(View view) { // // // switch(view。getId()) // // { // // case R。id。btn_back: // // this。setFragemnt(R。id。btn_home); // // break; // // } // // Character tag = ((String) view。getTag())。charAt(0); // char c = tag。charValue(); // if (c == 'F') { // int len = buffer。length(); //// String scanStr = searchEditView。getText()。toString()。replace(" ", ""); //// if(scanStr。length() != len){ //// buffer。append(scanStr); //// } // if (len > 0) { // buffer。setLength(len - 1); // } // // searchEditView。setText(getShowString(buffer。toString())); // } else if (c == 'E') { // buffer。setLength(0); // searchEditView。setText(getShowString(buffer。toString())); // } else if ((c >= '0' && c <= '9') | (c >= 'A' & c <= 'D')) { // if (buffer。length() <= MAXNUM) { // buffer。append(c); // } // searchEditView。setText(getShowString(buffer。toString())); // } else if (c == 'S') { // (责任编辑:qin) |