How to make your own Live wallpaper for Android

We all love Live wallpapers! They make our phones look cool and interactive. There are many live wallpapers out there. Some come in-built in our devices and we can download many more from Google Playstore. For those who don't know what a live wallpaper is, it kind of a wallpaper that has some animations, transition effects. Some Wallpapers are interactive too, i.e they respond to your touches.



So, wouldn't it be awesome if we could make our own Live wallpaper?? A professional looking one?? It is possible. KLWP or Kustom Live Wallpaper form Kustom Industries is an app that allows you to create beautiful, interactive and professional looking Live Wallpapers. All you need is CREATIVITY and some coding skills. By coding skills I don't mean Java, C, C++ or Android. KLWP uses its own kind of language that is used in formulas(If you want to make complex kind of wallpapers). But don't worry its super simple to master these and there's instruction with each bit of code.It'll take mostly 20-30 mins to get familiar with these codes. It's not compulsory to use codes or formulas. You can make great wallpapers even without codes or formulas. I'll not discuss more about these now.
There are some limitation of using KLWP. You need to use a good launcher that supports animations. In some devices even the stock Android Launcher will work. I would recommend Nova Launcher from my personal experience. Your device should be 4.4 kitkat or above to use this app.



MAKING YOUR FIRST LIVE WALLPAPER!

Lets make your own live wallpaper. Once you open KLWP you'll see an editor. This is where you'll design your own live wallpaper. You have some presets to help you get started, but we will create our own right now. Before we get started, I'll give you a brief info about some basic objects and variables. Lets get started with the editor UI. Look at the image below.

  1.  Save Button. Use this button to save your work.
  2.  Add Object Button. Add objects such as text or images.
  3. Screen Count. Choose the no. of screens that your LWP(Live wallpaper) has. This object also shows you the current screen number.
  4. Auto zoom. Enabling this zoom into the objects that are currently selected.
  5. Items Tab. This is where all you're items will be shown
  6. Background Tab. The Background tab sets the background of the wallpaper to either a solid color or an image.
  7. Layer. Choose the size of the currently choosen layer and its visibility.
  8. Position(not visible in picture, swipe right to left). Set the position of the currently selected object or item.
  9. Globals(not visible in picture). Set global variables. Globals are dynamic preferences that can be used to change settings on more than one item at once. (We'll talk about Globals in details later...)
  10. Animations (not visible until you select an item like text, shape or image). Press the (+) to add animations.(I'll tell about this later).
  11. Paint(not visible until you select an item like text, shape or image). Select the color and color fill mode.
  12. FX (not visible until you select an item like text, shape or image). Add a shadow effect or mask the current item into another item.
Objects or Items:-
Komponent- Add a prebuilt reusable component or create your own..
Text - Create any kind of text, be it simple normal text or any function. There are lots of functions available. This is where you'll mostly use formula.
Shape - Create a rectangle, a circle etc and fill them with colors, gradients and more.
Image- A simple object holding a static image.
Progress- Create progress bars with different styles and shapes. Progress bar currently supports, battery level, music playtime, time or create your own using formula.
Overlap Group- A container for other objects that supports transformations and allows item grouping and supports gravity.
Stack Group- A container for other objects that allows items to stacked horizontally and vertically.

Now that you are familiar with the basic objects lets start making our LWP. Press the menu bar or swipe from left to right and select load preset. Then press the (+) icon and then press New.
This will create a blank LWP. We will make a LWP that changes the background according to time, There will be a greeting text too. (Good morning etc). Lets get started,
  1. Download Pictures related to day and night. You can use these images too.

  2. Go to the background tab and select the type as Image.
  3. Long press the pic image tab so that a red tick appears on the square located to the right side of the tab.
  4. Then select the formula button(or the calculator). This opens a window full of formulas and functions.
  5. Now scroll down and find ai(type) or Astronomical info. When you scroll down you'll find a formula $ai(isday)$. This is will input the formula into the text editor. Now edit this formula
$if(ai(isday)=0,"/sdcard/your path/night.jpg","/sdcard/yourpath/day.jpg")$
Here I used the if-else statement and the as(isday) functions. When as(isday)=0 it means that currently its night. So set the path of the night image to the first path and day image next. Replace the bold letters with the original path of your pictures. Don't add any extra spaces while entering the path of the picture. You can also use links or urls to images.

6. Now, the formula will change the picture according to day and night timings.
7. You can add more feature like a Greetings Text. To do this go to the main layout and add a text object.
8. Select the text object. By default, it displays the time. To change this, select the text option and it opens the text editor. Clear off all the time formula and type in the following code...
$if(ai(isday)=0,"Good Night", "Good Morning")$
I used the same formula. I just changed the path to Good Morning and Good Night that's it! Choose your font and size in the same tab. Once done save your work. If this is the first time you've done this, KLWP will ask you to set it as your current wallpaper. 



That's it and you're done. This is a really basic wallpaper. This is not all KLWP can do. It can do many things. I'll be uploading other tutorials and you can get other tutorials in the official website of KUSTOM. Swipe left to right and tap on the Online Tutorials. 
                       
See Also