Skip to content

Share any layout screenshot including any string of any Android App to any app via Intent .

Notifications You must be signed in to change notification settings

maityamit/Share_Layout_Android_Library

Repository files navigation

Share Layout Android Library

🤔Problem :

In Android Studio for any Application to share any Layout Screenshot via Intent , you need to write methods where you write the whole code ..

1. Take Screenshot from the layout

2. Convert into Bitmap

3. Share Methods where you will share the image and string via Intent

There you write the whole code for share , this take too long so for that Now you can write this in a single line .

✅Solution :

Just add this dependency implementation 'com.github.maityamit:Share_Layout_Android_Library:1.0.0' in yout project and you can use the method directly by call this ShareLayout.simpleLayoutShare( Context , View , String ); and easily share any screenshot 📱 via Intent.

📱Sample


⚙️Gradle

Add this on build.gradle(project)

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
  

Add this on build.gradle(module)

dependencies {
             ....
	     implementation 'com.github.maityamit:Share_Layout_Android_Library:1.0.0'
	}

♨️Java

ShareLayout.simpleLayoutShare( Context , View , String );

Context :

In which context you call this.

View :

Which view layout you want to share , which may be linear/relative or any type of

String :

Which String you want to share with Screensshot


Example :

View view = findViewById(R.id.relativeLayout);
Button button = findViewById(R.id.button_share);
button.setOnClickListener(new View.OnClickListener() {
      @Override
         public void onClick(View v) {
              ShareLayout.simpleLayoutShare(MainActivity.this,view,"Hello I am Amit");
           }
   });

Created By 🤵

              


📝Change Log

1. 1.0.0

Simple Share Layout Screenshot with text add this version.

About

Share any layout screenshot including any string of any Android App to any app via Intent .

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages