Giter Club home page Giter Club logo

zhongliaolibs's Introduction

平时使用的libs

Core

  • 主要是包括平时用到的一些工具类
    • AppUtils
    • DateUtils
    • DensityUtils
    • DialogUtils
    • KeyBoardUtils
    • Log 这个里面有一个是否打印日志的标识
    • RegularUtils 这个是正则表达式的工具类
    • ScreenUtils

acp

eg:

String[] PERMISSIONS = new String[]{
        Manifest.permission.CAMERA,
        Manifest.permission.WRITE_EXTERNAL_STORAGE
};
AcpSignle.requestPermisstions(
  context, 
  permisstions, 
  new AcpSignle.RequestCallBack() {
            @Override
            public void suceess() {
                //获得权限
            }

            @Override
            public void error() {
                //获取权限失败
            }
});

circleimageview

  • 圆角图片

  • 项目源地址

  • 修改了BitmapConfig

    Bitmap.Config BITMAP_CONFIG = Bitmap.Config.RGB_888;
    改成了
    Bitmap.Config BITMAP_CONFIG = Bitmap.Config.RGB_565;
  • 列表不建议使用这个,容易oom


citypicker

  • 选择城市

eg:

Intent intent = new Intent();
intent.setClass(context,ChoiseCityActivity.class);
context.startActivityForResult(intent,0x0001);

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if(resultCode == RESULT_OK && requestCode == 0x0001){
            final String address = data.getStringExtra(ChoiseCityActivity.KEY_PICKED_CITY);
   }
}

image_corpper

  • 图片裁剪

eg:

CropImage.activity(sorceUri,tagetUri)
     .setGuidelines(CropImageView.Guidelines.ON)
     .start(activity);

ptr-lib

  • 下拉刷新
  • 加载成功失败都只需要调用adapter的notifyDataSetChanged就行

eg:

recyclerView.setLoadDataInterface(new PtrRecyclerView.PtrRecyclerViewInterface(){
  	public void loadData(boolean isFrist) {
      
  	}
  
  	public boolean haveMoreData() {
        
    }
  
});
recyclerView.fristLoadData();

wheelpickerview

  • 滚轮选择

添加依赖

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

...

compile 'com.github.yudapiandroid.zhongliaolibs:core:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:wheelpickerview:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:ptr-lib:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:spinkit_library:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:image_corpper:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:gsyvideoplayer:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:mpchartlib:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:acp:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:citypicker:1.8'
compile 'com.github.yudapiandroid.zhongliaolibs:circleimageview:1.8'

zhongliaolibs's People

Contributors

yudapiandroid avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.