Skip to content

Commit

Permalink
fix: 修改文件名,避免和其他的三方banner库冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
youlookwhat committed Apr 29, 2019
1 parent 1946f94 commit fa252dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions sbanner/src/main/java/me/jingbin/sbanner/SBannerView.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;


import java.lang.reflect.Field;
Expand Down Expand Up @@ -102,7 +101,7 @@ public SBannerView(Context context, AttributeSet attrs, int defStyle) {

private void initView(Context context, AttributeSet attrs) {
handleTypedArray(context, attrs);
View view = LayoutInflater.from(context).inflate(R.layout.banner, this, true);
View view = LayoutInflater.from(context).inflate(R.layout.layout_jbanner, this, true);
viewPager = (BannerViewPager) view.findViewById(R.id.bannerViewPager);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
params.leftMargin = mPageLeftMargin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class BannerConfig {
public static final int RIGHT = 7;

/**
* banner
* layout_jbanner
* PADDING_SIZE: 指示器大小
* MARGIN_BOTTOM: 指示器距底部的距离
* TIME: 滚动时间间隔
Expand Down
File renamed without changes.

0 comments on commit fa252dd

Please sign in to comment.