java – How to display the drawn image in ImageView?

Question: I draw like this: Bitmap bitmap = Bitmap.createBitmap(w, w, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); canvas.drawARGB(1, 178, 229, 255); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setColor(Color.BLACK); p.setStyle(Paint.Style.STROKE); p.setStrokeWidth(1); canvas.drawCircle(400, 400, 100, p); There is a component: ImageView iv = (ImageView) findViewById(R.id.iv); How now to display the drawn on the screen …

java – How to display the drawn image in ImageView? Read More »

android – Do not open keyboard automatically when entering screen with EditText

Question: I have a screen with an EditText there, whenever I enter it, the keyboard opens. I wanted it to only open the keyboard when I clicked on it. I tried this but the keyboard is not opening at all: mItemDescriptionTextView.setFocusable(false); Answer: You need to add android:windowSoftInputMode="stateHidden" inside your AndroidManifest.xml …

android – Do not open keyboard automatically when entering screen with EditText Read More »

Scroll to Top