您的位置:首页 > 移动开发 > Android开发

android 控件 下拉刷新 JellyRefreshLayout

2016-04-27 18:59 453 查看
看到这个控件,就会觉得我们弱爆了,android-design的设计风格,添加了很多动画

使用:

<uk.co.imallan.jellyrefresh.JellyRefreshLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
android:text="@string/your_loading_text"
android:textColor="@color/your_loading_text_color"
app:jellyColor="@color/your_jelly_color"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"/>

</uk.co.imallan.jellyrefresh.JellyRefreshLayout>


Call back when triggering refresh:

mJellyLayout.setRefreshListener(new JellyRefreshLayout.JellyRefreshListener() {
@Override
public void onRefresh(final JellyRefreshLayout jellyRefreshLayout) {
// your code here
}
});
and finish refreshing when you are done:

mJellyLayout.finishRefreshing();



下面是通过这个项目了解到了一些很牛逼的信息,主要是设计方面的:

Dribble设计师社区:https://dribbble.com/

汇集全球的设计团队的设计产品展示,就像展览会一样。

Yalantis:https://dribbble.com/yalantis/

Yalantis开源项目:http://chuansong.me/n/1376241

Yalantis致力于提供世界一流的
Android 和 iOS 应用开发服务,因一些

动画很棒的开源库为大家所熟知,前面讲到的pheonix就是Yalantis公司出品的。

Ramotion:https://dribbble.com/ramotion

Ramotion开源项目:http://www.shejidaren.com/app-interactive-design-by-ramotion.html

Ramotion则是一家美国的设计公司
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: