int attr = a.getIndex(i); if(attr == R.styleable.SnackBar_sb_backgroundColor) backgroundColor(a.getColor(attr, 0)); else if(attr == R.styleable.SnackBar_sb_backgroundCornerRadius) backgroundRadius(a.getDimensionPixelSize(attr, 0));
int attr = a.getIndex(i); if(attr == R.styleable.SnackBar_sb_backgroundColor) backgroundColor(a.getColor(attr, 0)); else if(attr == R.styleable.SnackBar_sb_backgroundCornerRadius) backgroundRadius(a.getDimensionPixelSize(attr, 0));