我想要这样的效果

@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即可


如下图





更多相关文章

  1. android TextView 实现自定义文字点击效果
  2. Android中的Button自定义点击效果
  3. material design 的android开源代码整理
  4. android中图片倒影、圆角效果重绘
  5. android使用xml实现虚线效果
  6. Android:实现类似RadioButton自动换行及单选效果
  7. Android(安卓)中带有进度条效果的按钮(Button)
  8. 自定义自己的AlertDialog
  9. 【Android】Android常见的错误及解决

随机推荐

  1. 分享20个Android游戏源码,希望大家喜欢哈!
  2. android 一直在最前面的浮动窗口效果
  3. Android编译时报错:Could not find bundle
  4. android中调用金山词霸
  5. Android对图片局部扩大的实现
  6. 关于android上dpi/screen-size的厘清解释
  7. android md5加密
  8. Android(安卓)命令行手动编译打包详解
  9. Android异步加载图片
  10. Android: couldn't save which view has