There is:
ImageView ivPct; Bitmap bitmap; Paint p; Canvas canvas; ivPct= (ImageView) findViewById(R.id.iv_pct); bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); canvas = new Canvas(bitmap); p = new Paint(Paint.ANTI_ALIAS_FLAG); Further in the cycle, the color of the bitmap will change, but it must be done so the color changes with a period of a second.
int[] clr = new int[] {Color.RED, Color.YELLOW, Color.GREEN, Color.BLUE, Color.MAGENTA}; for (int i = 0; i < clr.length; i++) { p.setColor(clr[i]); canvas.drawCircle(100, 100, 50, p); ivL.setImageBitmap(bitmap); ....... }
Thread.sleep(1000);probably also worksThread.sleep(1000);? Is the standard Java API available in full? - m. vokhmtry -- catch:try { Thread.sleep(1000); } catch (Exception x) {}try { Thread.sleep(1000); } catch (Exception x) {}. And it's easier for me to imagine where it is even easier :) - m. vokhmsleep()will not cause exceptions, so an emptycatchvalid here. With a normal java machine, at least. About Android, I would separately clarify this point. - m. vokhmHandlerorView.postDelayed()- woesss