public LessonListField(String title, String imageFile) { super(USE_ALL_WIDTH | FOCUSABLE); myCounter = counter++; this.title = title; image = Bitmap.getBitmapResource(imageFile); int newWidth = Display.getWidth() / 2; if (Variables.smallScreen()) { newWidth = Display.getWidth() * 4 / 10; } if (image.getWidth() > newWidth) { int newHeight = newWidth * image.getHeight() / image.getWidth(); image = ImageUtils.resizeBitmap(image, newWidth, newHeight); } normalArrow = Bitmap.getBitmapResource("next_inactive_btn.png"); focusArrow = Bitmap.getBitmapResource("next_active_btn.png"); lock = Bitmap.getBitmapResource("small_lock.png"); fontSetting.setPoint(Font.PLAIN, 7); }