Simple implementation of background blur in Android alert dialog

Let's see how it works: Recently, there have been some explorations on Android. Since seeing that the Gauss blur on iOS is done so well, NEISS has initiated the idea of imitating it on Android. After a brief thought, we can use this idea to do it: As we all know, FrameLayout can be superimposed on existing views. Therefore ...

Posted on Fri, 13 Dec 2019 13:56:46 -0800 by mwkemo

Code and package optimization of Vue+Webpack

This paper focuses on the optimization means of Vue single page application: Asynchronous loading Add loading effect when face switching Click delay inline manifest Logic code optimization Volume dependent optimization cdn reference Vue code optimization Asynchronous loading The so-called asynchronous load component is actually comp ...

Posted on Thu, 12 Dec 2019 00:44:25 -0800 by webing

POJ-2653-Pick-up sticks

Title Link: http://poj.org/problem?id=2653 Main idea: give n line segments in order, place each line segment in the order of input, and find the number of the last bottom line segment (the number of the top line segment is less than or equal to 1000). Idea: the range of n is 1e5, and the range of m is 1e3. The algorithm of th ...

Posted on Mon, 09 Dec 2019 14:12:24 -0800 by hungryOrb

Leetcode brush questions 28-125. Verify palindrome string (C + +)

Title Source: link:[ https://leetcode-cn.com/problems/valid-palindrome/]. 125. Verify palindrome string 1. Problem description 2. My solution 3. Solutions of the great gods 4. My harvest 1. Problem description Given a string, verify whether it is a palindrome string, only consider alphabetic and numeric characters, and ig ...

Posted on Sun, 08 Dec 2019 09:03:11 -0800 by bingo333

Add loading effect when Vue router is lazy to load

Recently, I was doing a project of WeChat public number. When the page jumped, I found that the page would flash, the user experience was very bad, and if the page was slow, the style of the page would be chaotic. Therefore, baidu looked at the previous solutions, and I think the following links are still very good, the code is simple, and the ...

Posted on Sat, 07 Dec 2019 08:04:53 -0800 by ucffool

How do I copy to the clipboard using JavaScript?

What is the best way to copy text to the clipboard?(multi-browser) I tried: function copyToClipboard(text) { if (window.clipboardData) { // Internet Explorer window.clipboardData.setData("Text", text); } else { unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); const ...

Posted on Fri, 06 Dec 2019 18:34:17 -0800 by jasongr

react+taro multi terminal dialog box | wechat / taro UI pop-up effect

taroPop custom bullet layer component, Modal box, dialog box, wechat / ios/android dialog box It realizes the customization of multiple pop-up types (msg/toast/ios/android) / pop-up styles, supports multiple button event / button styles, auto close, mask layer, pop-up location and custom slot template As shown in the figure below: H5 + applet ...

Posted on Fri, 06 Dec 2019 07:59:56 -0800 by smokenwhispers

c/c + + multithreading waiting for one-time event exception handling

Multithreading for one time event exception handling Background: suppose A future is waiting for another thread to finish, but an exception (throw an exception A) occurs in the thread waiting for future. What should I do. Result: assuming the above scenario occurs, when calling the get method of future, you will get the exception A thrown by th ...

Posted on Thu, 05 Dec 2019 18:19:39 -0800 by Archangel915

What does AFNetworking look like

stay What does AFNetworking look like The main classes and their structures involved in AFN are briefly introduced in, and then a simple POST request is used to explore how to implement it internally. I. environment construction Server configuration In this case, I use Apache, which comes with iMac, and turn on PHP support for it. Write the ...

Posted on Thu, 05 Dec 2019 18:14:44 -0800 by zoidberg

Simple instance of iOS singleton mode

The single instance mode mainly realizes the unique instance, which survives in the whole program range. Generally, the single instance is often used to store user information, such as user password. The password is used once in the login interface, once in the password modification interface, and the single instance can ensure the unique insta ...

Posted on Tue, 03 Dec 2019 09:02:09 -0800 by traxy