Java Code Examples for android.widget.SectionIndexer#getSections()
The following examples show how to use
android.widget.SectionIndexer#getSections() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IndexFastScrollRecyclerSection.java From AlphabetIndex-Fast-Scroll-RecyclerView with Apache License 2.0 | 5 votes |
public void setAdapter(RecyclerView.Adapter adapter) { if (adapter instanceof SectionIndexer) { adapter.registerAdapterDataObserver(this); mIndexer = (SectionIndexer) adapter; mSections = (String[]) mIndexer.getSections(); } }
Example 2
Source File: IndexFastScrollRecyclerSection.java From 920-text-editor-v2 with Apache License 2.0 | 5 votes |
public void setAdapter(RecyclerView.Adapter adapter) { if (adapter instanceof SectionIndexer) { adapter.registerAdapterDataObserver(this); mIndexer = (SectionIndexer) adapter; mSections = (String[]) mIndexer.getSections(); } }
Example 3
Source File: IndexScroller.java From weixin with Apache License 2.0 | 5 votes |
/** * 设置右侧索引条数据 * * @param adapter */ public void setAdapter(Adapter adapter) { if (adapter instanceof SectionIndexer) { mIndexer = (SectionIndexer) adapter; mSections = (String[]) mIndexer.getSections(); } }
Example 4
Source File: IndexScroller.java From imsdk-android with MIT License | 4 votes |
public void setAdapter(Adapter adapter) { if (adapter instanceof SectionIndexer) { mIndexer = (SectionIndexer) adapter; mSections = (String[]) mIndexer.getSections(); } }