1/2
Reflective Drawable Loader screenshot 0
Reflective Drawable Loader screenshot 1
Reflective Drawable Loader Icon

Reflective Drawable Loader

Alexandros Schillings
Trustable Ranking Icon可信任
1K+下载次数
417kB大小
Android Version Icon2.2.x+
Android版本
0.0.3(13-07-2016)最新版本
-
(0 评价)
Age ratingPEGI-3
下载
详情评价版本信息
1/2

Reflective Drawable Loader介绍

This is a sample project demonstrating the use of the Reflective Drawable Loader Library.


The library (and code) can be found here: https://github.com/alt236/Reflective-Drawable-Loader---Android


Project Description


---


Were you ever in a situation where you had to access Drawables based on their names (for example if the Drawable names are stored in a DB) and you had to write long lookup tables converting the names into R.drawable.ids? And maintaining them?


This library is offering a way around it by using reflection to access the Drawable directly by name. You only need to include them as normal into your Res folder tree. It has been benchmarked at up to 5x faster than the platform's Resources.getIdentifier() method.


It is using LRU caching to mitigate the reflection time overhead for both reflection "hits" and "misses".


</div> <div jsname="WJz9Hc" style="display:none">这是一个示例项目演示了如何使用反光绘制对象装载机图书馆。


库(和代码)可以在这里找到:https://github.com/alt236/Reflective-Drawable-Loader---Android


项目介绍


---


在一个情况下,你必须访问可绘制对象的基础上他们的名字(例如,如果绘制对象名称存储在DB)曾经是你的话,你不得不写长长的查找表转换成名称R.drawable.ids?和维护他们?


这个库是通过使用反射来直接通过名称访问可绘制对象提供变通的办法。你只需要把它们作为正常到你的res文件夹树。据基准在高达5倍比平台的Resources.getIdentifier()方法更快。


它使用LRU缓存来减轻反射时间开销为反思“点击”和“失误”。</div> <div class="show-more-end">

Reflective Drawable Loader - 版本0.0.3

(13-07-2016)
其他版本
新特性v0.0.1 First public releasev0.0.2 Bugfixes, added caching of the resource classes in ReflectionUtils.v0.0.3 Added caching of non-existing drawable requests.

还没有评论或评分!要留下第一条评论或评分,请

-
0 Reviews
5
4
3
2
1

Reflective Drawable Loader - APK信息

APK版本: 0.0.3程序包: co.uk.alt236.reflectivedrawableloader.sampleapp
Android兼容性: 2.2.x+ (Froyo)
开发商:Alexandros Schillings隐私政策:http://aschillings.co.uk/html/privacy.html权限:0
名称: Reflective Drawable Loader大小: 417 kB下载次数: 2版本: 0.0.3发布日期: 2020-05-19 08:03:28最小屏幕: SMALL支持的CPU:
程序包ID: co.uk.alt236.reflectivedrawableloader.sampleappSHA1签名: 1A:68:EE:08:0B:87:A7:45:94:B9:76:73:ED:74:EC:56:30:83:43:4F开发商 (CN): Alexandros Schillings组织 (O): alt236本地 (L): Colchester国家/地区 (C): UK州/市 (ST): Essex程序包ID: co.uk.alt236.reflectivedrawableloader.sampleappSHA1签名: 1A:68:EE:08:0B:87:A7:45:94:B9:76:73:ED:74:EC:56:30:83:43:4F开发商 (CN): Alexandros Schillings组织 (O): alt236本地 (L): Colchester国家/地区 (C): UK州/市 (ST): Essex

Reflective Drawable Loader的最新版本

0.0.3Trust Icon Versions
13/7/2016
2 下载次数417 kB 大小
下载