Over the last couple of weeks many of the Google Android apps have been updated to support the Lollypop material theme. One of the noticeable changes is the new spinning hamburger for apps that use a navigation drawer such as the Play Store and Google Music.
As I mentioned in my previous post it's very easy to update to the new compatibility libraries which support the new material theme and the new navigation drawer style is included, again with a very simple modification.
Update import
The new ActionBarDrawerToggle
is found in the v7 support library, so you need to update your imports.
The old style:
import android.support.v4.app.ActionBarDrawerToggle;
The new style:
import android.support.v7.app.ActionBarDrawerToggle;
Update constructor
The new ActionBarDrawerToggle
also has a slightly different constructor, you no longer need to provide a drawable resource for the hamburger.
The old style:
ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, int drawerImageRes, int openDrawerContentDescRes, int closeDrawerContentDescRes)
The new style:
ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, int openDrawerContentDescRes, int closeDrawerContentDescRes)