My problem might seems easy, but I really can’t resolve it. At some point, my code displays a bunch of images (ImageView) in a LinearLayout, inside an AlertDialog.
The problem is that not everything is displayed.
Here’s my code :
public LinearLayout createLayout(String text) {
LinearLayout ll = new LinearLayout(this.c);
int res;
for(int i=0; i<text.length(); ++i) {
res = this.c.getResources().getIdentifier("pigpen_" + Character.toLowerCase(text.charAt(i)), "drawable", this.c.getPackageName());
ImageView iv = new ImageView(this.c);
iv.setPadding(5, 0, 0, 5);
iv.setImageResource(res);
ll.addView(iv);
}
return ll;
}
And the code for the DialogAlert :
protected ResultDialog(final Context context, CharSequence title, LinearLayout ll) {
super(context);
ll.setPadding(10, 5, 10, 5);
this.setView(ll);
this.setTitle(title);
}

And as you can see, the result is not good. Do you have any idea why?
Et ma classe ImageAdapter :
public class ImageAdapter extends BaseAdapter implements ListAdapter {
private Context c;
private ArrayList alImages;