AndroidCommon

Project Url: Trinea/AndroidCommon
Introduction: Android 公共库
Other: 包括:a. ImageCache 图片缓存,包含内存和 Sdcard 缓存
https://www.trinea.cn/android/android-imagecache/
特点:(1)支持预取新图片,支持等待队列
(2)包含二级缓存,可自定义文件名保存规则
(3)可选择多种缓存算法(FIFO、LIFO、LRU、MRU、LFU、MFU 等 13 种)或自定义缓存算法
(4)可方便的保存及初始化恢复数据
(5)支持不同类型网络处理
(6)可根据系统配置初始化缓存等
More: Author   ReportBugs   DemoAPK   Doc
Tags:

Overview

Trinea Android Common is a collection of cache components, UI widgets, and utility helpers that power thousands of Android apps. The project focuses on reproducible solutions for list pagination, image/network caching, download management, and day-to-day toolkit gaps so that small teams can ship stable products quickly.

Modules at a Glance

  • Cache suite: in-memory/disk image caches, HTTP cache, and preload data cache with FIFO/LIFO/LRU/etc. policies plus persistence helpers.
  • Reusable views: pull-to-refresh & infinite scroll ListView, paged Gallery, responsive ScrollView, ad/banner carousel, and more.
  • Utility helpers: DownloadManagerPro, shell/package/resource/file/json/string/collection utilities, silent install helpers, time/date helpers, and random utilities used across apps.
  • Dev Tools App: Dev Tools on Google Play lets developers browse the latest OSS projects, inspect activities, decompile APKs, perform color pick, dump manifest info, and toggle developer options quickly.

Getting Started

  1. Import the library module or add the dependency:
    implementation 'cn.trinea.android.common:trinea-android-common:4.2.15'
    
  2. Proguard
    -keep class cn.trinea.android.** { *; }
    -keepclassmembers class cn.trinea.android.** { *; }
    -dontwarn cn.trinea.android.**
    
  3. Review the API Guide and sample app for usage patterns.
  4. When integrating as a library project, open Project Properties → Android → Library and add TrineaAndroidCommon.

Maintenance & Roadmap

Although the codebase has been quiet recently, the components remain in active use across the community. We are preparing modernization work (AndroidX migration, refreshed sample app, expanded tests) and will leverage Claude/Codex for OSS to accelerate documentation, governance, and CI improvements. Community members can watch GitHub Issues/Discussions for upcoming milestones.

License

Apache License 2.0 — see LICENSE.

Contact & Community

We welcome issues and pull requests that help modernize the toolkit and keep long-lived apps healthy.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools