Skip to content

Commit 25baeeb

Browse files
committed
1.1.1
1 parent 018405e commit 25baeeb

File tree

3 files changed

+9
-21
lines changed

3 files changed

+9
-21
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ ViewPagerIndicator
66
###3. 支持自定义切换tab的过渡效果
77
###4. 支持子界面的预加载和界面缓存
88
###5. 支持设置界面是否可滑动
9-
###6. android:minSdkVersion="8" android:targetSdkVersion="21"
9+
###6. android:minSdkVersion="8" android:targetSdkVersion="24"
1010

1111
###7.导入方式
1212
<1>gradle导入
1313

14-
compile 'com.shizhefei:ViewPagerIndicator:1.1.0'
14+
compile 'com.shizhefei:ViewPagerIndicator:1.1.1'
1515
由于用到了v4和recyclerview所以也要导入他们
1616
compile 'com.android.support:support-v4:23.4.0'
1717
compile 'com.android.support:recyclerview-v7:23.2.1'
@@ -221,6 +221,10 @@ Fragment继承该类实现 显示Framgment的时候才会去创建你自己的
221221
有什么建议可以发到我的邮箱 [email protected]
222222

223223
## 版本更新 ##
224+
1.1.1
225+
226+
修复BannerComponent 的adapter的count为0 的bug
227+
优化FragmentListPageAdapter count为很大的数情况,SparseArray代替ArrayList
224228
1.1.0
225229

226230
修复FixedIndicatorView.notifyDataChange, setCurrentItem的字体选中的位置不对

library/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 9
99
targetSdkVersion 23
10-
versionCode 11
11-
versionName "1.1.0"
10+
versionCode 12
11+
versionName "1.1.1"
1212
}
1313
buildTypes {
1414
release {
@@ -64,7 +64,7 @@ publish {
6464
userOrg = 'luckyjayce'//bintray.com用户名
6565
groupId = 'com.shizhefei'//jcenter上的路径
6666
artifactId = 'ViewPagerIndicator'//项目名称
67-
publishVersion = '1.1.0'//版本号
67+
publishVersion = '1.1.1'//版本号
6868
desc = '实现滑动tab,引导页等效果'//描述,不重要
6969
website = 'https://github.com/LuckyJayce/ViewPagerIndicator'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
7070
}

library/src/main/java/com/shizhefei/view/indicator/FragmentListPageAdapter.java

-16
Original file line numberDiff line numberDiff line change
@@ -31,41 +31,25 @@
3131
* Implementation of {@link PagerAdapter} that uses a
3232
* {@link Fragment} to manage each page. This class also handles saving and
3333
* restoring of fragment's state.
34-
* <p/>
35-
* <p>
3634
* This version of the pager is more useful when there are a large number of
3735
* pages, working more like a list view. When pages are not visible to the user,
3836
* their entire fragment may be destroyed, only keeping the saved state of that
3937
* fragment. This allows the pager to hold on to much less memory associated
4038
* with each visited page as compared to {@link FragmentPagerAdapter} at the
4139
* cost of potentially more overhead when switching between pages.
42-
* <p/>
43-
* <p>
4440
* When using FragmentPagerAdapter the host ViewPager must have a valid ID set.
45-
* </p>
46-
* <p/>
47-
* <p/>
4841
* Subclasses only need to implement {@link #getItem(int)} and
4942
* {@link #getCount()} to have a working adapter.
50-
* <p/>
51-
* <p/>
5243
* Here is an example implementation of a pager containing fragments of lists:
53-
* <p/>
5444
* {
5545
* development/samples/Support13Demos/src/com/example/android/supportv13/app/
5646
* FragmentStatePagerSupport.java complete}
57-
* <p/>
58-
* <p/>
5947
* The <code>R.layout.fragment_pager</code> resource of the top-level fragment
6048
* is:
61-
* <p/>
6249
* { development/samples/Support13Demos/res/layout/fragment_pager.xml
6350
* complete}
64-
* <p/>
65-
* <p/>
6651
* The <code>R.layout.fragment_pager_list</code> resource containing each
6752
* individual fragment's layout is:
68-
* <p/>
6953
* {
7054
* development/samples/Support13Demos/res/layout/fragment_pager_list.xml
7155
* complete}

0 commit comments

Comments
 (0)