MyWall

Additional

Language
Java
Version
1.0.7 (Nov 18, 2019)
Created
Nov 15, 2019
Updated
Nov 21, 2019 (Retired)
Owner
Md.Masud Parvez (pavelsust)
Contributor
Md.Masud Parvez (pavelsust)
1
Activity
Badge
Generate
Download
Source code

MyWall is a wallpaper library which can set scrollable and crop wallpaper. In wallpaper application developer have to fight with so many extra code which is almost same for all kind of wallpaper application. So i decided to develop a library for wallpaper application. This library has three options

Set Scroll-able Wallpaper
Set Lock Wallpaper
Set Crop Wallpaper

###Insall

Add this dependency in your build.gradle:

allprojects {
 repositories {
  maven { url 'https://jitpack.io' }
  }
 }
dependencies {
      implementation 'com.github.paveltech.MyWall:wallpaper:1.0.7'
}

Implementation

You don't need any permission for this library.It will automatically handel this. This library written by kotlin. Just pass a image link.

WallpaperApplyTask.prepare(this)
          .wallpaperLink("https://wallpaperplay.com/walls/full/0/2/e/105979.jpg")
          .to(WallpaperApplyTask.Apply.HOMESCREEN())
          .start()

Also you have three more category

   .to(WallpaperApplyTask.Apply.HOMESCREEN())   // scrollable wallpaper 
   or
   .to(WallpaperApplyTask.Apply.HOME_CROP_WALLPAPER())  // this is for crop wallpaper
   or
    .to(WallpaperApplyTask.Apply.HOMESCREEN_LOCKSCREEN())  // for wallpaper and lock screen both
  

Just change the Apply option for your requirnemn

. Also we have some callback option.
WallpaperApplyTask.OnMessageCallBack

With CallBack full code be will like

class MainActivity : AppCompatActivity() , WallpaperApplyTask.OnMessageCallBack{
 
 override fun onCreate(savedInstanceState: Bundle?) {
     super.onCreate(savedInstanceState)
    
    
    WallpaperApplyTask.prepare(this)
        .wallpaperLink("https://wallpaperplay.com/walls/full/0/2/e/105979.jpg")
        .showProgressMessage(this)
        .to(WallpaperApplyTask.Apply.HOMESCREEN_LOCKSCREEN())
        .start()

}

  override fun carryWallpaperMessage(message: String) {

    runOnUiThread{
        Toast.makeText(applicationContext , ""+message , Toast.LENGTH_SHORT ).show()
    }
}