Search in sources :

Example 1 with MyListAdapter

use of com.haarman.listviewanimations.MyListAdapter in project ListViewAnimations by nhaarman.

the class AppearanceExamplesActivity method onCreate.

@Override
protected void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mAdapter = new MyListAdapter(this);
    setAlphaAdapter();
    assert getActionBar() != null;
    getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
    getActionBar().setDisplayShowTitleEnabled(false);
    SpinnerAdapter animSelectionAdapter = new AnimSelectionAdapter(this);
    getActionBar().setListNavigationCallbacks(animSelectionAdapter, this);
}
Also used : SpinnerAdapter(android.widget.SpinnerAdapter) MyListAdapter(com.haarman.listviewanimations.MyListAdapter)

Aggregations

SpinnerAdapter (android.widget.SpinnerAdapter)1 MyListAdapter (com.haarman.listviewanimations.MyListAdapter)1