Example usage for android.widget ListView setFastScrollEnabled

List of usage examples for android.widget ListView setFastScrollEnabled

Introduction

In this page you can find the example usage for android.widget ListView setFastScrollEnabled.

Prototype

public void setFastScrollEnabled(final boolean enabled) 

Source Link

Document

Specifies whether fast scrolling is enabled or disabled.

Usage

From source file:com.deliciousdroid.fragment.BrowseBundlesFragment.java

@Override
public void onActivityCreated(android.os.Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    setHasOptionsMenu(true);//from  w w w .  j  a v a  2 s.  c  o  m

    mAdapter = new SimpleCursorAdapter(this.getActivity(), R.layout.bundle_view, null,
            new String[] { Bundle.Name, Bundle.Tags }, new int[] { R.id.bundle_name, R.id.bundle_tags }, 0);

    setListAdapter(mAdapter);

    getLoaderManager().initLoader(0, null, this);

    ListView lv = getListView();
    lv.setTextFilterEnabled(true);
    lv.setFastScrollEnabled(true);
    lv.setOnItemClickListener(clickListener);

    lv.setItemsCanFocus(false);
    lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
}

From source file:com.deliciousdroid.fragment.BrowseTagsFragment.java

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    setHasOptionsMenu(true);/*from   w  ww  .  java2 s . co  m*/

    mAdapter = new SimpleCursorAdapter(this.getActivity(), R.layout.tag_view, null,
            new String[] { Tag.Name, Tag.Count }, new int[] { R.id.tag_name, R.id.tag_count }, 0);

    setListAdapter(mAdapter);

    getLoaderManager().initLoader(0, null, this);

    ListView lv = getListView();
    lv.setTextFilterEnabled(true);
    lv.setFastScrollEnabled(true);
    lv.setOnItemClickListener(clickListener);

    lv.setItemsCanFocus(false);
    lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
}

From source file:com.pindroid.fragment.SelectTagsFragment.java

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    setHasOptionsMenu(true);//ww  w  .java2 s .c o m

    mAdapter = new SimpleCursorAdapter(this.getActivity(), android.R.layout.simple_list_item_multiple_choice,
            null, new String[] { Tag.Name }, new int[] { android.R.id.text1 }, 0);

    setListAdapter(mAdapter);

    getLoaderManager().initLoader(0, null, this);

    ListView lv = getListView();
    lv.setTextFilterEnabled(true);
    lv.setFastScrollEnabled(true);

    lv.setItemsCanFocus(false);
    lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);

}

From source file:mobisocial.musubi.ui.fragments.EmailUnclaimedMembersFragment.java

@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    ListView lv = getListView();
    lv.setTextFilterEnabled(true);/* w  ww.j  a v a 2  s . c o m*/
    lv.setFastScrollEnabled(true);
    //registerForContextMenu(lv);
    lv.setOnItemClickListener(this);
    lv.setCacheColorHint(Color.WHITE);
}

From source file:co.nerdart.ourss.fragment.EntriesListFragment.java

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.entry_list_fragment, container, false);

    if (mEntriesCursorAdapter != null)
        setListAdapter(mEntriesCursorAdapter);

    final ListView lv = (ListView) rootView.findViewById(android.R.id.list);
    lv.setFastScrollEnabled(true);

    return rootView;
}

From source file:se.eliga.aves.birdlist.BirdListFragment.java

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    ListView listView = getListView();
    listView.setFastScrollEnabled(true);
    setHasOptionsMenu(true);/*from   w  ww .jav  a2  s .  c om*/
}

From source file:edu.princeton.jrpalmer.asmlibrary.ListMyDataCursorLoader.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.list_my_data);

    context = getBaseContext();/*w  w  w.j a v  a  2  s  .  c om*/

    getSupportLoaderManager().initLoader(LOADER_ID, null, this);

    adapter = new ListDataCursorAdapter(this, R.layout.dblistitem, null,
            new String[] { "timelong", "latitude", "longitude", "altitude", "accuracy", "provider",
                    "sdtimelong" },
            new int[] { R.id.firstTimeLong, R.id.latitude, R.id.longitude, R.id.altitude, R.id.accuracy,
                    R.id.provider, R.id.sdTimeLong },
            Adapter.NO_SELECTION);

    ListView listView = (ListView) findViewById(R.id.listDataListView);
    listView.setAdapter(adapter);

    listView.setFastScrollEnabled(true);

    mNewFixBlinker = (TextView) findViewById(R.id.newFixBlinker);
    mNewFixBlinker.setVisibility(View.INVISIBLE);

    // Log.e(TAG, "onCreate");
}

From source file:com.github.mobile.gauges.ui.GaugeListFragment.java

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    ListView listView = getListView();
    listView.setCacheColorHint(getResources().getColor(android.R.color.transparent));
    listView.setDivider(getResources().getDrawable(drawable.gauge_divider));
    listView.setDividerHeight(2);/*from   w ww.j a v a2  s.c  o  m*/
    listView.setFastScrollEnabled(true);
}

From source file:edu.stanford.mobisocial.dungbeetle.ui.fragments.FeedMembersFragment.java

@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    ListView lv = getListView();
    lv.setTextFilterEnabled(true);// ww w  . ja va2s .  c  o m
    lv.setFastScrollEnabled(true);
    //registerForContextMenu(lv);
    lv.setOnItemClickListener(this);
    //lv.setCacheColorHint(Feed.colorFor(groupName, Feed.BACKGROUND_ALPHA));
}

From source file:com.mrpoid.mrplist.ui.MrpListFragment.java

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    initPathStack();//  w  w w .  j  a  va2  s .c o  m

    setHasOptionsMenu(true);
    setListShown(false);

    mAdapter = new MrpListAdapter(getActivity());
    setListAdapter(mAdapter);

    ListView listView = getListView();
    registerForContextMenu(listView);
    listView.setOnItemLongClickListener(this);

    listView.setFastScrollEnabled(true);
    listView.setCacheColorHint(Color.TRANSPARENT);

    if (PreferencesProvider.Interface.General.getThemeImage(0) >= 2) {
        listView.setDivider(new ColorDrawable(Color.TRANSPARENT));
        listView.setDividerHeight(1);
    }

    getLoaderManager().initLoader(1001, null, this);
}