@@ -73,31 +73,31 @@ public void run() {
7373 .setId (2 )
7474 .setUsername ("Raphaël Bussa" )
7575 .setEmail ("raphaelbussa@gmail.com" )
76- .setAvatar ("https://avatars1.githubusercontent. com/u/3964819?v=3&s=460 " )
76+ .setAvatar ("https://github. com/rebus007.png?size=512 " )
7777 .setBackground ("https://images.unsplash.com/photo-1473220464492-452fb02e6221?dpr=2&auto=format&fit=crop&w=767&h=512&q=80&cs=tinysrgb&crop=" )
7878 .build ();
7979
8080 Profile profile2 = new Profile .Builder ()
8181 .setId (4 )
8282 .setUsername ("Federico Gentile" )
8383 .setEmail ("fgentile95dev@icloud.com" )
84- .setAvatar ("https://avatars2.githubusercontent. com/u/22976202?v=3&s=460 " )
84+ .setAvatar ("https://github. com/FedeGens.png?size=512 " )
8585 .setBackground ("https://images.unsplash.com/photo-1469173479606-ada03df615ac?dpr=2&auto=format&fit=crop&w=767&h=511&q=80&cs=tinysrgb&crop=" )
8686 .build ();
8787
8888 Profile profile3 = new Profile .Builder ()
8989 .setId (6 )
9090 .setUsername ("Luca Rurio" )
9191 .setEmail ("rurio.luca@gmail.com" )
92- .setAvatar ("https://avatars3.githubusercontent. com/u/16242044?v=3&s=460 " )
92+ .setAvatar ("https://github. com/RurioLuca.png?size=512 " )
9393 .setBackground ("https://images.unsplash.com/photo-1473789810014-375ed569d0ed?dpr=2&auto=format&fit=crop&w=767&h=511&q=80&cs=tinysrgb&crop=" )
9494 .build ();
9595
9696 Profile profile4 = new Profile .Builder ()
9797 .setId (8 )
9898 .setUsername ("Claudio Pastorini" )
9999 .setEmail ("pastorini.claudio@gmail.com" )
100- .setAvatar ("https://avatars0.githubusercontent. com/u/4195199?v=3&s=460 " )
100+ .setAvatar ("https://github. com/claudiopastorini.png?size=512 " )
101101 .setBackground ("https://images.unsplash.com/photo-1452509133926-2b180c6d6245?dpr=2&auto=format&fit=crop&w=767&h=431&q=80&cs=tinysrgb&crop=" )
102102 .build ();
103103
@@ -113,15 +113,21 @@ public void run() {
113113
114114
115115 headerView .setStyle (HeaderView .STYLE_NORMAL );
116- headerView .setShowGradient (true );
117116 headerView .setTheme (HeaderView .THEME_LIGHT );
117+ headerView .setShowGradient (true );
118118 headerView .setHighlightColor (ContextCompat .getColor (this , R .color .colorAccent ));
119119 headerView .addProfile (profile , profile2 , profile3 , profile4 );
120120 headerView .addDialogItem (item , item2 );
121121 headerView .setShowAddButton (true );
122- // headerView.setAddIconDrawable(R.drawable.ic_action_settings);
122+ headerView .setAddIconDrawable (R .drawable .ic_action_settings );
123123 headerView .setDialogTitle ("Choose account" );
124- //headerView.setShowArrow(false);
124+ headerView .setShowArrow (true );
125+ headerView .setOnHeaderClickListener (new View .OnClickListener () {
126+ @ Override
127+ public void onClick (View v ) {
128+ drawerLayout .closeDrawer (GravityCompat .START , true );
129+ }
130+ });
125131 headerView .setFragmentManager (getFragmentManager ());
126132 headerView .setCallback (new HeaderCallback () {
127133
@@ -152,13 +158,13 @@ public boolean onAdd() {
152158 Profile newProfile = new Profile .Builder ()
153159 .setId (100 )
154160 .setUsername ("Mattia Novelli" )
155- .setEmail ("@ mattinove" )
156- .setAvatar ("https://avatars1.githubusercontent. com/u/12815527?v=3&s=460 " )
161+ .setEmail ("mattinove@me.com " )
162+ .setAvatar ("https://github. com/mattinove.png?size=512 " )
157163 .setBackground ("https://images.unsplash.com/photo-1478194409487-fa5c1eb18622?dpr=2&auto=format&fit=crop&w=767&h=496&q=80&cs=tinysrgb&crop=" )
158164 .build ();
159165 headerView .addProfile (newProfile );
160166 headerView .setProfileActive (100 );
161- return false ;
167+ return true ;
162168 }
163169
164170 });
0 commit comments