Reflective Drawable Loader
Alexandros Schillings- USK ab 0 JahrenAltersfreigabe
- ToolsKategorie
- 27.07.2015Aktualisiert
- KostenlosPreis
Verlinkt auf den offiziellen Google Play-Eintrag von co.uk.alt236.reflectivedrawableloader.sampleapp. Zuletzt geprüft am 01.12.2026.
Über diese App
Automatische Übersetzung von Google. Originalsprache: Englisch (Vereinigte Staaten).
Beispielprojekt zur Demonstration der Verwendung der Reflective Drawable Loader Library
Dies ist ein Beispielprojekt demonstriert die Verwendung des Reflective Drawable Loader-Bibliothek.
Die Bibliothek (und Code) finden Sie hier: https://github.com/alt236/Reflective-Drawable-Loader---Android
Projektbeschreibung
---
Waren Sie schon einmal in einer Situation, wo Sie hatten Zugriff auf Drawables basierend auf ihren Namen (zum Beispiel, wenn die Drawable Namen werden in einem DB gespeichert ist) und man musste lange Lookup-Tabellen schreiben Umwandlung der Namen in R.drawable.ids? Und ihre Beibehaltung?
Diese Bibliothek bietet einen Weg, um es mit Reflexion, um die Auslosungs direkt nach Namen zugreifen. Sie müssen sie nur als normale in Ihre Res Ordner-Struktur enthalten. Es hat sich bis Benchmarks schneller als Resources.getIdentifier ()-Methode der Plattform zu 5x.
Es ist mit LRU-Caching, um die Reflexion Zeitaufwand für beide Reflexion "Hits" und "Misses" zu mildern.
Die Bibliothek (und Code) finden Sie hier: https://github.com/alt236/Reflective-Drawable-Loader---Android
Projektbeschreibung
---
Waren Sie schon einmal in einer Situation, wo Sie hatten Zugriff auf Drawables basierend auf ihren Namen (zum Beispiel, wenn die Drawable Namen werden in einem DB gespeichert ist) und man musste lange Lookup-Tabellen schreiben Umwandlung der Namen in R.drawable.ids? Und ihre Beibehaltung?
Diese Bibliothek bietet einen Weg, um es mit Reflexion, um die Auslosungs direkt nach Namen zugreifen. Sie müssen sie nur als normale in Ihre Res Ordner-Struktur enthalten. Es hat sich bis Benchmarks schneller als Resources.getIdentifier ()-Methode der Plattform zu 5x.
Es ist mit LRU-Caching, um die Reflexion Zeitaufwand für beide Reflexion "Hits" und "Misses" zu mildern.
Originaltext anzeigen
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".
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".
Datensicherheit
Was Alexandros Schillings bei Google Play zu den Daten angibt, die diese App erfasst und weitergibt.
- Keine Daten werden mit Drittunternehmen oder -organisationen geteiltWeitere Informationen dazu, wie Entwickler Angaben zur Weitergabe von Daten machen
- Keine Daten erhobenWeitere Informationen dazu, wie Entwickler Angaben zur Datenerhebung machen
Neue Funktionen
Version 0.0.3 · 27.07.2015
v0.0.1 First public release
v0.0.2 Bugfixes, added caching of the resource classes in ReflectionUtils.
v0.0.3 Added caching of non-existing drawable requests.
v0.0.2 Bugfixes, added caching of the resource classes in ReflectionUtils.
v0.0.3 Added caching of non-existing drawable requests.
Kontakt zum Entwickler
- Websiteaschillings.co.uk
- E-Mailaschillings.dev@gmail.com
- Datenschutzerklärungaschillings.co.uk
- Adresse33 Craufurd Rise MAINDENHEAD SL67LR United Kingdom
Informationen
- Angeboten von
- Alexandros Schillings
- Kategorie
- Tools
- Version
- 0.0.3
- Aktualisiert
- 27.07.2015
- Veröffentlicht
- 04.12.2013
- Erfordert
- Android 2.2 oder höher
- Altersfreigabe
- USK ab 0 Jahren
- Preis
- Kostenlos
- Paketname
- co.uk.alt236.reflectivedrawableloader.sampleapp

