Giter VIP home page Giter VIP logo

Comments (4)

EvilBT avatar EvilBT commented on June 14, 2024

@junchenChow 可不可以说详细一点,主要用途是用来干什么的呢,我可以写上去的

from sherlockadapter.

junchenChow avatar junchenChow commented on June 14, 2024

主要是想在activity fragment等地方拿adapter,直接find之前添加的头尾view可以在外面操作。
像我以前自己封装的adapter 头尾都是用LinearLayout来装添加的view,这样我就可以直接拿activity 里面的view添加给adapter,又可以在adapter用也可以在外面用这个view.
emmmmm....不知道有没有说到这个点

from sherlockadapter.

EvilBT avatar EvilBT commented on June 14, 2024

@junchenChow 嗯,知道你大概的想法,我现在更新了 HeadAndFootAdapter类,你可以参考这个的用法。

from sherlockadapter.

junchenChow avatar junchenChow commented on June 14, 2024

打开看了一下 好像这个还是在adapter内部操作的.... 我的想法是想在外面拿到adapter的header 或者footer
public void init(){ adapter.addFooter(footerTextView); }

public void initData(){ footerTextView.setText("xxxx"); }
类似这样子~

from sherlockadapter.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.