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

Reflective Drawable Loader

Alexandros Schillings
Trustable Ranking IconDipercayai
1K+Muat turun
417kBSaiz
Android Version Icon2.2.x+
Versi Android
0.0.3(13-07-2016)Versi terkini
-
(0 Ulasan)
Age ratingPEGI-3
Muat turun
ButiranUlasanVersiMaklumat
1/2

Perihal 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">Ini adalah satu projek sampel menunjukkan penggunaan yang reflektif Drawable Loader Perpustakaan.


Perpustakaan (dan kod) boleh didapati di sini: https://github.com/alt236/Reflective-Drawable-Loader---Android


Huraian Projek


---


Adakah anda pernah dalam situasi di mana anda terpaksa mengakses Drawables berdasarkan nama-nama mereka (contohnya jika nama-nama Drawable disimpan dalam DB a) dan anda terpaksa menulis jadual lookup panjang menukar nama ke dalam R.drawable.ids? Dan mengekalkan mereka?


Perpustakaan ini menawarkan cara di sekelilingnya dengan menggunakan refleksi untuk mengakses Drawable langsung dengan nama. Anda hanya perlu memasukkan mereka seperti biasa ke dalam pokok folder Res anda. Ia telah ditanda aras pada sehingga 5x lebih cepat daripada Resources.getIdentifier () kaedah platform ini.


Ia menggunakan LRU caching untuk mengurangkan masa overhed refleksi bagi kedua-dua mencerminkan "hits" dan "terlepas".</div> <div class="show-more-end">

Reflective Drawable Loader - Versi 0.0.3

(13-07-2016)
Versi lain
Apa yang baruv0.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.

Belum ada ulasan atau rating lagi! Untuk berikan ulasan yang pertama, sila

-
0 Reviews
5
4
3
2
1

Reflective Drawable Loader - Maklumat APK

Versi APK: 0.0.3Pakej: co.uk.alt236.reflectivedrawableloader.sampleapp
Keserasian Android: 2.2.x+ (Froyo)
Pemaju:Alexandros SchillingsDasar Privasi:http://aschillings.co.uk/html/privacy.htmlKebenaran:0
Nama: Reflective Drawable LoaderSaiz: 417 kBMuat turun: 2Versi : 0.0.3Tarikh Diterbitkan: 2020-05-19 08:03:28Skrin Min: SMALLCPU yang disokong:
ID Pakej: co.uk.alt236.reflectivedrawableloader.sampleappTandatangan SHA1: 1A:68:EE:08:0B:87:A7:45:94:B9:76:73:ED:74:EC:56:30:83:43:4FPemaju (CN): Alexandros SchillingsOrganisasi (O): alt236Lokasi (L): ColchesterNegara (C): UKNegeri/Bandar (ST): EssexID Pakej: co.uk.alt236.reflectivedrawableloader.sampleappTandatangan SHA1: 1A:68:EE:08:0B:87:A7:45:94:B9:76:73:ED:74:EC:56:30:83:43:4FPemaju (CN): Alexandros SchillingsOrganisasi (O): alt236Lokasi (L): ColchesterNegara (C): UKNegeri/Bandar (ST): Essex

Versi Terkini Reflective Drawable Loader

0.0.3Trust Icon Versions
13/7/2016
2 muat turun417 kB Saiz
Muat turun