Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyJayce committed Aug 11, 2016
1 parent 018405e commit 25baeeb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -221,6 +221,10 @@ Fragment继承该类实现 显示Framgment的时候才会去创建你自己的
有什么建议可以发到我的邮箱 [email protected]

## 版本更新 ##
1.1.1

修复BannerComponent 的adapter的count为0 的bug
优化FragmentListPageAdapter count为很大的数情况,SparseArray代替ArrayList
1.1.0

修复FixedIndicatorView.notifyDataChange, setCurrentItem的字体选中的位置不对
Expand Down
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
versionCode 11
versionName "1.1.0"
versionCode 12
versionName "1.1.1"
}
buildTypes {
release {
Expand Down Expand Up @@ -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上的地址,例如我这样的;当然你有地址最好了
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <p/>
* <p>
* 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.
* <p/>
* <p>
* When using FragmentPagerAdapter the host ViewPager must have a valid ID set.
* </p>
* <p/>
* <p/>
* Subclasses only need to implement {@link #getItem(int)} and
* {@link #getCount()} to have a working adapter.
* <p/>
* <p/>
* Here is an example implementation of a pager containing fragments of lists:
* <p/>
* {
* development/samples/Support13Demos/src/com/example/android/supportv13/app/
* FragmentStatePagerSupport.java complete}
* <p/>
* <p/>
* The <code>R.layout.fragment_pager</code> resource of the top-level fragment
* is:
* <p/>
* { development/samples/Support13Demos/res/layout/fragment_pager.xml
* complete}
* <p/>
* <p/>
* The <code>R.layout.fragment_pager_list</code> resource containing each
* individual fragment's layout is:
* <p/>
* {
* development/samples/Support13Demos/res/layout/fragment_pager_list.xml
* complete}
Expand Down

0 comments on commit 25baeeb

Please sign in to comment.