android studio 格式化代码时注解不换行
16lz
2021-01-23
我想要这样的效果
@BindView(R.id.hello_tv) TextView helloTv;@BindView(R.id.click_btn) Button clickBtn;
@BindView(R.id.hello_tv) TextView helloTv;@BindView(R.id.click_btn) Button clickBtn;
其实很简单只需要在
File-->Code Style-->Java-->Wrapping and Braces -->Field annotations 设置为Do not wrap即可
如下图
更多相关文章
- android TextView 实现自定义文字点击效果
- Android中的Button自定义点击效果
- android使用xml实现虚线效果
- Android:实现类似RadioButton自动换行及单选效果
- Android 中带有进度条效果的按钮(Button)
- android和ios button点击变暗效果
- Android给控件添加默认点击效果