Giter Club home page Giter Club logo

adapter-kit's People

Contributors

bitdeli-chef avatar ragunathjawahar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adapter-kit's Issues

Section Header Layout's layout params are ignored in SimpleSectionAdapter

When inflating the section header layout, the parent ViewGroup should be supplied:
View.inflate(mContext, mSectionHeaderLayoutId, parent);

Currently, null is passed as the parent, and the section header's layout params are ignored. The easiest work around I've found is to add a wrapper LinearLayout or RelativeLayout to the section header layout.

SimpleSectionAdapter should register as an observer on wrapped adapter?

It seems to me that the SimpleSectionAdapter should be listening for changes on the wrapped adapter. That is, if the underlying adapter's data changes, then SimpleSectionAdapter should know to update its sections.

Something like having the SimpleSectionAdapter call registerDataSetObserver() on the wrapped adapter, and then calling findSections in the onChanged() callback.

Had to remove a line from the example when using Android Studio

Your table looks great and it didn't take long to set up the example using Android Studio. This line caused an error that I did not understand at first. After I commented it out, things were fine.

    //? import com.mobsandgeeks.adapters.R;

It was probably not needed because of how Android studio builds using the Gradle compile line. So the only files I needed to make a test project were ArrayAdapterDemoActivity.java, list_view.xml and section_header.xml.

Thanks.

Override SimpleSectionAdapter getView

Hello, in my project, I have to override SimpleSectionAdapter to change style of the section background. Is there a way to do this properly ?

In my case, I override the getView method, do the switch again, and set the background color on my view. To do this I have to create another mContext field and constant VIEW_TYPE_SECTION_HEADER because there are private.

Thx

Scrolling backwards in Circular List Adapter

This works great for going down in the list but backwards it's just like a normal list and hits the start. Is there a way to make it work similar the other way around as when scrolling down? Or I have to scroll down far enough when opening the fragment so I'm sure the user wont scroll whole way back to the start? Thanks

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.