AndroidStudio Template之launch

快速写入一个Activity的launch代码

  public static void launch(Context context){
        Intent intent = new Intent(context, $class$.class);
        ActivityUtil.switchTo(context, intent);
  }

达到的效果如下:

图片.png

图片.png

需要新建一个Live Template

图片.png

template 代码

  public static void launch(Context context){
        Intent intent = new Intent(context, $class$.class);
        ActivityUtil.switchTo(context, intent);
  }

你可能感兴趣的:(AndroidStudio Template之launch)