(Translated by https://www.hiragana.jp/)
czy1121 (ezy) · GitHub
Skip to content
View czy1121's full-sized avatar
Block or Report

Block or report czy1121

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
czy1121/README.md

Project

项目基本きほん结构

  • app - 宿主しゅくしゅ应用,组合个业务模块形成けいせい应用
  • framework - 项目かまち引用いんようかく种库并加入かにゅうだい三方依赖形成有业务倾向的框架
  • libs - 项目业务しょう关或稳定てきてきいち些库
    • lib1
    • lib2
    • lib3
  • modules - 项目业务块,赖framework,かく个模块是互相へだた离无感知かんちてき
    • foo
    • bar
    • zoo
  • repo - 项目仓库,やめ经成がた稳定
    • aar - こうのう库,单一职责,应该在任ざいにんなん项目以单どく引入使用しよう

Repo

repositories {
    maven { url "https://gitee.com/ezy/repo/raw/cosmo/"}
} 

Foundation

  • init - https://github.com/czy1121/init
    いち个 Kotlin + Flow 实现てき Android 应用はつはじめ启动库,つう过有こう无环图(DAG)らい调度应用はつはじめにん务。
  • router - https://github.com/czy1121/router
    いち个 kotlin + ksp 实现てきよし库,つう过 uri 实现页面间跳转
  • servicelocator - https://github.com/czy1121/servicelocator
    一个简单的服务定位器模式实现,如果觉得Dagger/Koinふとおも以试试这个。
  • flowbus - https://github.com/czy1121/flowbus
    一个简单的事件总线实现(もと于SharedFlow)
  • httpapi - https://github.com/czy1121/httpapi
    使用しよう Coroutine + Retrofit づくりてきさい简单HTTP请求库,支持しじ kotlin.Result
  • base - https://github.com/czy1121/base
    页面もと类 BaseActivity/BaseFragment 统一了子类初始化UI(onSetupUI)てき位置いち
  • binding - https://github.com/czy1121/binding
    简化 DataBinding/ViewBinding 使用しよう提供ていきょう生命せいめい周期しゅうき感知かんち能力のうりょく支持しじ使用しよう环境(ComponentActivity/Fragment/CustomDialog/ViewGroup)
  • argument - https://github.com/czy1121/argument
    つう过 Kotlin たく属性ぞくせい获取 Activity/Fragment てきさんすう配合はいごう router 使用しよう
  • screenadapt - https://github.com/czy1121/screenadapt
    てい成本なりもとへいまく适配(今日きょう头条へいまく适配方案ほうあん)
  • dialog - https://github.com/czy1121/dialog
    • AlertDialog扩展(tip/alert/confirm/choose)
    • てい义对话框(CustomDialog) - BottomDialog/DropdownDialog/SideDialog
    • 一些简单的对话框 - LoadingDialog/InputDialog/ActionSheetDialog/PickerDialog

UI

  • loading - https://github.com/czy1121/loading
    いち些 loading 动画
  • statelayout - https://github.com/czy1121/statelayout
    简单实用无侵入しんにゅうだか扩展てき页面じょう态布きょく(content,loading,empty,error)
  • tabs - https://github.com/czy1121/tabs
    简化 TabLayout 使用しよう使用しよう TabItemView 代替だいたい TabLayout.TabView,支持しじ远程动态载图标
  • bannerview - https://github.com/czy1121/bannerview
    简单このみようてき水平すいへい轮播ひかえけん
  • pickerview - https://github.com/czy1121/pickerview
    使用しよう RecyclerView 实现てき滚轮ひかえけん,这个以显しめせ3个以じょう元素げんそ(けい统自带的 NumberPicker うつしりょうただのう显示3个)。
  • pullrefresh - https://github.com/czy1121/pullrefresh
    实现りょうはま套滚动机せいてきひしげ刷新さっしんひかえけん
  • scrollinglayout - https://github.com/czy1121/scrollinglayout
    垂直すいちょく方向ほうこう支持しじ个子视图续连贯滚动的容器ようき,并且支持しじ吸顶こうのう
  • bk - https://github.com/czy1121/bk
    BKDrawable/BKFrameLayout/BKLinearLayout/BKTextView てい背景はいけいしょく/渐变/圆角/阴影/描边
    • 支持しじ 背景はいけいしょく[正常せいじょう/选中/按下/きんよう]
    • 支持しじ 渐变[类型/半径はんけい/方向ほうこう/中心ちゅうしんてんXYすわ标(0.0~1.0)/颜色(开始-中心ちゅうしん-结束)]
    • 支持しじ 圆角[半径はんけい位置いち],すえ宽高动计さん圆角半径はんけい min(height,width) / 2
    • 支持しじ 阴影[颜色/半径はんけい/边距(よう纳阴かげてきそら间)]
      • 阴影颜色だま认自动从背景はいけいある描边获取,也可以手动设おけ
      • 阴影绘制算法さんぽう ShadowRenderer
    • 支持しじ 描边[颜色/あつ/きょ线长/きょ线间すき]
    • BKTextView 支持しじ 图标[图标/尺寸しゃくすん/边距/着色ちゃくしょく/位置いち],类似 MaterialButton てき图标
  • tv - https://github.com/czy1121/tv
    一些实用的自定义TextView
    • CamelTextView - 额外设置两个ぶんほん(prefix/suffix),可用かよう于带单位てきすう值,如:123.0もと
    • ThreeTextView
      • 额外设置两个ぶんほん(text2/text3),text2 ざい text そこ,text3 ざいみぎ
      • 设置左右さゆう两个图标(leftIcon/rightIcon)
    • ExpandableTextView - てん开收缩的てきぶんほんてん击切换状态,みぎ下角したすみ显示じょう态图标(てん开/おさむ缩)
    • ReadMoreTextView - てん开收缩的てきぶんほんてん击切换状态,显示じょう态文ほん(てん开/おさむ缩)
  • rv - https://github.com/czy1121/rv
    RecyclerView 扩展:itemtype, loadmore, selection, decoration
    • rv-itemtype
      • もと于 ListAdapter ないおけ支持しじ AsyncListDiffer
      • 支持しじ单类がたれつひょう(SingleTypeAdapter)かず类型れつひょう(ItemTypeAdapter)
      • ItemType<Item, Holder> 表示ひょうじれつひょうさとてきいち个类がた
        • つう过 create 创建 Holder
        • つう过 matches 判断はんだんいなあずかかずすえ(Item)关联
        • つう过 bind はた关联てきすうすえ(Item)てい现到 Holder
      • ItemSubtype 支持しじ一个数据类型对应多个子类型布局
      • うちおけてき ViewItemType 以方便びんはたてい义视图(View)あずかかずすえ(Item)关联组成いち个ItemType
      • うちおけてき LayoutItemType 以方便びんはたぬのきょく(layoutResId)あずかかずすえ(Item)关联组成いち个ItemType
      • うちおけてき bindingType 函数かんすうふうそうりょう LayoutItemType 以支持しじ DataBinding
    • rv-loadmore,支持しじ载更てき类型れつひょう(LoadMoreAdapter)
      • ざい rv-itemtype, statelayout てきもと础上实现りょう载更おお
      • 支持しじ显示种状态: loading, offline, empty, hasMore, ended, error
        • 开始载:ゆう网(loading), 无网(offline)
        • 完成かんせい载:无数すえ(empty)
        • 完成かんせい载/载下いち页:有数ゆうすうすえゆういち页(hasMore), 有数ゆうすうすえ无下いち页(ended)
        • 载下いち页:错(error)
    • rv-selection,于 recyclerview-selection, ListAdapter StringKey てき单选/选库
      • selectionTracker 构造いち个 SelectionTracker
      • SelectionViewModel 保存ほぞんりょうとうまえてき选择じょう
    • rv-decoration
      • DividerDecoration 为列ひょう项之间添加てんかぶんへだた线
      • SpaceDecoration 为列ひょう项之间添加てんか空白くうはく

Tool

  • deviceid - https://github.com/czy1121/deviceid
    获取设备标识(widevineId/instanceId/androidId/oaid),さいしゅう设备しんいき
  • systembars - https://github.com/czy1121/systembars
    けい统栏工具こうぐ库 - じょう态栏/导航栏/沉浸しき
  • cipher - https://github.com/czy1121/
    工具こうぐ类:digest/encoding/hmac/rsa/aes
  • mmkv - https://github.com/czy1121/mmkv
    使用しよう kotlin たく属性ぞくせいふうそうてき mmkv 库,代替だいたい SharedPreferences,简单このみよう
  • html - https://github.com/czy1121/html
    けんよう(HTML to Spanned) 7.0(API 24) しんぞうてき一些标签和样式,以通过自てい义 ElementHandler 方便ほうべん实现てい义标签。
  • networkstate - https://github.com/czy1121/networkstate
    判断はんだん网络可用かよう判断はんだん网络(wifi/mobile/vpn)连接,获取网络类型,监听网络可用かよう事件じけん
  • utility - https://github.com/czy1121/utility
    かく种工函数かんすう:context,toast,dimen,file,format,random...

Other

Demo

Pinned Loading

  1. bk bk Public

    BKDrawable/BKFrameLayout/BKLinearLayout/BKTextView てい背景はいけいしょく/渐变/圆角/阴影/描边

    Kotlin 2

  2. router router Public

    いち个 kotlin + ksp 实现てきよし库,つう过 uri 实现页面间跳转

    Kotlin 6 4

  3. flowbus flowbus Public

    事件じけん总线(もと于SharedFlow)

    Kotlin 3

  4. httpapi httpapi Public

    使用しよう Coroutine + Retrofit づくりてきさい简单HTTP请求库

    Kotlin 11 2

  5. jsbridge jsbridge Public

    简单えきようてき Android WebView Javascript 交互こうごかまち

    Kotlin 1

  6. binding binding Public

    简化 DataBinding/ViewBinding 使用しよう提供ていきょう生命せいめい周期しゅうき感知かんち能力のうりょく支持しじ使用しよう环境(ComponentActivity/Fragment/CustomDialog/ViewGroup)

    Kotlin 2