[FREE] Smart MiniTools Extension V2 :⚒️ with color picker ⚒️⚙️⚙️

⚒️ Smart MiniTools

icdfsdfd
Every developer should use this extension tool I recommend. It will make your app UI
better with adavnce android and color tools.
:smiling_face_with_three_hearts: Let’s see it’s blocks…


Method Blocks :

Wallpaper 👉

MethodBlock1
ResetSystemWallpaper - Remove currently set system home screen wallpaper, reverting to the systems built-in wallpaper.

MethodBlock2
ResetLockScreenWallpaper - Remove currently set system lock screen wallpaper, reverting to the systems built-in wallpaper.

MethodBlock3

MethodBlock4

MethodBlock5
SetWallpaperHome - Use WallpaperError event for error.
imagePath input type text

MethodBlock6
SetWallpaperLockScreen - Minimum api level should be 25. For error use WallpaperError event.
imagePath input type text

MethodBlock7
GetHomeScreenWallpaper - Retrieve the current system wallpaper, if no wallpaper is set, the system built-in static wallpaper is returned. For error use WallpaperError event.
imagePath input type text

MethodBlock8
GetLockScreenWallpaper - Retrieve the current lock screen wallpaper, if no wallpaper is set, the system built-in static wallpaper is returned. For error use WallpaperError event.
imagePath input type text

Display & Tools 👉

MethodBlock9

MethodBlock10

MethodBlock11

MethodBlock12
GetStatusBarHeight - Get status bar height.

MethodBlock13
GetNavigationBarHeight - Get navigation bar height.

MethodBlock14 :collision::collision::collision:
SetFullScreen - Set fully transparent status bar and navigation bar. Required api level should be greater than or equal to KITKAT.

MethodBlock15
DisplayRefreshRate - Get the refresh rate of display in frame per second.

MethodBlock16
OrientationOfDisplay - # Portrait → 1, # Landscape → 2, # Undefined → 0

MethodBlock17
IsBrightnessAutoMode - Get boolean for automatic brightness mode is active or not.

MethodBlock18
ChangeBrightnessMode - Change brightness mode like automatic to manual.

Color tools 👉

:collision::collision::backhand_index_pointing_right:

MethodBlock19
GetStatusDarkerColor - Returns the darker color of the given color for the status bar.
color input type number/color

MethodBlock20
IsColorDark - Returns true if it is a dark color.
color input type number/color


AnimateColor - Animate the background color of a view.
view input type component
startColor input type number
endColor input type number

MethodBlock22
AnimateStatusBarColor - Animate the NavigationBar Color.
endColor input type number

MethodBlock23
AnimateNavigationBarColor - Animate the StatusBar Color.
endColor input type number

MethodBlock24
CalculateColor1 - This is a simple color tool block.
color input type number
alpha input type number


CalculateColor2 - Color tool for transparent color.
alpha input type number
red input type number
green input type number
blue input type number

MethodBlock26

MethodBlock27
GetDominantColor1 - Returns the dominant color of the given image. Returns 0 if there is an error or problem.
imagePath input type text

MethodBlock28
GetDominantColor2 - Returns the almost second dominant color of the given image. Returns 0 if there is an error or problem.
imagePath input type text

MethodBlock29
GetMixedDominantColor -
imagePath input type text

Event Blocks :

Wallpaper

EventBlock30
WallpaperChanged - Event for success.
message output type text

EventBlock31
GotWallpaper - Retrieve the current system wallpaper; if no wallpaper is set, the system built-in static wallpaper is returned.
imagePath output type text

EventBlock32
WallpaperError - Event for any error occurred in wallpaper activity. Like get wallpaper and set wallpaper.
errorMessage output type text


Example of color tools

Video

Advanced Example

Credit :

Thanks @iamwsumit , @Shreyash and
This docs is generated from AIX Docs - Cttricks. Hit :heart: button if you liked this extension and feel free to comment below your reviews and suggestion.

Click here (v1) to download this extension.

Version 2

30 Likes

Great work! :+1:

2 Likes

Nothing to say, Just :exploding_head::exploding_head::exploding_head::exploding_head::exploding_head:

1 Like

This is called great work. Amazing… Keep going​:+1::+1:

1 Like

thanks
@AJOY_DAS
@Ishaan
@Avijit

1 Like

Keep it up BR0THER

1 Like

is it possible to get dominant colour of a image fetched from a url

I have not tried. But i will.

Not works, not also image from assets
image

It only works for storage files.

1 Like

I am adding new blocks for the dominant color. trying…

1 Like

Hi @Rahan_Sarang I haven’t found any solution yet. If you want instant solution than you should use this extension for image url :

2 Likes

Nice man :scream_cat:

1 Like

Hi @Rahan_Sarang
also use it

1 Like

Smart MiniTools

icdfsdfd
:light_bulb:Version :two:


New Blocks :

Color Picker 🤡

Color Picker

  // Used Code : https://github.com/christophesmet/colorpicker/blob/master/library/src/main/java/com/christophesmet/android/views/colorpicker/ColorPickerView.java
  private void getColor(ImageView imageView, float x, float y){
    Log.d("color picker", "touch x: " + x + " y: " + y);
    Matrix invertMatrix = new Matrix();
    imageView.getImageMatrix().invert(invertMatrix);

    float[] mappedPoints = new float[]{x, y};
    Log.d("color picker", "mapped touch x: " + mappedPoints[0] + " y: " + mappedPoints[1]);

    invertMatrix.mapPoints(mappedPoints);

    if (imageView.getDrawable() != null && imageView.getDrawable() instanceof BitmapDrawable &&
            mappedPoints[0] > 0 && mappedPoints[1] > 0 &&
            mappedPoints[0] < imageView.getDrawable().getIntrinsicWidth() && mappedPoints[1] < imageView.getDrawable().getIntrinsicHeight()) {

      int color= ((BitmapDrawable) imageView.getDrawable()).getBitmap().getPixel((int) mappedPoints[0], (int) mappedPoints[1]);
      ColorChanged(color, x, y);
    }else {
      ColorChanged(0, x, y);
    }

  }

event

Other Tools 🤔

Get K color

Used code for these two blocks

Get Hex String

Get Complientment color

New Property 😍

pro

blocks (1)

Changed Blocks :

component_method (1)

Dominant Color blocks :

Now supports image url, image path and asset by these blocks.

component_method (2)

component_method (3)

component_method (4)

Use of color picker 🤡

Video :

Download 👉

Download Color Picker Aia

in.sonraj.minitools.aix

10 Likes

How can I do this with these blocks please can you show me ?
And also can the color name be written below it like it’s real name not the hex code

Download Color Picker aia.

OMG how is this the first time I see this :heart_eyes: :heart_eyes: :heart_eyes:

1 Like

yeah but the keyboard is now overlapping on top of everything