Summary of Drawer Layout's Side Slip Layout
This film is a detailed analysis of Drawer Layout and a summary of the problems encountered in development.
DrawerLayout is a control supporting side-slip effect in SupportLibrary. In the development, it mainly cooperates with Navigation View + Toolbar to realize side-slip menu and see the effect concretely.
This effect template can be ...
Posted by tyrol_gangster on Sun, 02 Jun 2019 16:11:08 -0700
CardView Easily Implements Round Corner Card Effect
When you see the above effect, you will think of letting the artist cut a round corner picture with imageview, which is also a way to achieve, it is more convenient to achieve, and do not need to do any compatible adaptation; in fact, android system provides CardView control, which is also very convenient to achieve, but also can achieve som ...
Posted by webref.eu on Sun, 02 Jun 2019 14:36:46 -0700
c# Serial Communication and Processing Received Multiple Parameters
Recently, I tried to make a PC and simply recorded the key parts.
The System.IO.Ports class is mainly used in c# serial communication, but it is very convenient in fact.
The final results are as follows:
Don't forget the following
Fill in the configuration of serial port
We can get the list of ports on this machine by GetPortNames method. Note ...
Posted by brandone on Sat, 01 Jun 2019 10:56:23 -0700
Python context manager and else block
Ultimately, context managers may be almost as important as subroutine s themselves. At present, we only know the fur of the context manager... Basic has with statements, and many languages have them. However, with sentences play different roles in different languages and do simple things. Although it can avoid using dots to find attributes cons ...
Posted by Smee on Thu, 30 May 2019 09:53:23 -0700
Lua database/MySQL operation
0x00 Packaging Prerequisites
This time, it is only encapsulated in the function interface layer, which was originally intended to be encapsulated in business class calls. There are still many knowledge points to review, so it is abandoned.
Now let's talk about the guidelines for encapsulating interfaces:
1. Interface single responsibility ...
Posted by gotit on Mon, 27 May 2019 17:10:32 -0700
Section 55: Introduction to Android Zero Foundation: Use of Image Switcher and TextSwitcher
In the last issue, we learned about the use of ViewAnimator and ViewSwitcher components. Have you mastered them? In this installment, we will learn about the two sub-components of ViewSwitcher, ImageSwitcher and TextSwitcher.
ImageSwitcher
ImageSwitcher and ImageSwitcher inherit ViewSwitcher, so they have the same characteristics ...
Posted by zyrolasting on Mon, 27 May 2019 16:00:38 -0700
Built-in Functions and Anonymous Functions
python provides powerful built-in functions, so let's take a look at what these functions do.
Absolute value of abs().
print(abs(-1))
print(abs(0))
Operation result
1
0
abs
all() passes on an iteratable object, each worth bool value of which returns Ture for Ture, one for False, and the result for False.
print(all(i for i in range(10)))# ...
Posted by phpnoobie9 on Mon, 27 May 2019 11:39:55 -0700
Notes - Day1 - Python Foundation 1
I. directory
1. Introduction to Python
The founder of python, Guido van Rossum, is now a particularly frequent development language.
Main application areas:
Cloud Computing: The hottest language in cloud computing. Typical applications are OpenStack.
WEB Development: Many excellent WEB frameworks, many large websites are Python development, su ...
Posted by Hitman2oo2 on Sun, 26 May 2019 17:29:25 -0700
File Compression and Decompression (Huffman Coding)
In this paper, Huffman coding is used to compress and decompress files (text files). Firstly, the overall idea of the project is introduced: Huffman coding compression file is actually to count the frequency of each character in the file, then generate the corresponding encoding for each character, and then save each character in the compresse ...
Posted by Online Connect on Sun, 26 May 2019 16:32:31 -0700
Android ProgressBar (progress bar) and SeekBar (drag bar)
Introduction to this section:
This section brings you ProgressBar (progress bar) and SeekBar (drag bar) in Android basic UI control. There are many application scenarios of ProgressBar, such as when users log in, when the background is making requests and waiting for the server to return information, the progress bar will be used at this time; ...
Posted by mlnsharma on Fri, 24 May 2019 15:39:39 -0700