In Android Studio for any Application to share any Layout Screenshot
via Intent , you need to write methods where you write the whole code ..
There you write the whole code for share , this take too long so for that Now you can write this in a single line .
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.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
....
implementation 'com.github.maityamit:Share_Layout_Android_Library:1.0.0'
}
ShareLayout.simpleLayoutShare( Context , View , String );
In which context you call this.
Which view layout you want to share , which may be linear/relative or any type of
Which String you want to share with Screensshot
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");
}
});
Simple Share Layout Screenshot with text add this version.