Category:Android

  • Android neon accelerated optimization

    Time:2022-5-5

    Neon is a SIMD (single instruction multiple data) instruction set. Its efficiency is equivalent to assembly. It is used for the optimization of ARM CPU platform, and its performance is greatly improved in the fields of audio, video, graphics and image processing. The CPU of arm architecture has supported neon (optional) since armv7a, so as […]

  • Android smartrefreshlayout + coordinatorlayout + appbarlayout can refresh / pull down and fold

    Time:2022-5-5

    Integrate the effect of collapsingtoolbarlayout + smartrefreshlayout The address of GitHub is also provided:https://github.com/KennyChaos7/SmartRefreshLayout-CoordinatorLayout-AppBarLayout.git device-2021-06-08-104734.png device-2021-06-08-104753.png device-2021-06-08-104824.png device-2021-06-08-104941.png Of course, in accordance with international practice, the last renderings CoordinatorLayout AppBarLayout CollapsingToolbarLayout Toolbar The above four layouts are actually in addition toToolbarBesides, it may not be a common layout of the scene, so I will post […]

  • How to use singleton mode in Android studio

    Time:2022-5-5

    catalogue Singleton mode Use of simple interest mode Memory leak in Android This article briefly introduces how to use singleton mode and precautions in Android studio. Singleton mode Why use singleton mode? For some objects, we only need one, only one thread pool, cache, or only one printer, robot, and only one magnetic sensor on […]

  • Ggtree drawing high-end evolutionary tree

    Time:2022-5-5

    Phylogenetic tree is almost a necessary map for gene family articles. A good-looking tree map can really add a lot of color to the article. Ordinary users may only use Mega drawing, and those who are more advanced will use two online drawing platforms such as itol and evolview. However, this is not the focus […]

  • Wechat applet: movable view

    Time:2022-5-4

    Normally, after an element is created, it cannot be moved without JS or CSS animation. Wechat applet adds movable view component to realize it. Movable view component can complete the movement of elements, but the container must be placed inmovable-areaIn order to move, in fact, these two components can be used together to achieve the […]

  • Glide lifecycle management

    Time:2022-5-4

    Glide lifecycle management 1. Glide features Easy to use High configurability and high adaptability Support common image formats (jpg, PNG, GIF, webp) Support multiple data sources (network, local, resources, assets, etc.) Efficient caching strategy (memory and disk image caching are supported, and rgb_565 is adopted as the default bitmap format, with small memory) Lifecycle integration […]

  • Android 9.0 native looper mechanism (principle)

    Time:2022-5-4

    *Standing on the shoulders of giants can see further*   Android 9.0 native looper mechanism (principle) Android 9.0 native looper mechanism (application)   preface When analyzing the native layer code of Android framework, looper, an important auxiliary class in Android system, is used in many places to communicate between threads or design processing logic. This […]

  • How to access wechat payment in Android App

    Time:2022-5-4

    catalogue Wechat payment Payment within app Code scanning payment Unified order API Get code_ URL, and use a third-party QR code generation library such as zxing to generate QR code. Query order API This article briefly introduces the access to wechat payment in android app, including in app payment and code scanning payment. Share + […]

  • Test method of Android App power consumption

    Time:2022-5-4

    This is an article about application power consumption, focusing on Android power collection mechanism and the second generationBattery HistorianAnalysis tools. From the perspective of data collection, export, environment construction and interpretation of the report, this paper explains the whole process in detail. Different from the articles on concepts, the actual operation and analysis will be […]

  • Complete app jetpack MVVM learning

    Time:2022-5-3

    Source address Project address:zskingking/Jetpack-Mvvm Introduction: Android community app and music player realized by jetpack family bucket + kotlin. Don’t write obscure code, mark each line of comments as clearly as possible, strictly abide by the six basic principles, and make extensive use of design patterns. This project can quickly help you start kotlin and jetpack. […]

  • Difficulty analysis of constraintlayout

    Time:2022-5-3

    WRAP_CONTENT We know that this attribute in other views means the package content, which is its own size. The maximum size will not exceed the size of the screen. image.png The general meaning is that this attribute is added in version 1.1. If wrap is set before version 1.1_ Content, the constraint will not limit […]

  • Huawei analysis service – Analysis of paying users to improve payment and transformation

    Time:2022-5-3

    “AARRR”Model is one of the important theories of enterprise operation. As an important part of the model, La Xin has deeply affected the subsequent user transformation. In order to improve the quality of innovation, user activity and retention, we did everything possible, but the income is not satisfactory, and there is no way to improve […]