Skip to content

RealDev05/ColorPickerDialogStandAlone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

ColorPickerDialogStandAlone

This Color Picker is also available as a library/module, for that refer ColorPickerDialog

  • This standalone class is written in java
  • This class is an extension of Alert Dialog Builder
  • Most components are declared public so that they can be accessed from anywhere, thereby increasing versatility.
  • Even though, messing with some variables and values can result in unecpected results
  • This class was made for android SDK 21 and above
  • Can provide the color in integer and hex string form (eg : 0,1 and #FFFFFFFF, #FF000000)
  • Hex string returned is in #AARRGGBB form

Setup

  • Copy the java file, that is, ColorPickerDialogBuilder.java to your project
  • The class is declared with package name com.realdev.betrage.ColorPickerDialog , so change it to match yours
    • That is, if your package name ( can be found at top of your mainactivity ) com.example.test then change the top line of ColorPickerDialogBuilder.java from
    • package com.realdev.betrage.ColorPickerDialog;

    • to
    • package com.example.test.ColorPickerDialog;

  • You are all set
  • Contact me if there is any doubts/problems

Usage

ColorPickerDialogBuilder colorPicker = new ColorPickerDialogBuilder(this);
colorPicker.show(new ColorPickerDialogBuilder.ColorPickedListener() {

    @Override
    public void OnColorPicked(int color, String hex) {
            
            
    }
    
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages