GithubHelp home page GithubHelp logo

lankyutils's Introduction

简介

这是一个用于日常开发所需的一些Android工具类

LankyUtils目前包含

  1. LankyLog

    具备level过滤、文件行号详情的日志工具类

  2. HiddenEntrance

    以顺序按键的方式进入隐藏入口的工具类

  3. ViewUtil

    焦点/鼠标指针交互变化(突出当前焦点View)

  4. SharedPreferenceUtil

    基础数据保存工具类

  5. LankyToast

    代替原生Toast,以解决叠加显示和重复显示的问题

  6. TODO

LankyUtils

生成jar:

LankyUtils> .\gradlew makejar
Starting a Gradle Daemon, 4 busy and 2 incompatible Daemons could not be reused, use --status for details

BUILD SUCCESSFUL in 33s
63 actionable tasks: 18 executed, 45 up-to-date

生成到:

LankyUtils/libs/com.lanky.utils.jar

调试实用代码

获取当前方法运行时是被哪个文件的哪段代码调用:

StackTraceElement[] sElements = new Throwable().getStackTrace();
String mFileName = sElements[1].getFileName();
int mLineNumber = sElements[1].getLineNumber();
Log.i("lanky", "This method called by: " + mFileName + ":" + mLineNumber);

lankyutils's People

Contributors

lankybin 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.