Canvas implements Reveal to expose special effects

Preface The official Android description of Canvas is that the Canvas class holds all Draw-related methods. To get to Draw, you need four elements: 1 Bitmap for carrying pixel information, 2 Canvas for managing Draw related methods, 3 drawing primitives (e.g., Rect, Path, text, Bitmap), and 4 a brush (for describing the color and style of an ...

Added by sunnysideup on Sun, 14 Jul 2019 01:08:09 +0300

Android uses socket.io for instant messaging

brief introduction WebSocket is a new communication protocol of HTML5. It realizes two-way communication between browser and server. Socket.IO is an open source framework, which is completely implemented by JavaScript, based on Node.js and supports WebSocket protocols for real-time communication and cross-platform. This article will be based ...

Added by ryza_ on Sun, 14 Jul 2019 00:19:40 +0300

Notes on the Use of input Tags in Android

Notes on the Use of input Tags in Android Recently encountered a demand, html page has a <input type="file"/> tag to call the client's photo taking and photo selection function, in iOS can be normally set up to take photos, select photos. But there's no response on Android, and that's what I expected. Of course, I'll find ...

Added by GoSharks on Sat, 13 Jul 2019 22:47:39 +0300

Custom Control Details (4): Paint Brush Path Effect

Paint, the "pen" used to draw graphics We know some basic uses of Paint before: paint.setAntiAlias(true);//anti-aliasing paint.setColor(Color.RED); //setpc paint.setStyle(Style.FILL);//Setting Fill Style paint.setStrokeWidth(10);//Set Brush Width, Unit px paint.setShadowLayer(10, 15, 15, Color.GREEN);//Setting Shadows However, ...

Added by mwkdesign on Sat, 13 Jul 2019 03:52:39 +0300

Android Develops Learning WeChat Public Number Interface

Continue with the card design from the previous blog, and we'll continue from WeChat To find some clues, let's start by looking at an interface that is the default public number in WeChat, mainly to publish the latest developments on Tencent News. As we can see, it uses a card layout similar to the one we used in the previous article.So, let' ...

Added by delfa on Fri, 12 Jul 2019 20:43:31 +0300

WeChat mars Open Source Analysis 1-Upper Saples Analysis

WeChat has already started mars, but there are few related articles on the market, even if there are many such as using xlog, so this time I hope to be able to analyze from stn, which is directly used for the bottom communication of im.To be more comprehensive, let's start with samples.First of all, WeChat explicitly replaced JSON and xml with ...

Added by nads1982 on Fri, 12 Jul 2019 19:12:55 +0300

MVP mode of Android

MVP mode Android MVP Pattern Android MVP mode1 It's nothing new, and I've used this design pattern extensively in my own projects. When the project is more and more large and complex, and more and more R&D personnel are involved, the advantages of MVP model are fully demonstrated. Guide: MVP mode is a variant of MVC mode on An ...

Added by php_blob on Fri, 12 Jul 2019 02:37:32 +0300

Account login case (for all kinds of username password login)

First, show the results of the project operation: The initial login interface: (1) Choose to remember the password: Click login to jump to Activity 02 page: (2) When logged in again: Cancel remembering passwords: Click login and jump to Activity 02 page. When you open the project again, it will return to the state of empty initial ac ...

Added by madrazel on Fri, 12 Jul 2019 00:52:48 +0300

Android homemade SwitchBar (with resources)

After several days of tossing and turning, this App has basically been completed. Part of it is a custom SwitchBar. I have seen many other people's solutions online. They are all based on the system's own SwitchBar. They just modify some background image resources or something. The effect is not very ideal. The following is my solution. First p ...

Added by jtjohnson260 on Thu, 11 Jul 2019 23:56:11 +0300

AOP in Android: Problems from Buried Points

AoP Before reading, let's take a look at some questions about burial sites and see if this article is useful for you. The entry and exit of each page need buried statistics. Many button clicks require statistical reporting. The performance data of some functions need statistics. Well, if you encounter these problems, then tell you that AOP ...

Added by Gorillas on Thu, 11 Jul 2019 22:30:56 +0300