- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
/** * @author : Jarry Leo * @date : 2018/10/11 9:30 */ @ScreenAdapterDesignWidthInDp(400) public class TestV4Fragment extends Fragment { @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { MagicScreenAdapter.adapt(this, 360); MagicScreenAdapter.cancelAdapt(this); return inflater.inflate(R.layout.fragment_test, null); } }
ScreenAdapterDesignWidthInDp annotation = target.getClass().getAnnotation(ScreenAdapterDesignWidthInDp.class); designWidthInDp = annotation.value();