Simple use of viewBinding in RecyclerView

Preface Let's start by saying that my compiler version is as4.0 beta2. gradle:4.0.0-beta02, corresponding to gradle-6.2.2-all.zip. As for the role of viewing, I directly quote the words on the android Developer website: With view binding, you can write code that interacts with views more easily. When ...

Posted by dabnet on Tue, 17 Mar 2020 02:09:22 -0700

Security problems of including cover in Android manifest.xml

0x00 about Android manifest.xml Android Manifest.xml is a required file in every Android program. It is located in the root directory of the whole project, and the Manifest file provides basic information about the application to Android System, which is required by the system to run any applicati ...

Posted by varasurf on Mon, 16 Mar 2020 06:39:38 -0700

Tiktok BoostMultiDex Optimization Practice: Android low version APP first start time reduced by 80%

We know that the Java running environment for Android devices with lower version (4.X and below, SDK < 21) is Dalvik virtual machine. Compared with the higher version, the biggest problem is that the first cold start takes a long time after installing or upgrading the update. This often takes tens of seconds or even minutes. Users have to fa ...

Posted by rsanc on Mon, 16 Mar 2020 01:40:57 -0700

How to dynamically add elements to listView in Android

Who can explain or suggest a tutorial for creating listView in Android? This is my request: I should be able to add new elements dynamically by pressing the button. It should be simple enough to understand (for example, there may not be any performance improvements or convertview) I know there are many questions about this topi ...

Posted by jackson4me90 on Sun, 15 Mar 2020 03:03:38 -0700

layout mode of Ozone Block Chunk file

Article directory Preface Original layout of zone datanode chunk file Ozone Datanode Chunk Layout: File > per > chunk and file > per > block The actual storage comparison between the old and new layout s of Chunk Quote Preface In zone, the file object data of zone is organized in th ...

Posted by giovo on Sat, 14 Mar 2020 22:58:45 -0700

Android TextView drawText BaseLine understanding

Android TextView drawText BaseLine understanding Solution: how to set the vertical center of drawn text in the box 1. getHeight/2 is set to drawText to draw coordinates, which cannot be centered Upper code XML: <com.denganzhi.cusomerwidget.View.MyView android:layout_width="100dp" ...

Posted by Masna on Sat, 14 Mar 2020 08:09:40 -0700

WebView should know and should know

Catalog 1, What is WebView? What can WebView do? 2, Play WebView Commonly used API Basic use 1. Add network permission 2. Instantiate WebView 3. Set up WebClient 4. Set up WebChromeClient 5. How to interact with JS Web pages jump to other applications through Scheme 1. What is scheme? 2. If the w ...

Posted by Robert Elsdon on Fri, 13 Mar 2020 23:27:21 -0700

Understanding of SurfaceFlinger (12) in Android GUI system

Link to the general outline of this series of articles: surface flinger series of articles of Android GUI system Summary & description of key points in this chapter: The mind map of this chapter is as above. This paper mainly introduces the concept of FrameBuffer, mainly focuses on the basic ...

Posted by russia5 on Fri, 13 Mar 2020 22:37:38 -0700

Surface flinger (01) display system framework of Android GUI system

Link to the general outline of this series of articles: surface flinger series of articles of Android GUI system Summary & description of key points in this chapter: The mind map of this chapter is as above. It mainly describes the basis of the display system, understands the relationship be ...

Posted by ChaosXero on Fri, 13 Mar 2020 22:22:55 -0700

Surface flinger (03) application end analysis of Android GUI system 2-apply for Buffer

Link to the general outline of this series of articles: surface flinger series of articles of Android GUI system Summary & description of key points in this chapter: The mind map of this chapter is as above. It mainly describes the process of acquiring Buffer, locking (the most critical) and ...

Posted by bogha on Fri, 13 Mar 2020 22:19:01 -0700