コンテンツへスキップ

Reflective Drawable Loader

Alexandros Schillings
  • 3 歳以上対象年齢
  • ツールカテゴリ
  • 2015/7/27更新日
  • 無料価格
Google Playで入手

co.uk.alt236.reflectivedrawableloader.sampleappのGoogle Play公式ページにリンクしています。最終確認:2026/12/1。

スクリーンショット

  • Reflective Drawable Loaderのスクリーンショット 1
  • Reflective Drawable Loaderのスクリーンショット 2

このアプリについて

Googleによる英語 (アメリカ合衆国)からの自動翻訳です。

Reflective Drawable Loader Libraryの使用を示すサンプルプロジェクト

これは、反射Drawableのローダ​​·ライブラリの使用方法を示すサンプルプロジェクトです。
ライブラリ(およびコード)はここで見つけることができます:https://github.com/alt236/Reflective-Drawable-Loader---Android

プロジェクトの説明
---
あなたは(Drawableの名前がDBに保存されている場合など)は、その名前に基づいてドロウアブルにアクセスしなければならなかった状況で、これまでなかった、あなたがR.drawable.idsに名前を変換し、長いルックアップテーブルを作成する必要がありました?それらを維持する?

このライブラリは、名前で直接描画領域にアクセスするためにリフレクションを使用してそれを回避する方法を提供しています。あなたは、あなたのRESフォルダツリーに通常通りにそれらを含める必要があります。これは、プラットフォームのResources.getIdentifier()メソッドよりも高速最大5倍でベンチマークされています。

これは、両方の反射 "ヒット"と "ミス"のための反射時間のオーバーヘッドを軽減するために、LRUキャッシュを使用しています。
原文を表示
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".

データ セーフティ

このアプリが収集・共有するデータについて、Alexandros SchillingsがGoogle Playで申告している内容です。

  • 第三者と共有されるデータはありません詳しくは、デベロッパーが共有を申告する方法についての説明をご覧ください
  • データは収集されません詳しくは、デベロッパーが収集を申告する方法についての説明をご覧ください

新機能

バージョン 0.0.3 · 2015/7/27

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.
開発元の連絡先

情報

提供元
Alexandros Schillings
カテゴリ
ツール
バージョン
0.0.3
更新日
2015/7/27
リリース
2013/12/4
必要条件
Android 2.2以降
対象年齢
3 歳以上
価格
無料
パッケージ名
co.uk.alt236.reflectivedrawableloader.sampleapp