// Draw white bottom bar g.setThemeColor(THEME_SPLASH_PROGRESS_BACK); g.setStrokeStyle(Graphics.DOTTED); g.drawLine(0, height - progressHeight - 2, width, height - progressHeight - 2); //it is changed progressbar g.setThemeColor(THEME_SPLASH_PROGRESS_BACK); g.drawString(message, (width / 2) + (im_width / 2), height, Graphics.BOTTOM | Graphics.HCENTER); if (null != statusImg) { g.drawInCenter(statusImg, (width / 2) - (stringWidth / 2), height - (progressHeight / 2)); } // Draw current progress int progressPx = width * progress / 100; if (progressPx < 1) return; g.setClip(0, height - progressHeight - 1, progressPx, progressHeight + 1); //it is changed progressbar g.setThemeColor(THEME_SPLASH_PROGRESS_BACK); g.fillRect(0, height - progressHeight - 1, progressPx, progressHeight + 1); //it is changed progressbar g.setThemeColor(THEME_SPLASH_PROGRESS_TEXT); // Draw the progressbar message g.drawString(message, (width / 2) + (im_width / 2), height, Graphics.BOTTOM | Graphics.HCENTER); if (null != statusImg) { g.drawInCenter(statusImg, (width / 2) - (stringWidth / 2), height - (progressHeight / 2)); } }