Comments (6)
volatile作为java中的关键词之一,用以声明变量的值可能随时会别的线程修改,使用volatile修饰的变量会强制将修改的值立即写入主存,主存中值的更新会使缓存中的值失效
建议你看一下java编程**
from gank.
嗯嗯,谢谢大佬。问一下RetrofitManager的代码都是你写的吗?看得我云里雾里。。。
from gank.
@Override public void onBindViewHolder(GanHuoAdapter.GanHuoHolder holder, int position) { Gank gank = gankList.get(position); holder.tvDescWithWho.setTag(gank); holder.tvDescWithWho.setText(StringStyleUtil.getGankStyleStr(gank)); }
这段代码中的setTag什么作用呢,我之前写recyclerView从来没用过
from gank.
你好 能否加下我的qq呢 我有些问题想要问你 1402709211
from gank.
@Override public void onBindViewHolder(GanHuoAdapter.GanHuoHolder holder, int position) { Gank gank = gankList.get(position); holder.tvDescWithWho.setTag(gank); holder.tvDescWithWho.setText(StringStyleUtil.getGankStyleStr(gank)); }
这段代码中的setTag什么作用呢,我之前写recyclerView从来没用过
settag是把数据存到控件中
在代码中有用到
@OnClick(R.id.ll_ganhuo)
void toWebClick() {
WebActivity.loadWebViewActivity(context, (Gank) tvDescWithWho.getTag());
}
from gank.
你好 能否加下我的qq呢 我有些问题想要问你 1402709211
大兄弟你是计算机专业吗
from gank.
Related Issues (10)
- 最好对glide进行封装一下 HOT 2
- GankAdapter对应的 是否是 妹子图片下的文字内容的adapter呢
- rx的问题 HOT 1
- LMRecyclerView onScroll()方法不调用
- retrofit网络请求应该放在哪一层? HOT 1
- presenter 的 release 方法 HOT 1
- 请问一个问题 关于也页面销毁的问题 HOT 1
- 我正在看你的项目,有些不懂的。能否有偿向你提问下呢?有偿,谢谢! HOT 2
- hosttype是什么逻辑呢 HOT 6
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 gank.