From Documentation: parameter duration - either be one of the predefined lengths: LENGTH_SHORT, LENGTH_LONG, or a custom duration in milliseconds. But I can
It seems to be fixed in
compile 'com.android.support:design:22.2.1'
Only Lint shows it red underlined, but it works.