Reflective Drawable Loader
Alexandros Schillings- Rating 3+Batasan usia
- Alat Kategori
- 27/7/2015Diperbarui
- GratisHarga
Tertaut ke halaman resmi co.uk.alt236.reflectivedrawableloader.sampleapp di Google Play. Terakhir diperiksa pada 1/12/2026.
Tentang aplikasi ini
Terjemahan otomatis oleh Google. Bahasa asli: Inggris (Amerika Serikat).
Contoh proyek menunjukkan penggunaan Perpustakaan Loader Reflektif Drawable
Ini adalah contoh proyek yang menunjukkan penggunaan Reflektif Drawable Loader Library.
Perpustakaan (dan kode) dapat ditemukan di sini: https://github.com/alt236/Reflective-Drawable-Loader---Android
Uraian Proyek
---
Apakah Anda pernah dalam situasi di mana Anda harus mengakses Drawables berdasarkan nama mereka (misalnya jika nama Drawable disimpan dalam DB) dan Anda harus menulis tabel lookup panjang mengubah nama menjadi R.drawable.ids? Dan memelihara mereka?
Perpustakaan ini menawarkan jalan di sekitarnya dengan menggunakan refleksi untuk mengakses Drawable langsung dengan nama. Anda hanya perlu memasukkan mereka sebagai normal menjadi pohon folder Res Anda. Telah mengacu pada sampai 5x lebih cepat dari metode platform Resources.getIdentifier ().
Hal ini menggunakan LRU caching untuk mengurangi refleksi waktu overhead untuk kedua refleksi "hits" dan "meleset".
Perpustakaan (dan kode) dapat ditemukan di sini: https://github.com/alt236/Reflective-Drawable-Loader---Android
Uraian Proyek
---
Apakah Anda pernah dalam situasi di mana Anda harus mengakses Drawables berdasarkan nama mereka (misalnya jika nama Drawable disimpan dalam DB) dan Anda harus menulis tabel lookup panjang mengubah nama menjadi R.drawable.ids? Dan memelihara mereka?
Perpustakaan ini menawarkan jalan di sekitarnya dengan menggunakan refleksi untuk mengakses Drawable langsung dengan nama. Anda hanya perlu memasukkan mereka sebagai normal menjadi pohon folder Res Anda. Telah mengacu pada sampai 5x lebih cepat dari metode platform Resources.getIdentifier ().
Hal ini menggunakan LRU caching untuk mengurangi refleksi waktu overhead untuk kedua refleksi "hits" dan "meleset".
Tampilkan teks asli
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".
Keamanan data
Yang dinyatakan Alexandros Schillings di Google Play tentang data yang dikumpulkan dan dibagikan aplikasi ini.
- Tidak ada data yang dibagikan kepada pihak ketigaPelajari lebih lanjut cara developer menyatakan pembagian data
- Tidak ada data yang dikumpulkanPelajari lebih lanjut cara developer menyatakan pengumpulan data
Yang baru
Versi 0.0.3 · 27/7/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.
Kontak pengembang
- Situs webaschillings.co.uk
- Emailaschillings.dev@gmail.com
- Kebijakan Privasiaschillings.co.uk
- Alamat33 Craufurd Rise MAINDENHEAD SL67LR United Kingdom
Informasi
- Ditawarkan oleh
- Alexandros Schillings
- Kategori
- Alat
- Versi
- 0.0.3
- Diperbarui
- 27/7/2015
- Dirilis
- 4/12/2013
- Memerlukan
- Android 2.2 atau yang lebih baru
- Batasan usia
- Rating 3+
- Harga
- Gratis
- Nama paket
- co.uk.alt236.reflectivedrawableloader.sampleapp

