开源框架汇总 (里面含有有很多开源框架) 

http://www.cnblogs.com/hawkon/p/3593709.html (GitHub 优秀的 Android 开源项目

http://www.devstore.cn/essay/essayInfo/5839.html(GitHub 上排名前 100 的 Android 开源库介绍

http://blog.csdn.net/liang5630/article/details/46366901/   强烈推荐android studio用的几个插件


listView框架  


http://www.mobile-open.com/2016/921154.html

渐变隐藏头部的xlistview (好用)

https://github.com/android-cjj/Android-MaterialRefreshLayout/blob/master/README-cn.md

http://blog.csdn.net/lmj623565791/article/details/24521483(类似google官方)

https://github.com/baoyongzhang/android-PullRefreshLayout(类似google官方好用)

http://www.jianshu.com/p/555c7e929fae(googleSwipeRefreshLayout文档)




gridView框架


https://codeload.github.com/liaohuqiu/android-Ultra-Pull-To-Refresh/zip/master

https://github.com/chrisbanes/Android-PullToRefresh (pulltorefresh,不过需要自己定制上拉下拉的效果)

pulltoRefresh的一些效果

集成这个控件关连刷新加载,这段代码是必须的


  //刷新加载,找到gridview布局的id,然后把值传给 mGridView
        mPullRefreshGridView = (PullToRefreshGridView) findViewById(R.id.lv_comment);
        mGridView = mPullRefreshGridView.getRefreshableView();


<?xml version="1.0" encoding="utf-8"?>
<resources>

    <declare-styleable name="PullToRefresh">

        <!-- A drawable to use as the background of the Refreshable View -->
        <attr name="ptrRefreshableViewBackground" format="reference|color" />

        <!-- A drawable to use as the background of the Header and Footer Loading Views -->
        <attr name="ptrHeaderBackground" format="reference|color" />

        <!-- Text Color of the Header and Footer Loading Views -->
        <attr name="ptrHeaderTextColor" format="reference|color" />

        <!-- Text Color of the Header and Footer Loading Views Sub Header -->
        <attr name="ptrHeaderSubTextColor" format="reference|color" />

        <!-- Mode of Pull-to-Refresh that should be used -->
        <attr name="ptrMode">
            <flag name="disabled" value="0x0" />
            <flag name="pullFromStart" value="0x1" />
            <flag name="pullFromEnd" value="0x2" />
            <flag name="both" value="0x3" />
            <flag name="manualOnly" value="0x4" />

            <!-- These last two are depreacted -->
            <flag name="pullDownFromTop" value="0x1" />
            <flag name="pullUpFromBottom" value="0x2" />
        </attr>

        <!-- Whether the Indicator overlay(s) should be used -->
        <attr name="ptrShowIndicator" format="reference|boolean" />

        <!-- Drawable to use as Loading Indicator. Changes both Header and Footer. -->
        <attr name="ptrDrawable" format="reference" />

        <!-- Drawable to use as Loading Indicator in the Header View. Overrides value set in ptrDrawable. -->
        <attr name="ptrDrawableStart" format="reference" />

        <!-- Drawable to use as Loading Indicator in the Footer View. Overrides value set in ptrDrawable. -->
        <attr name="ptrDrawableEnd" format="reference" />

        <!-- Whether Android's built-in Over Scroll should be utilised for Pull-to-Refresh. -->
        <attr name="ptrOverScroll" format="reference|boolean" />

        <!-- Base text color, typeface, size, and style for Header and Footer Loading Views -->
        <attr name="ptrHeaderTextAppearance" format="reference" />

        <!-- Base text color, typeface, size, and style for Header and Footer Loading Views Sub Header -->
        <attr name="ptrSubHeaderTextAppearance" format="reference" />

        <!-- Style of Animation should be used displayed when pulling. -->
        <attr name="ptrAnimationStyle">
            <flag name="rotate" value="0x0" />
            <flag name="flip" value="0x1" />
        </attr>

        <!-- Whether the user can scroll while the View is Refreshing -->
        <attr name="ptrScrollingWhileRefreshingEnabled" format="reference|boolean" />

        <!--
        	Whether PullToRefreshListView has it's extras enabled. This allows the user to be 
        	able to scroll while refreshing, and behaves better. It acheives this by adding
        	Header and/or Footer Views to the ListView.
        -->
        <attr name="ptrListViewExtrasEnabled" format="reference|boolean" />

        <!--
        	Whether the Drawable should be continually rotated as you pull. This only
        	takes effect when using the 'Rotate' Animation Style.
        -->
        <attr name="ptrRotateDrawableWhilePulling" format="reference|boolean" />

        <!-- BELOW HERE ARE DEPRECEATED. DO NOT USE. -->
        <attr name="ptrAdapterViewBackground" format="reference|color" />
        <attr name="ptrDrawableTop" format="reference" />
        <attr name="ptrDrawableBottom" format="reference" />
    </declare-styleable>

</resources>


flowLayout框架

https://github.com/hongyangAndroid/FlowLayout(zhanghongyang)




Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐