Posts

Design Cool List UI in Sketchware

Image
Welcome Guys I hope you are doing well 😊  In this topic I will show you how to design a better list UI  FOLLOW ME  Add linear layout  Add listview Create custom view  Link your listview with custom view create string "s" Create list map "map" Add items to your list map Codes used : On create add this code : listview1.setDivider(null); listview1.setDividerHeight(15); listview1.setVerticalScrollBarEnabled(false);  In listview1 : onBindCustomView add this code : textview1.setText(s.substring(0,1));    Random rnd = new Random();    int color = Color.argb(255, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256));            android.graphics.drawable.GradientDrawable gd = new android.graphics.drawable.GradientDrawable();            gd.setColor(color);            gd.setCornerRadius(600);    gd.setStroke(2, Color.WHITE);    textview1.setBackground(gd);    android.graphics.drawable.RippleDrawable ripdr = new android.graphics.drawable.RippleDrawable(new android.content.res...

TargetView Library With Sketchware

Image
Hello guys hope you are doing well In this article I'm going to show you how to implement TargetView Add TargetView Library  Link 🔗 :  Library link Add appcompat library  Code used : TapTargetView.showFor(this, TapTarget.forView(findViewById(R.id.target), "This is a target", "We have the best targets, believe me") .outerCircleAlpha(0.96f) .drawShadow(true) .cancelable(false) .tintTarget(true) .titleTextSize(20) .descriptionTextSize(10) .transparentTarget(false) .targetRadius(60) , new TapTargetView.Listener() { @Override public void onTargetClick(TapTargetView view) { super.onTargetClick(view); //Your code here   }  }); Run your project 😊

Jsoup : Extract Data and parse it in custom list

Image
Welcome Guys I hope you are doing well 😊 In this video I'm going to show you how to extract any data from almost any website and parse it in custom list Attention Scraping data is likely illegal and I'm not responsible for anything happens This video is just for educational purposes For this video I'm going to scrape a website that supports that hhh Just follow and see what we are going to extract Open your project and add this  Design your app by adding listview  Add custom view  Then link it to listview  Number n String url List string  List map  Add networkrequest component  OnBindCustomView : For this tutorial in using this url https://webscraper.io/test-sites/e-commerce/allinone This url is for testing purposes you use it for that without any problems  See this pic to know how to use the codes  I will provide only the code the other blocks add it by your self  class AsyncTaskEx extends AsyncTask<Void, Void, Void> {  ...

Gradient View in Sketchware

Image
In this topic I will show you how to use gradient class easily in sketchware In your project import this  android.graphics.drawable.GradientDrawable Then add this code : int[] colors = {Color.parseColor("#008000"),Color.parseColor("#ADFF2F")}; //create a new gradient color GradientDrawable gd = new GradientDrawable( GradientDrawable.Orientation.TOP_BOTTOM, colors); gd.setCornerRadius(0f); //apply the button background to newly created drawable gradient view.setBackground(gd); If you want to change the direction of gradient the choose one of this :         *//** draw the gradient from the top to the bottom *//*         TOP_BOTTOM,         *//** draw the gradient from the top-right to the bottom-left *//*         TR_BL,         *//** draw the gradient from the right to the left *//*         RIGHT_LEFT,         *//** draw the gradient fr...

Web Scraping With Jsoup in Sketchware

Image
In this article I'm going to introduce you to this library to be familiar with it so we will walk through a simple steps so we won't get struck in the future  jsoup is an open-source Java library designed to parse, extract, and manipulate data stored in HTML documents. What does it mean 🤔🤔 It means that you can pick almost any website and extract data from it and use it as much as you want with no issues Keep in mind that jsoup has problems with pages that use javascript to load data cause it is dynamically generated and jsoup can only handle the static data that provided in the html page Sorry for long talk but I wanted to make sure that you understand what we are going to do So before start you need : 👉 Sketchware Mod called Revolution in case you don't have it here is the  Link 🔗  http://www.mediafire.com/file/5l7y056i3ijzd7y/Sketchware_Revolution_5.0.6.apk/file 👉 Second you need library importer   Link  https://bit.ly/swrevo119 If you have both tha...

Gradient TextView In Sketchware

Image
Code used : android.text.TextPaint paint = textview1.getPaint(); float width = paint.measureText("Subscribe for more videos"); Shader textShader = new LinearGradient(0, 0, width, textview1.getTextSize(), new int[]{ Color.parseColor("#F97C3C"), Color.parseColor("#FDB54E"), Color.parseColor("#64B678"), Color.parseColor("#478AEA"), Color.parseColor("#8446CC"), }, null, Shader.TileMode.CLAMP); textview1.getPaint().setShader(textShader);

Fit Background to Status Bar in Sketchware

Image
Code Used : if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); }