Share Layout Android Library
🤔
Problem :
Layout Screenshot
via Intent , you need to write methods where you write the whole code ..
In Android Studio for any Application to share any 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 :
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.
Just add this dependency
📱
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.