Posts

TextView Xml Customisation

Image
Assalamu Alaykom my brothers in this video I'm going to show you how to customise TextView only with xml  Requirements  Brain 😂 Sketchware Pro  Codes Used Link  android:autoLink="all" android:linksClickable="true" android:textColorLink="#8DE67F" Images android:drawableLeft="@drawable/img" android:drawableRight="@drawable/img" Shadow android:shadowColor="#00ccff" android:shadowRadius="2" android:shadowDx="1" android:shadowDy="1" Format android:textAllCaps="true" android:textIsSelectable="true" Tutorial  https://youtu.be/IkbGMM17SHM

SketchMate

Image
SketchMate V3 Main features : Download mods,tools,custom blocks, custom components , asd codes, fonts, projects, libraries and backup / clone projects all in one app What's New in version 3.0 -Added custom components section -Added notifications section -updated font system (now there is only 500 fonts and it should be more than enough) -removed unused codes -downgraded sdk to android 9 (sdk 28) due to some compatibility issues. -redisgn the app from the ground up -more speed and flexibility -refresh design This version will be a long term so it will not be updated for a long time unless something happens. Upcoming Features : -Icons Section -Upload Projects to SketchMate Store - chat Room (maybe) Download link : http://bit.ly/SketchMateV3

Read Json file from asset in Sketchware Pro

Image
Hello guys 👋 In this article I will explain how to read file from json and parse it in custom listview First of all you need sketchware Pro If you don't have you find it in my app SBD tool version 2.0 After that you can follow the tutorial : Add listview Create customview  Link your listview with custom view you make Then add your file in asset folder  Then in logic arrea click onCreate Add two variables json and data Add listmap map Then add this code try {   java.io.InputStream is = this.getAssets().open("data.json");            int size = is.available();            byte[] buffer = new byte[size];            is.read(buffer);            is.close();            json = new String(buffer, "UTF-8");  //here add your listview data bind } catch(Exception e) {   } Then in onBindCustomView  This is almost everything you need  If you didn't understand then watch video tutorial

Receiving Simple Data from Other Apps Using Sketchware

Image
Add this code in onCreate : // Get intent, action and MIME type     Intent intent = getIntent();     String action = intent.getAction();     String type = intent.getType(); if (Intent.ACTION_SEND.equals(action) && type != null) {  if ("text/plain".equals(type)) {   shared = intent.getStringExtra(Intent.EXTRA_TEXT);   YourWidget.setText(shared);  } } Inject this code in manifest.xml : <intent-filter>  <action android:name="android.intent.action.MAIN" />  <category android:name="android.intent.category.LAUNCHER" />   </intent-filter>    <intent-filter>     <action android:name="android.intent.action.SEND" />  <category android:name="android.intent.category.DEFAULT" />  <data android:mimeType="text/plain" />   </intent-filter> Video tutorial  

Add CustomView to ToolBar [make search bar]

Image
Hi guys in this article I will show you how to add CustomView to your ToolBar in Sketchware  What you need is: Enabling appcompat library  Create a new CustomView  Design your CustomView for me I added edittext1 & button1 Add this code getSupportActionBar().setDisplayShowTitleEnabled( false ); getSupportActionBar().setDisplayHomeAsUpEnabled( false ); View logo = getLayoutInflater().inflate( R .layout.dvv, null ); logo.setLayoutParams( new LinearLayout .LayoutParams(android.widget. LinearLayout .LayoutParams.MATCH_PARENT, android.widget. LinearLayout .LayoutParams.MATCH_PARENT)); _toolbar.addView(logo); final Button button1 = ( Button )logo.findViewById( R .id.button1); final EditText edittext1 = ( EditText )logo.findViewById( R .id.edittext1); button1.setOnClickListener( new View .OnClickListener() { public void onClick ( View v) { SketchwareUtil.showMessage(getApplicationContext(), edittext1.getText().toStri...

Full Screen Custom Dialog on Sketchware

Image
Code Used : final Dialog dialog1 = new Dialog(this,LinearLayout.LayoutParams.MATCH_PARENT); dialog1.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog1.setContentView(R.layout.custom_dialog); final Button button1 = (Button)dialog1.findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { dialog1.dismiss(); } }); dialog1.show();

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...