Categories
sketchwere

Set stroke with round corner and background colour on imageview java

First define image as drawable android.graphics.drawable.GradientDrawable gd = new android.graphics.drawable.GradientDrawable(); for background color the defined drawable set gd.setColor(Color.parseColor(“color_code”)); for set stroke write code given below gd.setStroke((int)3, Color.parseColor(“color_code”)); for round corner add this Code gd.setCornerRadii(new float[]{(int)20,(int)20,(int)20,(int)20,(int)20,(int)20,(int)20,(int)20}); Now to defined gd set in the imageview image_id.setBackground(gd);

Categories
sketchwere

Prevent Screenshot code

getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE);

Categories
sketchwere

Get webview certificate android and sketchwere development

Categories
sketchwere

Set screen orientation landscape portrait both

Categories
sketchwere

Save any files on internal storage and rewrite any exist file of internal storage

Hiii developer’s this post help you to create .txt or any extension file and save it to internal storage and also edit exist file and saved in same file. Create text file and save on storage for example i create a .txt extension file. First create a string named file and set text on this […]

Categories
sketchwere

Code for Set gravity any view

Write this single line code for set gravity on any view

Categories
sketchwere

Fab button show/hide code sketchwere and java

To show the fab button write this code on specific click listener To hide the fab button write this code on specific click listener

Categories
sketchwere

EditText ime option in java programming

Write the code given below for EditText ime option.

Categories
sketchwere

Search text from listview in sketchwere

Hello developers! i searched and try different code for search text from list view but i failed. after hard work i found a block glence and its work properly. i want to share with you this block code. Here is screenshot of code arrangement Create two numbers variable. arranged block like image. after that add […]

Categories
sketchwere

Code for error on EditText in java programming and sketchwere

Write this single line code for create error event for EditText