Comments (3)
解决办法: 实现View.OnClickListener, 在实现的方法里面调用带有注解的私有方法.
事件的方法本身就应该是私有的, public会造成很多误用, 例如public方法可以被其他类直接调用, 最重要的是可以被子类覆盖, 但是@event是和具体的方法是绑定的, 不支持继承覆盖.
from xutils3.
哦哦,3Q
from xutils3.
从ButterKnife转过来,用private是一个不错的想法,但有时候不能public确实不方便,能不能也支持public方法?
from xutils3.
Related Issues (20)
- isAutoId为true时,保存对象到db会报NullPointException异常
- Resource IDs will be non-final in Android Gradle Plugin version 5.0
- jcenter()要GG了,大佬能否迁移一下库?
- 删除数据造成ANR
- 网络请求,泛型的返回数据的问题,跟#531有点像又有点不像
- org.xutils.ex.FileLockedException: 报异常 HOT 1
- 文件未下载完整就返回了SUCCESS状态
- 发现了一个大bug HOT 2
- 使用xutils3进行get请求,拿不到后台接口返回数据
- 希望作者能用kotlin实现一个版本 , xutils4? HOT 2
- 对回调接口封装了一层就出问题了 HOT 1
- Unsupported Media Type
- 文件下载报错:.temp文件问题 HOT 1
- JSON 如何解析数组
- 项目是否可以适配js语言 HOT 1
- xutils3的网络请求模块的内核是okhttp吗 HOT 1
- http下载文件在Android11、12报错
- javax.net.ssl.SSLException: Unable to parse TLS packet header
- SSL handshake aborted: ssl=0x7f8abb0f80: I/O error during system call, Connection reset by peer
- 作者是放弃维护这个项目了吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xutils3.