Coder Social home page Coder Social logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Hello. I do not know what kind of error you have, but there are certain things 
you have to do to make index appear - for example described here: 
http://twistbyte.com/tutorial/android-listview-with-fast-scroll-and-section-inde
x . Probably you have not implemented Index interface. 

Original comment by [email protected] on 6 Sep 2011 at 12:20

  • Changed state: Invalid

from android-section-list.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Hi.  Thanks for your reply.  I have read and successfully ran the sample code 
from the twistbyte.com tutorial link you provided.  I also went ahead and 
implemented the SectionIndexer as you suggested.  However,  I am getting a 
java.lang.ClassCastException: pl.polidea.sectionList.SectionList Adapter error. 
 The error points to the FastScroller.java file, line 286.      

My issue seems to be similar to the one filed here:
http://code.google.com/p/android/issues/detail?id=3522

Or perhaps, I did something silly.


Original comment by [email protected] on 7 Sep 2011 at 9:46

from android-section-list.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
I had similiar problem and fixed in other library by simply extending the 
adapter from BaseAdapter. It's fixed now, please update the code.

Original comment by [email protected] on 7 Sep 2011 at 9:54

from android-section-list.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Thank you very much. I updated the code and now have it working. I appreciate 
your prompt response.  

Original comment by [email protected] on 7 Sep 2011 at 10:08

from android-section-list.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Hi, I have an additional questions.  I have successfully implemented the 
sectionindexer but I have run into a similar issue as described in the link 
below when turning on fastscroll:

http://stackoverflow.com/questions/3225092/fast-scroll-display-problem-with-list
adapter-and-sectionindexer

After applying what the above link suggests, the first Sectionheader never 
changes its text.  Or more accurately, it does not become invisible when 
needed.  After further debugging, I have confirmed that the 
makeSectionInvisibleIfFirstInList() function does not get called.  As an FYI in 
addition to making the SectionListAdapter implement 
CustomFastScrollView.SectionIndexer, i also had to modify the layout xml file 
to look like this:


<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/listView"
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent">
    <pl.polidea.sectionedlist.CustomFastScrollView 
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" 
            android:id="@+id/fast_scroll_view">
       <pl.polidea.sectionedlist.SectionListView 
        android:id="@+id/section_list_view" 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"

        android:clickable="true"
        >
        </pl.polidea.sectionedlist.SectionListView>
        <TextView android:id="@android:id/empty"
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content"
            android:text="" />
    </pl.polidea.sectionedlist.CustomFastScrollView>   

</FrameLayout>

Any thoughts as to why makeSectionInvisibleIfFirstInList() is not getting 
called?
Please pardon me if my question is rather elementary.  Have not been doing 
Android for long.  

Many thanks.

Original comment by [email protected] on 14 Sep 2011 at 11:00

from android-section-list.

Related Issues (17)

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.