[Android] flexible layout -- FlexboxLayout
introduce
When it comes to layout, we all know ConstraintLayout, LinearLayout, RelativeLayout and so on. Today, let's introduce the FlexboxLayout released by Google I/O in 2016. It is said that this layout is called the advanced version of LinearLayout. Compared with LinearLayout,FlexboxLayout mainly has a "line feed" feature.
Flexb ...
Added by procoder on Sat, 11 Dec 2021 11:30:04 +0200
Implementation principle of Viewstub
preface
Recently, when the interviewer asked me how to use space occupying in ViewStub during the interview, I was confused. To tell the truth, I had seen very little about the internal code of some controls on the UI, so I couldn't answer at the moment. In fact, it's not very difficult, But we usually call it simply in the development process ...
Added by nicknax on Sat, 11 Dec 2021 02:48:11 +0200
Android Development: explanation of Jetpack Compose Button,IconButton and other buttons
preface
This article will explain the usage of Button, iconbutton, extendedfloatingactionbutton, floatingactionbutton, icontogglebutton, outlinebutton, RadioButton and textbutton in detail. Please read below if you are interested
1: Button usage
Let's take a look at the source code of the Button (the OutlinedButton has the same properties a ...
Added by zulx on Fri, 10 Dec 2021 10:53:52 +0200
Android Development: explanation of jetpack compose Button, iconbutton and other buttons
prefaceThis article will explain the usage of Button, iconbutton, extendedfloatingactionbutton, floatingactionbutton, icontogglebutton, outlinebutton, RadioButton and textbutton in detail. Please read below if you are interested1: Button usageLet's take a look at the source code of the Button (the OutlinedButton has the same properties as the ...
Added by Dodon on Fri, 10 Dec 2021 10:52:20 +0200
Android high imitation JD 2020 home page linkage effect!
Rendering of this part:New effect (another effect different from the effect of this article is included in this project):The first figure is realized through RecyclerView+Vlayout multi layout; The second actual effect picture is realized through CoordinatorLayout+RecyclerView;Layout of the first edition:At first, considering that TabLayout and ...
Added by Christian B. on Fri, 10 Dec 2021 06:14:34 +0200
android multithreading - AsyncTask
the first part analyzes some basic uses of AsyncTask and the differences between different android versions. Then in this article, we will comprehensively analyze the working principle of AsyncTask. Before we begin, let's take a look at a knowledge point of multithreading -- callable < V >, future < V > and FutureTask ...
Added by narch31 on Thu, 09 Dec 2021 20:36:08 +0200
Android Application Architecture MVVM mode
prefaceWith the continuous development and maturity of Android application development technology, developers pay more and more attention to the design of Android application architecture. At present, the application architecture of Android mainly includes MVC, MVP and MVVM modes. Let's talk about MVVM mode.MVP modeMVVM mode can be said to be t ...
Added by rslnerd on Thu, 09 Dec 2021 12:07:35 +0200
Custom View actual combat! Everyone looked and shouted 666!!
prefaceIn the current App design, the rotation has basically become the "standard configuration" of each application. With the rotation, it is natural to have a corresponding indicator to represent the current rotation progress. Most of the indicator styles on the market are based on the form of small dots. To achieve this basic effec ...
Added by OzRedBoy on Thu, 09 Dec 2021 06:19:11 +0200
Android realizes the animation effect of face recognition
Effect displayImplementation steps1. Draw a circle maskHere we use the mixed mode to realize the deduction of the circle part. Here we use PorterDuff.Mode.CLEAR/**
* Draw circle mask
* @param canvas
*/
private void drawCircleMask(Canvas canvas) {
canvas.save();
//Target map Dst
canvas.drawRect(new Rect ...
Added by bljepp69 on Thu, 09 Dec 2021 04:10:01 +0200
[fluent] wechat project practice [02] my interface construction
1. Write in front
stay Last article Flutter's wechat actual combat project has been opened in, so let's continue to write the wechat actual combat project today, the construction of my interface!
2. What are you going to do today
Last time, we built the basic framework of wechat. Today, we also built the switching of four pages. Today, we ...
Added by garethj on Thu, 09 Dec 2021 03:38:35 +0200