摘要:
思路:获取当前时间相对于当天的分钟数,然后按照时间顺序依次与时间段后面的时间(转化为分钟数)比较(如8:00-9:00,跟9:00比较)。 部分代码: 当前时间 时间段时间:String time="8:00-9:00" 阅读全文
摘要:
@Override public void onResume() { super.onResume(); getView().setFocusableInTouchMode(true); getView().requestFocus(); getView().setOnKeyListener(new View.OnKeyListener() { ... 阅读全文
摘要:
public void afterTextChanged(Editable s) { if (textInputLayout.getEditText().getText().toString().length() != length) { textInputLayout.setError(errorInfo); ... 阅读全文
摘要:
1 TelephonyManager telephonyManager= (TelephonyManager) getSystemService(TELEPHONY_SERVICE); 2 // Returns the unique device ID, for example, the IMEI for GSM and the MEID 3 // o... 阅读全文