Git Product home page Git Product logo

stickysection's Introduction

Table of Contents

StickySectionListView: Stick section at top of ListView

An attempt to copy a ListView with sticky sections of iPhone.

iOS Android OS
File:https://github.com/downloads/nfirex/StickySection/stickysectionlistview_iphone.png File:https://github.com/downloads/nfirex/StickySection/stickysectionlistview_android.png

Dependencies

This project requires only Android default widgets.

Usage

After StickyListView creating you must use setAdapter(yourAdapter) method. yourAdapter must implements a SectionIndexer, otherway StickySectionListView will work like default ListView.

StickySectionListView is a single class in src/com/wagado/widget/StickySectionListView.class. You can export only this class as .jar or copy in you project source.

Demo

It is a demonstration project - you can download and run it.

License

The code in this project is licensed under the Apache Software License 2.0.

stickysection's People

Contributors

nfirex avatar

Stargazers

Frank Fan avatar codingman avatar Vasilii Artemev avatar 李小义 avatar trietbui85 avatar Snow Helsing avatar

Watchers

Vasilii Artemev avatar James Cloos avatar  avatar

stickysection's Issues

Оптимизация для StickySectionListView

  1. Оптимизировать логику определения и хранения "Стикера" (mStickerSection), заголовка, который смещает "Стикер" (mStickerSection).
  2. Оптимизировать рисование "Стикера" (mStickerSection).

Sticker incorrect draw in API Level <= 7

После смещения "Стикера" новым заголовком, "Стикер" не обновился. Обновился, лишь при полном скрытии заголовка.

Оптимизация для StickySectionListAdapter

  1. Оптимизировать методы SectionIndexer в StickySectionListAdapter. Использовать другую логику поисков индексов и позиций секций.
  2. По возможности избавиться от методов getStickerSection и getSectionByPosition (можно убрать в StickySectionListView), а SectionIndexer, как патч, встроить в SectionListAdapter, чтобы избавиться от StickySectionListAdapter вообще.

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.