Namenskonvention für Blackberry Res-Ordner
Ich habe eine statische Funktion wie diese erstellt.
public static Bitmap Bitmap(String path) {
Bitmap bitmap = Bitmap
.getBitmapResource(Display.getWidth() + "/" + path);
System.out.println(Display.getWidth() + "" + path);
return bitmap;
}
Als ich jedoch so anrief,
private Bitmap download = Config_GlobalFunction.Bitmap("btn_download.png");
Die Ausgabe gab mirFRIDG could not find 320/btn_download.png
.
In meinemres
Ordner, ich habe einen Ordner, der warimg
und drinnenimg
habe 6 verschiedene ordner welche waren160
, 240
, 320
, 360
, 480
und640
Mappe.
Wie kann ich das Image des richtigen Ordners basierend auf aufrufen?Display.getWidth()
?