Android常用高效API

2017-07-10  本文已影响33人  Cloverss
Formatter.formatFileSize(Context context, long sizeBytes)
TypedValue.applyDimension(int unit, float value, DisplayMetrics metrics)
view.performClick()
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE)
  @Override
  public void onBackPressed() {
    Intent launcherIntent = new Intent(Intent.ACTION_MAIN);
    launcherIntent.addCategory(Intent.CATEGORY_HOME);
    startActivity(launcherIntent);
  }
上一篇下一篇

猜你喜欢

热点阅读