Giter Club home page Giter Club logo

Comments (3)

bingoogolapple avatar bingoogolapple commented on July 26, 2024

@lgb020 撒意思

from bgarefreshlayout-android.

lgb020 avatar lgb020 commented on July 26, 2024

就是我用BGARefreshLayout实现了一个下拉刷新列表,类似于今日头条,就是资讯类的。
但是我现在想要实现用户点击过后当前条目变成灰色,用于区分已经阅读和没有阅读。
我已经实现了当进来后点击的话是可以变色的。但是,关闭Activity再打开时,怎么在初始化的时候把某条记录 view.setSelected(true);

简单的说就是:我怎么样在列表初始化之后再去获得某个行的view对象。
谢谢。我是Android的初学者.

from bgarefreshlayout-android.

bingoogolapple avatar bingoogolapple commented on July 26, 2024

@lgb020 在你数据模型里加个字段表示是否已经阅读过就好,在adapter的getView方法里根据那个字段来设置条目颜色

from bgarefreshlayout-android.

Related Issues (20)

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.