Skip to content

Commit

Permalink
* use setActiveProfile within the sample
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Mar 10, 2015
1 parent 6dcd6bc commit 440f041
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected void onCreate(Bundle savedInstanceState) {
final IProfile profile = new ProfileDrawerItem().withName("Mike Penz").withEmail("mikepenz@gmail.com").withIcon(getResources().getDrawable(R.drawable.profile));
final IProfile profile2 = new ProfileDrawerItem().withName("Max Muster").withEmail("max.mustermann@gmail.com").withIcon(getResources().getDrawable(R.drawable.profile2));
final IProfile profile3 = new ProfileDrawerItem().withName("Felix House").withEmail("felix.house@gmail.com").withIcon(getResources().getDrawable(R.drawable.profile3));
final IProfile profile4 = new ProfileDrawerItem().withName("Mr. X").withEmail("mister.x.super@gmail.com").withIcon(getResources().getDrawable(R.drawable.profile4));
final IProfile profile4 = new ProfileDrawerItem().withName("Mr. X").withEmail("mister.x.super@gmail.com").withIcon(getResources().getDrawable(R.drawable.profile4)).withIdentifier(4);
final IProfile profile5 = new ProfileDrawerItem().withName("Batman").withEmail("batman@gmail.com").withIcon(getResources().getDrawable(R.drawable.profile5));

// Create the AccountHeader
Expand Down Expand Up @@ -127,6 +127,8 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id,

// set the selection to the item with the identifier 5
result.setSelectionByIdentifier(5, false);

headerResult.setActiveProfile(profile3);
}

@Override
Expand Down

0 comments on commit 440f041

Please sign in to comment.