Comments (5)
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.
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.
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.
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.
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)
- Moving section is overlapped HOT 1
- Support non-sectioned headers HOT 2
- Library project compilation fails because of non-final resource ids used in switch statement
- How to add the seachView and more importantly the filter for StandardArrayAdapter or SectionListAdapter ? HOT 1
- While list view item height increases the section header visible/change timing changes!
- Unable to setOnItemClick listener
- Checkboxes getting unexpected checked
- i want list view click intent to another activity
- Problem with implementing SELECTOR
- Is there an example of how to use this? HOT 5
- OnItemClickListener doesn't seem to get called HOT 15
- Setting empty List, still shows a default Section HOT 2
- Where can I find the License text specific to this library? ( HOT 1
- onItemClickListener only called for sections HOT 2
- getting an exception when using it as a library HOT 3
- How to/best way to reload/refresh HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-section-list.