This article was originally published in: https://juejin.cn/post/7079090729057779743
The following article is translated from <Effective Kotlin: Best practices> Chapter 3 - Item24 in- Consider variance for generic types
For more information on generics, see my other article: Understanding generics in Java/Kotlin
Entry 24: focus on vari ...
Posted by markl999 on Thu, 31 Mar 2022 04:35:39 +0300
1. Component rendering display
2. Sample parsing
3. Library parsing
4. Collection of articles on Hongmeng open source third party components
Video cache component based on Android platform( https://github.com/danikula/Android VideoCache ), the migration and reconstruction of hongmenghua has been realized, and the code has ...
Posted by louisA2A on Thu, 31 Mar 2022 03:17:01 +0300
Many Android developers often ask me, what should I learn to become a good Android Engineer? For this problem, their descriptions are more or less different, but generally speaking, we all need to learn a series of skills to become an excellent Android Engineer.
In my opinion, such confusion is normal. Android is a huge and dynamic ec ...
Posted by yanti on Wed, 30 Mar 2022 19:31:11 +0300
1. Basic concepts IO: Java operates data through streams. IO streams are used to handle data transmission between devices, upload files and download files. Java objects used to operate streams are all in io packages.
2. Classification of IO streams Figure: (main IO stream) 3. Byte stream (1). Byte stream base class 1).InputStream InputStream: ...
Posted by A3aan on Wed, 30 Mar 2022 03:12:47 +0300
Detailed description of Android navigation:
reference resources Webpage
1, Add a navigation map to the project
In the "Project" window, right-click the res directory, and then select new > Android resource file. The New Resource File dialog box appears.Enter a name in the File name field, such as nav_graph.Select Navigation ...
Posted by cheekychop on Wed, 30 Mar 2022 00:33:41 +0300
React Native is a cross platform mobile application development framework opened by Facebook in April 2015, supporting two platforms: iOS and Android. React Native focuses on improving the development efficiency of multi platform development - Learn once, write anywhere. Born on the shoulder of a giant, React Native has a lot of scener ...
Posted by doremi on Tue, 29 Mar 2022 23:15:55 +0300
This chapter will learn how to programmatically interact with Navigation components.
1, Create NavHostFragment
Instead of specifying NavHostFragment in the XML file, NavHostFragment can be created dynamically at runtime.
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.andr ...
Posted by robert.access on Mon, 28 Mar 2022 17:43:08 +0300
Project introduction: the front and back ends are separated. The front end is developed by vue. There are android and iOS native development. The front end development is responsible for the page. The project is a soft nail that pays attention to health. It involves fitness movements, and there are many problems in video playback. There are man ...
Posted by D1proball on Mon, 28 Mar 2022 03:19:01 +0300
Advantages of DataBinding:
The project is simple and readable. Some code related to UI controls can be completed in the layout file.The findViewById() method is no longer required.Layout files can contain simple business logic. UI controls can directly bind to fields in the data model and even respond to user interaction. DataBinding is insepa ...
Posted by ianitm on Mon, 28 Mar 2022 02:18:27 +0300
Use of SharedPreferences
Shared preferences storage features:
Shared preferences is a lightweight K-V data repository built into Android, which uses xml to store data. For example, we often use it to save some lightweight data such as user login information.Only Java basic data types are supported, and custom data types are not supportedIntra ...