Do the students who develop Android apps are obsessed with the brilliant effects of launcher? What, even Android launcher is not known. Okay, pick up Lennon's cell phone, swipe and swipe left and right on the unlocked home page to experience the experience, this is launcher.
Launcher is actually an app, but it's a system level. Although the various Android phone manufacturers to launcher the degree of customization is relatively high, but in order to avoid user confusion, launcher operation and functions are basically similar. Below is a brief introduction to several common features of the launcher desktop.
1. Split screen display app icon and name
2, the app icon can be dragged in the current screen, slightly better can be dragged across the screen
3, in the drag process exchange position, there is a series of beautiful displacement animation
4. After the drag is over, Lancher will remember the rearranged position.
5, the app icon can be deleted, after deletion, the back of the picture will be shifted forward in succession to the past
6, transverse sliding launcher for cutting screen, the background image will be linked together
summed up, introduced so many, are for today's dry goods to do foil. Today, full of dry goods, heavy weight, heavy pressure to my day is not free, just to squeeze out the time to organize the implementation of the Code. The following is a brief introduction to the advantages of dry goods compared to native launcher today.
1, sub-screen number can be unlimited expansion, can be a screen, can also be 10 screen, but also do not have to worry about oom, sliding is quite smooth
2, the icon of each item can be two pictures, a normal state display, a press state reality
3. Dynamically set the number of rows and columns per screen, the sample code uses 4 rows and 2 columns, and automatically calculates the width and height of the item
4, dynamically set the total number of container, according to the number of rows, automatically calculate page count
5, long Press to enter the editing mode, click to delete item, add item is quite simple and convenient.
Below look at the static effect, want to play with a classmate please go to GitHub download installation
Today's code is not affixed, the source of the comments written in detail, I believe that reading should not have any difficulties. For those who like to study the effects of Android and business students have this need, believe that today's dry goods will help pretty big. For the effect of the beautiful, I have a few pictures of the last club, I hope we do not commercial, only for the purpose of learning and communication.
Code Address: Https://github.com/JackCho/AndroidLauncher
If you find it helpful, you are welcome to subscribe to my public account-Android dry Sharing (Id:android_share). Below is the QR code, to provide you with timely high-quality Android dry.