code: public static boolean getBooleanStyleable(Context ctx, @StyleableRes int styleable, boolean def) {
          TypedArray ta = ctx.getTheme().obtainStyledAttributes(R.styleable.MaterialDrawer);
          return ta.getBoolean(styleable, def);
      }
docs: Get the boolean value of a given styleable.
  
  @param ctx
  @param styleable
  @param def
  @return