天天看點

安卓的一些UI美化架構的使用

目錄

  • 一、前言
  • 二、Android-Bootstrap
    • GitHub位址
    • 使用方法
  • 三、Sweet Alert Dialog
    • GitHub位址
    • 使用方法
  • 四、ExplosionField
    • GitHub位址
    • 使用方法

一、前言

在這裡記錄一些用到過的覺得還算不錯的UI第三方開源美化架構,持續更新

二、Android-Bootstrap

Web前端中衆所周知的Bootstrap的安卓版

GitHub位址

https://github.com/Bearded-Hen/Android-Bootstrap

使用方法

看GitHub

三、Sweet Alert Dialog

彈窗的美化

GitHub位址

https://github.com/pedant/sweet-alert-dialog

使用方法

看GitHub,不過可能會出現問題,顯示

Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null
           

我是換成下面的代碼才解決的

implementation \'com.github.f0ris.sweetalert:library:1.6.2\'
           

四、ExplosionField

點選圖示後,圖示會分解成小粒子,形成爆炸的效果

GitHub位址

https://github.com/tyrantgit/ExplosionField

使用方法

1、看GitHub

2、由于該項目代碼較為簡單,源代碼隻有三個java檔案,是以可以直接将源代碼複制到自己項目中就能使用,源代碼目錄為

ExplosionField/explosionfield/src/main/java/tyrantgit/explosionfield/