Giter Site home page Giter Site logo

hjhtools's Introduction

我自己项目的一个工具类

  • CUtils.class需要在自定义的application的onCreate()进行初始化CUtils.init(this);
  • Arith.class由于Java的简单类型不能够精确的对浮点数进行运算,这个工具类提供精确的浮点数运算,包括加减乘除和四舍五入。
  • BaseRecyclerViewAdapter.class 一个RecyclerView的通用适配器。需要实现item的单击或长按监听需要添加RecyclerView的addOnItemTouchListener(),并且创建自定义的OnRecyclerItemClickListener抽象类。
  • Logutil.class是一个自定义的log工具,修改LEVEL值可以选择log的打印输出,开始时候设置为VERBOSE,上线设置为NOTHING。
  • SPUtils.class是一个sp工具类,单列模式设计

预期

  • 自定义控件的更新
  • 常用布局的定义

hjhtools's People

Contributors

gavel94 avatar

Watchers

James Cloos avatar  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.