GithubHelp home page GithubHelp logo

xtoast's Introduction

XToast

自定义吐司

LogRecordHelper

功能描述:

自定义Toast 可编辑点:

1、文字大小
2、文字颜色
3、背景颜色
4、图标
5、显示时长

Gradle:

compile 'acffo.xqx.xtoast_lib:xtoastlib:1.0.0'

Maven:

<dependency>
  <groupId>acffo.xqx.xtoast_lib</groupId>
  <artifactId>xtoastlib</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>



使用方法:

// 纯文字

XToastHelper.getInstance()
             .setTxtColor(getResources().getColor(R.color.colorAccent))
             .setTxtSize(18)
             .setDuration(Toast.LENGTH_SHORT)
             .setBgColor(Color.parseColor("#2222ff"))
             .showXToast(this,"这是提示文字" );

// 图标+文字

 XToastHelper.getInstance()
             .showXToast(this,"这是提示文字" , R.mipmap.icon_about);

我的博客: 听着music睡

xtoast's People

Contributors

bestcoderxqx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jinligen

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.