From 25baeeb7dccc2a07c9f2170bcfd312bda496406f Mon Sep 17 00:00:00 2001 From: LuckyJayce <794629068@qq.com> Date: Thu, 11 Aug 2016 10:54:21 +0800 Subject: [PATCH] 1.1.1 --- README.md | 8 ++++++-- library/build.gradle | 6 +++--- .../view/indicator/FragmentListPageAdapter.java | 16 ---------------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 0f4ef99..6f1b6b2 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@ ViewPagerIndicator ###3. 支持自定义切换tab的过渡效果 ###4. 支持子界面的预加载和界面缓存 ###5. 支持设置界面是否可滑动 -###6. android:minSdkVersion="8" android:targetSdkVersion="21" +###6. android:minSdkVersion="8" android:targetSdkVersion="24" ###7.导入方式 <1>gradle导入 - compile 'com.shizhefei:ViewPagerIndicator:1.1.0' + compile 'com.shizhefei:ViewPagerIndicator:1.1.1' 由于用到了v4和recyclerview所以也要导入他们 compile 'com.android.support:support-v4:23.4.0' compile 'com.android.support:recyclerview-v7:23.2.1' @@ -221,6 +221,10 @@ Fragment继承该类实现 显示Framgment的时候才会去创建你自己的 有什么建议可以发到我的邮箱 794629068@qq.com ## 版本更新 ## +1.1.1 + + 修复BannerComponent 的adapter的count为0 的bug + 优化FragmentListPageAdapter count为很大的数情况,SparseArray代替ArrayList 1.1.0 修复FixedIndicatorView.notifyDataChange, setCurrentItem的字体选中的位置不对 diff --git a/library/build.gradle b/library/build.gradle index e81cfc5..4e14bea 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -7,8 +7,8 @@ android { defaultConfig { minSdkVersion 9 targetSdkVersion 23 - versionCode 11 - versionName "1.1.0" + versionCode 12 + versionName "1.1.1" } buildTypes { release { @@ -64,7 +64,7 @@ publish { userOrg = 'luckyjayce'//bintray.com用户名 groupId = 'com.shizhefei'//jcenter上的路径 artifactId = 'ViewPagerIndicator'//项目名称 - publishVersion = '1.1.0'//版本号 + publishVersion = '1.1.1'//版本号 desc = '实现滑动tab,引导页等效果'//描述,不重要 website = 'https://github.com/LuckyJayce/ViewPagerIndicator'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了 } \ No newline at end of file diff --git a/library/src/main/java/com/shizhefei/view/indicator/FragmentListPageAdapter.java b/library/src/main/java/com/shizhefei/view/indicator/FragmentListPageAdapter.java index 93ff9a4..774e16d 100644 --- a/library/src/main/java/com/shizhefei/view/indicator/FragmentListPageAdapter.java +++ b/library/src/main/java/com/shizhefei/view/indicator/FragmentListPageAdapter.java @@ -31,41 +31,25 @@ * Implementation of {@link PagerAdapter} that uses a * {@link Fragment} to manage each page. This class also handles saving and * restoring of fragment's state. - *

- *

* This version of the pager is more useful when there are a large number of * pages, working more like a list view. When pages are not visible to the user, * their entire fragment may be destroyed, only keeping the saved state of that * fragment. This allows the pager to hold on to much less memory associated * with each visited page as compared to {@link FragmentPagerAdapter} at the * cost of potentially more overhead when switching between pages. - *

- *

* When using FragmentPagerAdapter the host ViewPager must have a valid ID set. - *

- *

- *

* Subclasses only need to implement {@link #getItem(int)} and * {@link #getCount()} to have a working adapter. - *

- *

* Here is an example implementation of a pager containing fragments of lists: - *

* { * development/samples/Support13Demos/src/com/example/android/supportv13/app/ * FragmentStatePagerSupport.java complete} - *

- *

* The R.layout.fragment_pager resource of the top-level fragment * is: - *

* { development/samples/Support13Demos/res/layout/fragment_pager.xml * complete} - *

- *

* The R.layout.fragment_pager_list resource containing each * individual fragment's layout is: - *

* { * development/samples/Support13Demos/res/layout/fragment_pager_list.xml * complete}