Norway


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

Demo

-  - The Android Arsenal – Image Pickers -  - The Android Arsenal – Image Pickers

Usage

          Pix.start(Context,                    //Activity or Fragment Instance
                    RequestCode,                //Request  for activity results
                    NumberOfImagesToSelect);    //Number of  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 ) {
        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

-  - The Android Arsenal &#8211; Image Pickers or grab via Gradle:

        compile 'com.fxn769:pix:1.0.1'

or Maven:

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

or ivy:

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

Snapshots of the 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!



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here