A cool navigation page was found on a website a few days ago. The interface was beautiful and atmospheric, and the windows8 tile style was adopted. The website icons were flattened.Later found that this navigation page is open source, so I downloaded a copy, and made a slight modification and optimization on my host, named "hundred yuan navigation."After that I was proud to set "Hundred Dollar Navigation" as the homepage of all my browsers.Because I can confidently tell you that the secondary loading speed of this navigation page is absolutely faster than any navigation site (unfriendly), including mainstream Baidu search, 360 navigation.Not much to say, hundred yuan navigation website: http://wangbaiyuan.cn/daohang, welcome everyone to set it as your browser home page and put forward valuable suggestions. 0.3s fast loading experience Hundred yuan navigation speed for the first time in my 15M broadband, 360 speed browser Google kernel test speed is 851ms, secondary loading speed 260ms, and supports the second time no networking can access.The reason why the loading can be completed in less than 0.3 seconds is because all the resources in the webpage, including CSS, js, and the webpage's own html are cached locally.A second visit is equivalent to opening
I haven't written a technical post for a long time. This time, I have made a video of personal production in the blog for the time being. I use the code provided by Youku: It's an embed video tag, but the video length and width provided by Youku is helpless. The appearance of 600*400 is OK on the computer. The width of the mobile phone is too large to directly detonate the mobile phone screen. The user experience is very bad. The following code is implemented in different devices to automatically adapt to the width.The implementation principle is very simple. It is to use js (jquery) to dynamically set the long width of the video. Add the following code to the theme's functions.php file, and replace all #main-wrap-left in the code with the class name or ID of the article's div.
Android mobile butler software usually pops up such pop-up boxes when managing the application rights of mobile phones. Such a button appears on many occasions, the system will give a certain time such as 30s prompt the user to select the operation "prohibited" or "allowed", and set the countdown, and after the countdown to zero the system will select the default behavior for the user to perform.This design is very intelligent and automated when no one is using the phone.Here are the effects of using a handler and a Runnable to implement such a button: Android implement countdown button effect In an extremely reprinted article entitled "Several Ways for Android to Use Threads to Update UI", we mentioned the use of Runnable and Handler.PostDelayed (Runnable, Time) to update the interface in Android.The following is a button that implements countdown effects using Runnable and Handler.PostDelayed(Runnable,Time). Assume that the action of clicking the countdown button is the running function function(), and the button variable name is forbiddenBtn. The following is the implemented code: principle The above code implementation principle is to use the timeHander.postDelayed(context, int) function to periodically call a Runnable, here is a time delay 1000ms execute the timerRunnable.The code that
Bitmap and vector illustration Not all things in the world are suitable to be viewed with prudence. Some things can only be viewed from a distance and cannot be seen closely.A picture, zoomed in and zoomed in again, whether it is a giant photo taken by a SLR, or a digital photo that is several tens of megabytes, is like a large number of mosaics after amplification, revealing the nature of the image—the dots (ie, the pixels).The colorful photos we see are actually made up of a group of dots. As long as the picture is stored describing the color of each pixel, the pixels will be brought together and taken away. It is a beautiful picture. . As we can see in the above picture, we will think of the universally accepted theorem in mathematics textbooks: Surfaces consist of dots.There seems to be nothing wrong with this, but today I said that it was made up of lines, and you might think I was just playing a word game.In fact, I would like to say that these two expressions actually represent two kinds of computer picture format ideas - bitmap and vector.If you say that "face is made up
English original reference: https://github.com/liltof/font-awsome-for-android In a previous article, I introduced to you in the WEB front end using FontAwesome fonts. Font-Awesome is an icon collection font designed for Bootstrap, which contains more than 300 commonly used icons.Using Font-Awesome also has the following advantages: 1. Reduced drawing of icons 2. Can set the color and size of the icon 3. Reduce the size of the icon and reduce the size of the apk. Only one icon font file is required. There are no icon files of various sizes, such as HDPI, XHDPI, and other icon sizes. Android development using FontAwesome icon font Go to the Font-Awesome homepage and download the Font-Awesome font (fontawesome-webfont.ttf) file and place it under the project's assets directory. Find the string corresponding to the icon you want to use (font-awsome-for-android contains an icon and The corresponding file of the string, the latest correspondence is found in the font-awesome.css file in the css directory of the downloaded Font-Awesome font), the desired icon text is set in the TextView, and then the TextView font is set to Font-Awesome font defined. Xml layout file code Java code In addition, if you need to use the Font-Awesome icon in
After coming out of android4.4, the immersive status bar fired inexplicably, and recently, the Android phone of the extremely guest had inadvertently updated a few common software, such as everyday sounds, wps office, and found that these softwares have not changed substantially. However, they have gradually achieved immersive status bar effects.When the very guests first saw the term, they thought it was a very big technology and they didn't know whether or not you thought it.However, when we really know what the so-called and legendary immersive status bar is after, it is really discovered that it is not as famous as it is to meet. Whether or not immersive is tall, but it is very hot, it also becomes the highlight of each brush pack speculation in Brush Forum. .Extreme guests here are still introducing how to implement immersive status bar effects for mobile apps with Android 4.4 and above in Android development. Android's code to implement an immersive status bar is fairly simple.Add the following code in the activity code: Android development to achieve immersive status bar code: Code analysis: Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT This sentence is to obtain the current mobile phone SDK version number is greater than