/PixImagePicker

Pix is a Whatsapp image picker replica. with this you can integrate a image picker just like whatsapp.

Primary LanguageJavaApache License 2.0Apache-2.0

Pix (WhatsApp Style Image Picker)

Pix is a Whatsapp image picker replica. with this you can integrate a image picker just like whatsapp.

Demo

Usage

          Pix.start(Context,                    //Activity or Fragment Instance
                    RequestCode,                //Request code for activity results
                    NumberOfImagesToSelect);    //Number of images to restict selection count

or just use

          Pix.start(Context,
                    RequestCode);

for fetching only a single picture.

Use onActivityResult method to get results

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
                if (resultCode == Activity.RESULT_OK && requestCode == RequestCode) {
                    ArrayList<String> returnValue = data.getStringArrayListExtra(Pix.IMAGE_RESULTS);
            }
        }

Customise

include these items in colors.xml with custom color codes

    <resources>
        <color name="colorPrimaryPix">#075e54</color>
        <color name="colorPrimaryLightPix">#80075e54</color>
    </resources>

Thanks to

Download

Download or grab via Gradle:

        compile 'com.fxn769:pix:1.0.3'

or Maven:

        <dependency>
          <groupId>com.fxn769</groupId>
          <artifactId>pix</artifactId>
          <version>1.0.3</version>
          <type>pom</type>
        </dependency>

or ivy:

        <dependency org='com.fxn769' name='pix' rev='1.0.3'>
          <artifact name='pix' ext='pom' ></artifact>
        </dependency>

Snapshots of the development version are available in [Sonatype's snapshots repository][snap].

License

Licensed under the Apache License, Version 2.0, click here for the full license.

Author & support

This project was created by Akshay Sharma.

If you appreciate my work, consider buying me a cup of ☕ to keep me recharged 🤘 by PayPal

I love using my work and I'm available for contract work. Freelancing helps to maintain and keep my open source projects up to date!