Hi!
I have no idea where to look for the error:
---
The folder structure seems to me to be correct. Attribute files are available in the RES directory.
Thank you for any ideas in solving the problem.
I have no idea where to look for the error:
B4X:
public void processAttributeSet(final AttributeSet attributeSet) {
if (attributeSet == null) return;
final TypedArray typedArray = mContext.obtainStyledAttributes(
//-------------------------------------------------------------------------------------- E R R O R !
attributeSet, mIsVertical ? R.styleable.VerticalInfiniteCycleViewPager :
//-------------------------------------------------------------------------------------- E R R O R !
R.styleable.HorizontalInfiniteCycleViewPager
);
try {
setMinPageScaleOffset(
typedArray.getDimension(
mIsVertical ? R.styleable.VerticalInfiniteCycleViewPager_icvp_min_page_scale_offset :
R.styleable.HorizontalInfiniteCycleViewPager_icvp_min_page_scale_offset,
DEFAULT_MIN_PAGE_SCALE_OFFSET
)
);
setCenterPageScaleOffset(
typedArray.getDimension(
mIsVertical ? R.styleable.VerticalInfiniteCycleViewPager_icvp_center_page_scale_offset :
R.styleable.HorizontalInfiniteCycleViewPager_icvp_center_page_scale_offset,
DEFAULT_CENTER_PAGE_SCALE_OFFSET
)
);
setMinPageScale(
typedArray.getFloat(
mIsVertical ? R.styleable.VerticalInfiniteCycleViewPager_icvp_min_page_scale :
R.styleable.HorizontalInfiniteCycleViewPager_icvp_min_page_scale,
DEFAULT_MIN_SCALE
)
);
setMaxPageScale(
typedArray.getFloat(
mIsVertical ? R.styleable.VerticalInfiniteCycleViewPager_icvp_max_page_scale :
R.styleable.HorizontalInfiniteCycleViewPager_icvp_max_page_scale,
DEFAULT_MAX_SCALE
)
);
setMediumScaled(
typedArray.getBoolean(
mIsVertical ? R.styleable.VerticalInfiniteCycleViewPager_icvp_medium_scaled :
R.styleable.HorizontalInfiniteCycleViewPager_icvp_medium_scaled,
DEFAULT_IS_MEDIUM_SCALED
)
);
setScrollDuration(
typedArray.getInteger(
mIsVertical ? R.styleable.VerticalInfiniteCycleViewPager_icvp_scroll_duration :
R.styleable.HorizontalInfiniteCycleViewPager_icvp_scroll_duration,
DEFAULT_SCROLL_DURATION
)
);
// Retrieve interpolator
Interpolator interpolator = null;
try {
final int interpolatorId = typedArray.getResourceId(
mIsVertical ? R.styleable.VerticalInfiniteCycleViewPager_icvp_interpolator :
R.styleable.HorizontalInfiniteCycleViewPager_icvp_interpolator, 0
);
interpolator = interpolatorId == 0 ? null :
AnimationUtils.loadInterpolator(mContext, interpolatorId);
} catch (Resources.NotFoundException exception) {
interpolator = null;
exception.printStackTrace();
} finally {
setInterpolator(interpolator);
}
} finally {
typedArray.recycle();
}
}
---
The folder structure seems to me to be correct. Attribute files are available in the RES directory.
Thank you for any ideas in solving the problem.