You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the view causes errors while showing itself via the UI designer.
I suggest using isInEditMode() command, maybe like so:
public JazzyViewPager(final Context context, final AttributeSet attrs) {
super(context, attrs);
setClipChildren(false);
// now style everything!
final TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.JazzyViewPager);
final int effect = ta.getInt(R.styleable.JazzyViewPager_style, 0);
if (!isInEditMode()) {
final String[] transitions = getResources().getStringArray(R.array.jazzy_effects);
setTransitionEffect(TransitionEffect.valueOf(transitions[effect]));
}
setFadeEnabled(ta.getBoolean(R.styleable.JazzyViewPager_fadeEnabled, false));
...
The text was updated successfully, but these errors were encountered:
Currently, the view causes errors while showing itself via the UI designer.
I suggest using isInEditMode() command, maybe like so:
The text was updated successfully, but these errors were encountered: