I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 430d56b6 authored by str4d's avatar str4d
Browse files

Set choice mode for navigation drawer

This should have enabled the current navigation drawer entry to be highlighted
by the call to setItemChecked() in selectItem(), but it still doesn't work.
parent 405bb331
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ public class MainActivity extends ActionBarActivity { ...@@ -42,6 +42,7 @@ public class MainActivity extends ActionBarActivity {
// Set a custom shadow that overlays the main content when the drawer opens // Set a custom shadow that overlays the main content when the drawer opens
mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START);
mDrawerList.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
// Set the adapter for the list view // Set the adapter for the list view
mDrawerList.setAdapter(new ArrayAdapter<String>(this, mDrawerList.setAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, mFragmentTitles)); android.R.layout.simple_list_item_1, mFragmentTitles));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment