android 开源库收藏

记录自己最近在开发中使用的开源库及部分使用方法,链接地址为个人fork后的地址,可以参见原作者仓库大家有什么好用的可以留言,一起交流学习下。

原文地址:android 开源库收藏

1. android 开发常用工具类

地址:https://github.com/txadf/Lazy

2. 字体图标

地址:https://github.com/txadf/material-icon-lib
用法:
2.1.添加依赖

compile 'net.steamcrafted:materialiconlib:1.0.9'

2.2.xml中使用
注:需要添加命名空间

<net.steamcrafted.materialiconlib.MaterialIconView
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/icon"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:scaleType="center"
        app:materialIcon="account"
        app:materialIconColor="@color/mainColor"
        app:materialIconSize="24dp"/>

示例效果:

3. UI Model

地址:http://genius.qiujuer.net/module/ui.html
按原作者网上站上的配置。
具体使用,按钮的使用:

<net.qiujuer.genius.ui.widget.Button
            xmlns:app="http://schemas.android.com/apk/res-auto"
            android:id="@+id/gbtn_login"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="25dp"
            android:background="@color/mainColor"
            android:onClick="LoginClickEvent"
            android:text="@string/login_btn"
            android:textColor="@color/white"
            app:gFont="roboto.ttf"
            app:gTouchColor="@color/black_alpha_32"
            app:gTouchDurationRate="0.7"
            app:gTouchEffect="ripple"/>

同样需要注意添加命名空间。

4. xutils3

地址:https://github.com/txadf/xUtils3

5.进度条

地址:https://github.com/txadf/spots-dialog
效果:

6.对话框

地址:https://github.com/txadf/sweet-alert-dialog
示例效果:

7. EventBus

地址:https://github.com/txadf/EventBus
注意:在使用,进行注册订阅时,使用下面的方式,其中“XXX”表示需要订阅的Activity或者Fragment名,避免直接使用“this”:

EventBus.getDefault().register(XXX.this);
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值