Comments (4)
@junchenChow 可不可以说详细一点,主要用途是用来干什么的呢,我可以写上去的
from sherlockadapter.
主要是想在activity fragment等地方拿adapter,直接find之前添加的头尾view可以在外面操作。
像我以前自己封装的adapter 头尾都是用LinearLayout来装添加的view,这样我就可以直接拿activity 里面的view添加给adapter,又可以在adapter用也可以在外面用这个view.
emmmmm....不知道有没有说到这个点
from sherlockadapter.
@junchenChow 嗯,知道你大概的想法,我现在更新了 HeadAndFootAdapter类,你可以参考这个的用法。
from sherlockadapter.
打开看了一下 好像这个还是在adapter内部操作的.... 我的想法是想在外面拿到adapter的header 或者footer
public void init(){ adapter.addFooter(footerTextView); }
public void initData(){ footerTextView.setText("xxxx"); }
类似这样子~
from sherlockadapter.
Related Issues (5)
- find()方法可能有问题 HOT 3
- ArrayIndexOutOfBoundsException HOT 4
- 请问怎么关闭数据还没加载时显示默认布局,就是那个没有数据的页面 HOT 2
- expandable列表的子item不同样式 HOT 3
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 sherlockadapter.