GithubHelp home page GithubHelp logo

isaiahking / androidbaselib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhaolongs/androidbaselib

0.0 1.0 0.0 11.8 MB

android 快速开发基础组件 :【scanlistlibrary 基础组件说明(基于 RecyclerView的封装)】

Java 100.00%

androidbaselib's Introduction

AndroidBaseLib

android基础开发包

com.studyyoun.androidbaselibrary.manager.AppManager

 Activity 栈管理器 使用时在baseActivity 中 AppManager.addActivity(this); 然后在退出程序时 可使用 AppManager.finishAllActivity();关闭所有的Activity

新增AES 加密工具类

```
        //密钥
        String key = "AD2FF87425CA729C";
        //明文
        String content = "{\"password\":\"123456\",\"username\":\"145\"}";
        //加密
        String lEncrypt =AesUtils.encrypt(key, content);
        //密文
        System.out.println("" + lEncrypt);
        //解密
        String lDecrypt = AesUtils.decrypt(key, lEncrypt);
        //还原明文
        System.out.println(lDecrypt);

```

新增webview 常用初时化工具

```java
    使用  WebViewFunction.getInstance().initWebViewSettings(mWebView, mContext);
```

新增 自定义像机modlue

    private CameraUtils mCameraUtils;
    
    //初始化回调
    mCameraUtils = CameraUtils.getInstance().setContinuous(true).initCamerView(this, rootView, lWidthPixels, lHeightPixels, new CameraCallBack() {
                @Override
                public void cameraFaile(int errCode, String message) {
                    LogUtils.e("errCode " + errCode + "  message " + message);
                }
    
                @Override
                public void cameraSuccess(String mFilePath) {
                    LogUtils.d("success  " + mFilePath);
                    //显示图片
                    showImageFunction(mFilePath);
                }
    
                @Override
                public void cameraPermisExit() {
                    //无权限,应退出页面
                    TestCameraActivity.this.finish();
                }
            });
    
    
    //点击拍照
    CameraUtils.getInstance().onCameraClick();

LoadingDialogUtils 加载等待提示框

```
//显示提示框
LoadingDialogUtils.getInstance().show();

//隐藏提示框
LoadingDialogUtils.getInstance().dismiss();
```

自定义View系列

```
 com.studyyoun.androidbaselibrary.view 包下
1 AutoScannerView 仿微信上下扫一扫
2 LoadingView 仿苹果 圆形菊花加载提示
```

androidbaselib's People

Contributors

zhaolongs avatar

Watchers

 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.