All Projects → HpWens → Meibasemodule

HpWens / Meibasemodule

Licence: apache-2.0
A powerful multi-function library that extended base activity for Android!

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Meibasemodule

Shswiperefreshlayout
Android 升级版 SwipeRefreshLayout,支持RecyclerView、ScrollView等大部分组件,下拉刷新(Refresh)和上拉加载(Loadmore),支持自定义HeaderView和FooterView
Stars: ✭ 236 (+202.56%)
Mutual labels:  refreshlayout
ZRefreshLayout
一个可以全局随意配置头部的下拉刷新与上拉加载库;
Stars: ✭ 30 (-61.54%)
Mutual labels:  refreshlayout
Pullrefreshlayout
下拉刷新,上拉加载,真实的回弹(overscroll)效果(媲美qq),且大小只有37KB(是其他主流刷新库或回弹库的1/2,1/3,甚至是1/4),同时,自定义header和footer,可以实现任何你想的到的功能(例如:自动触发加载更多、二级刷新等)
Stars: ✭ 639 (+719.23%)
Mutual labels:  refreshlayout
goRefresh
让下拉刷新炫酷起来~轻松接入lottie动画,支持listview recyclerview scrollerview webview 。同时支持listview和recyclerview上拉加载
Stars: ✭ 24 (-69.23%)
Mutual labels:  refreshlayout
Chopin
A Android Refresh Layout including refresh header and load more and sticky header
Stars: ✭ 15 (-80.77%)
Mutual labels:  refreshlayout
Net
Android上强大的网络请求
Stars: ✭ 344 (+341.03%)
Mutual labels:  refreshlayout
Springview
🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use
Stars: ✭ 1,936 (+2382.05%)
Mutual labels:  refreshlayout
Smoothrefreshlayout
一款支持上下拉刷新、越界回弹、二级刷新、横向刷新、拉伸回弹、平滑滚动、嵌套滚动的多功能刷新控件
Stars: ✭ 1,166 (+1394.87%)
Mutual labels:  refreshlayout
ParticlesRefreshLayout-android
Particles Refresh Layout library for Android
Stars: ✭ 15 (-80.77%)
Mutual labels:  refreshlayout
Smartrefreshlayout
🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
Stars: ✭ 23,185 (+29624.36%)
Mutual labels:  refreshlayout
Multi-SwipeToRefreshLayout
多方向支持刷新view通用布局
Stars: ✭ 17 (-78.21%)
Mutual labels:  refreshlayout
HorizontalRefreshLayout
a android layout widget for horizontal drag refresh action (viewpager or recyclerview)
Stars: ✭ 75 (-3.85%)
Mutual labels:  refreshlayout
Brv
Android上最强大的RecyclerView库
Stars: ✭ 345 (+342.31%)
Mutual labels:  refreshlayout
React Native Smartrefreshlayout
基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件,可提供类似ios的弹性刷新
Stars: ✭ 240 (+207.69%)
Mutual labels:  refreshlayout
Swiperefreshlayout
swipeRefreshLayout refresh pull-to-refresh
Stars: ✭ 26 (-66.67%)
Mutual labels:  refreshlayout
Krefreshlayout
强大的下拉刷新库,定制任意Header。比官方SwipRefrehLayout处理更加友好(Kotlin、Java双版本)
Stars: ✭ 217 (+178.21%)
Mutual labels:  refreshlayout
SwipeRefreshPlus
参考swiperefreshlayout添加下拉加载更多
Stars: ✭ 24 (-69.23%)
Mutual labels:  refreshlayout
Qrefreshlayout
下拉刷新,上拉加载更多,自动加载更多,用法同SwipeRefreshLayout,兼容所有view,兼容nested滚动,可以自定义header footer,支持下拉到二楼
Stars: ✭ 75 (-3.85%)
Mutual labels:  refreshlayout
Flutter refresh
flutter refresh 上拉刷新 下拉加载 进度条
Stars: ✭ 51 (-34.62%)
Mutual labels:  refreshlayout
Bgarefreshlayout Android
多种下拉刷新效果、上拉加载更多、可配置自定义头部广告位
Stars: ✭ 4,261 (+5362.82%)
Mutual labels:  refreshlayout

Hex.pm Hex.pm

MeiBaseModule

A powerful multi-function library that extended base activity for Android!

引入

Step 1. Add the JitPack repository to your build file

root gradle

    allprojects {
        repositories {
            ...
            maven { url "https://jitpack.io" }
        }
    }

Step 2. Add the dependency

app gradle

	dependencies {
	        compile 'com.github.HpWens:MeiBaseModule:1.0.5'
	}

Step 3. extends MeiBase_

Activity extends MeiBaseActivity , Fragment extends MeiBaseFragment , Dialog extends MeiBaseDialog

Preview

Feature

1. 支持网络错误,空数据,正在加载,自定义等状态界面(一行代码切换状态)

2. 注入的方式实现下拉刷新,上拉加载(一行代码)且支持自定义下拉刷新样式

3. 支持单类型,多类型列表

4. 支持"单Activity + 多Fragment","多模块Activity + 多Fragment"

5. 支持透明状态栏

6. 支持软键盘的状态监听

7. 支持软键盘触摸非输入区域自动隐藏

8. 实现可拖动的底部提示框

Example

//效果见图2
@PullToRefresh  // 一行代码 注入下拉刷新功能
@PullToLoadMore // 注入上拉加载
public class PullRefreshActivity extends BaseActivity {
// 需要继承 BaseActivity ; 同理 Fragment 继承 BaseFragment ; Dialog 继承 BaseDialog 

    @Override
    protected void initView() {
    //抽象方法,必须被重写 初始化控件 调用的先后顺序 initView  ->  initData
    }

    @Override
    protected void initData() {
    //抽象方法,必须被重写 初始化数据
        getToolbarView().setTitle(getResources().getString(R.string.refresh));
        getToolbarView().setNavigationIcon(R.mipmap.ic_arrow_back_white_24dp);
        getToolbarView().setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        
        //初始显示空界面(可以配置空界面的图标和文本)
        setState(ViewState.EMPTY, new Object[]{getString(R.string.drag_refresh)});
    }

    @Override
    protected int layoutResId() {
    //抽象方法
        return 0;
    }

    @Override
    protected void onRefreshing() { //正在刷新
        super.onRefreshing();
        //rx方式(移除订阅防止泄露)
        postUiThread(2000, new UiSubscriber<Long>() {
            @Override
            public void onCompleted() {
                Toast.makeText(PullRefreshActivity.this, getResources().getString(R.string
                        .mei_refresh_success), Toast.LENGTH_SHORT).show();
                PullRefreshActivity.this.setRefreshing(false);
            }
        });
    }

    @Override
    protected void onLoadingMore() { //正在加载更多
        super.onLoadingMore();
        postUiThread(2000, new UiSubscriber<Long>() {
            @Override
            public void onCompleted() {
                Toast.makeText(PullRefreshActivity.this, getResources().getString(R.string
                        .mei_refresh_success), Toast.LENGTH_SHORT).show();
                PullRefreshActivity.this.setLoadingMore(false);
            }
        });
    }
}

LICENSE

Copyright 2018 文淑

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].