BGABanner-Android icon indicating copy to clipboard operation
BGABanner-Android copied to clipboard

并没有考虑在fragment中使用

Open LLeonyR opened this issue 7 years ago • 0 comments

` /** * 设置进入按钮和跳过按钮控件资源 id,需要开发者自己处理这两个按钮的点击事件 * * @param enterResId 进入按钮控件 * @param skipResId 跳过按钮控件 */ public void setEnterSkipViewId(int enterResId, int skipResId) { if (enterResId != 0) { mEnterView = ((Activity) getContext()).findViewById(enterResId); } if (skipResId != 0) { mSkipView = ((Activity) getContext()).findViewById(skipResId); } }

看到楼主的这段代码,是没有考虑用在fragment中的 public void setEnterSkipViewId(View enterView, view skipView) { if (skipView != null) { mSkipView = skipView; } if (enterView != null) { mEnterView = enterView; } } ` 可以添加让使用者主动设置view的方法

LLeonyR avatar Dec 11 '17 07:12 LLeonyR