Android development technology weekly Issue #61

Source: Internet
Author: User
Tags eventbus

Android development technology weekly Issue #61
Tutorial

  1. Android FrameWork implements high-performance animation effects based on libGDX (particle effects/fireworks effects)

    The first reason for work was to create a special effect for fireworks. The first solution was to play Gif images or draw frames by yourself. However, the disadvantage of this solution was that the animation effect was rigid and the playback elements could not be changed, in addition, resource occupation of space may also be a major risk in the future. Then we will consider the particle effect code for implementation. The particle effect is easier to find in some java-layer implementation cases or frameworks, but the effect is terrible for the particle effect with such a high computing density, the special effects on poor machines (CPU performance) are not as good as those on them.

  2. Android M DeepLinks AppLinks

    In Android M, Google has done many things to optimize performance and improve user experience, such as App permissions, Google Now on Tap, Doze power-saving system, AppLinks, and DeepLinks. Recently, I was touched by the optimization of AppLinks and DeepLinks to improve user experience. So I recorded my analysis and understanding of these two optimizations.

  3. Performance optimization mode

    Performance Optimization involves a wide range of areas. In general, performance optimization refers to reducing the response time and improving the system throughput. However, during traffic peaks, performance problems often result in a decline in service availability, therefore, performance optimization can also include improving service availability. In some cases, there are conflicts between reducing response time, increasing system throughput, and improving service availability. For example, increasing the cache can reduce the average response time, but the number of processing threads is limited because the cache is too large, thus reducing the system throughput. To improve service availability, repeated calls to abnormal requests are a common practice, but this increases the response time and reduces the system throughput.

  4. InstaMaterial: Correct RecyclerView Animation

    We live in an age where apps are not only usable but also smooth and nice-looking. Different from a few years ago, the only thing we had to do for the ListView adapter was to call yydatasetchanged (). The screen flashed and new data was displayed. Today, in the era of RenderThread, The MaterialDesign animation and the app of the transition effect should completely show what happened. You should see when its set is changed or when new elements appear (or are removed ).

  5. [Translation] Android Application Architecture

    The pace of the Android development ecosystem is very fast. Every week, there will be new tools, library updates, blog posts, and technical discussions. If you have been on vacation for a month, you may have released a new version of Support Library or Play Services when you come back. I have been working with Ribot Team for Android applications for more than three years. During this period, the Android application architecture and technology we have built are constantly evolving. This article will describe your experiences, errors, and reasons behind architecture changes.

  6. Android Memory Optimization

    Android memory optimization is an important part of our performance optimization work. It mainly involves two aspects: optimizing RAM, that is, reducing the runtime memory. The purpose here is to prevent program OOM exceptions and reduce the probability that the program will be killed by the LMK mechanism due to a large memory. On the other hand, unreasonable memory usage will greatly increase GC, resulting in program card change. Optimize the ROM to reduce the size of the ROM occupied by the program. This mainly aims to reduce the space occupied by the program and prevent the program from being unable to be installed due to insufficient ROM space.

  7. Practical Guide to Java multi-thread programming mode-Promise Mode

    The Promise mode is an asynchronous programming mode. This allows us to start executing a task and obtain a credential object for obtaining the execution result of the task, without waiting for the task to complete. When we need the execution result of this task, we can call the relevant methods of the Credential object to obtain it. This avoids unnecessary waiting and increases the concurrency of the system.

  8. 15 required Android developer options

    The Android developer option seems very simple. In fact, many people do not know enough about it. Google's painstaking efforts to design so many small switches for us all play a role. Today, it also took some time, after all over 30 switches, we sorted out 15 options that are helpful for daily Android development.

  9. EventBus source code (I)

    EventBus is a release/subscription event bus optimized for Android. The main function is to replace Intent, Handler, and BroadCast to transmit messages between Fragment, Activity, Service, and threads. the advantage is that it has low overhead and is easy to use. It can greatly reduce the coupling between them, making our code more concise and less coupled, and improving the quality of our code.

  10. EventBus source code (in)

    EventBus is a release/subscription event bus optimized for Android. The main function is to replace Intent, Handler, and BroadCast to transmit messages between Fragment, Activity, Service, and threads. the advantage is that it has low overhead and is easy to use. It can greatly reduce the coupling between them, making our code more concise and less coupled, and improving the quality of our code.

  11. EventBus source code Study (II)

    EventBus is a release/subscription event bus optimized for Android. The main function is to replace Intent, Handler, and BroadCast to transmit messages between Fragment, Activity, Service, and threads. the advantage is that it has low overhead and is easy to use. It can greatly reduce the coupling between them, making our code more concise and less coupled, and improving the quality of our code. Similar libraries include Otto. Today we will take you through the source code of EventBus.

  12. Analysis of H5 cache mechanism on mobile Web loading Performance Optimization

    H5, or HTML5, is a new generation of HTML standards and adds many new features. Offline storage (also known as the cache mechanism) is a very important feature. The offline storage introduced by H5 means that web applications can be cached and accessed when there is no Internet connection. The H5 application cache brings three advantages to the application: offline browsing users can use them when the application is offline, and the cached resources are loaded faster, reduce server load the browser will only download updated or changed resources from the server.

  13. How to Avoid Overdraw during Android Performance Optimization

    What is Overdraw? Overdraw refers to over-drawing. It refers to the fact that a pixel is drawn multiple times within a frame (16.67 ms). In theory, it is optimal to draw a pixel only once at a time, however, due to the overlapping layout, some pixels will be drawn multiple times, and each painting will correspond to a set of drawing commands on the CPU and Some GPU operations. When this operation takes more than 16.67ms, frame dropping occurs, that is, frame freezing. Therefore, repeated painting of overlapping invisible elements will incur additional overhead, and Overdraw should be minimized.

  14. Build an Android automatic packaging and publishing workflow based on Travis CI

    I recently paid for Travis CI. The billing method of Travis CI is very interesting. It is not charged by project or user, but by working process. For example, the initial version is $129/month, A total of 2 worker processes are provided. When there are not many projects, in addition to running unit tests, we can't help but make full use of them. Therefore, we took the time to build a set of Android Auto Release workflows Based on Travis CI.

  15. A Preliminary Study on Android Simulator 2.0

    I believe that every Android developer will agree that the biggest thing announced at the 2015 Android Developer Conference is Android Studio 2.0 and Android Simulator 2.0, android Simulator 2.0 claims that it is faster to run and deploy applications than the first version. A few hours ago, the android developer team just published the latest simulator. Let's show you the biggest update on this android simulator so far. You do not want to miss it.

    Open-source libraries & Projects
    1. Fresco-Source-Analysis

      Interpretation of Fresco source code in Chinese.

    2. Android-Ptr-Comparison

      The million brother said it was one of the strongest drop-down refresh class library Analysis in history.

    3. StarWars. Android

      A widget that displays the View crushing animation effect during a transfer.

    4. AnimTextView

      TextView with animation effect when displaying text.

    5. WaveLoadingView

      It helps you easily implement wave loading and provides highly customized (various postures). There is always a method that suits you.

    6. Knife

      A Rich Text Editor control.

    7. LondonEyeLayoutManager

      A LayoutManager that can achieve the rotation of the ferris wheel.

    8. Tracklytics

      An analysis tool aggregator that tracks events and crashes.

    9. FlycoLabelView

      A simple Android tag control.

    10. GiftRainView

      A View for gold coins and red packets.

    11. FocusChangeAnimation

      Select box to switch the animation, applicable to TV.

    12. Timeline-View

      Custom timeline control.

    13. Auro
      A music player.

      Tools
      1. Git-appraise

        Distributed code review system for Git repository.

      2. Android-fat-aar

        Design
        1. Why is Material Design not popular in Chinese apps?

          Two years ago, when Larry Page became Google's CEO, the First Command was to redesign all Google products. So Jon Wiley, chief designer of Google search, spent two months replacing Google products. Since then, Google has been focusing on Design, and the concept of Material Design has been coming soon.

        2. Deep Analysis: why are the colors of images output by Sketch and Photoshop different?

          A user raised a similar question before and found that the color of the image in photoshop is different from that in sketch. Next, let's take a look at a blog post published by the bohemiancoding team, which elaborates on the causes and solutions of this phenomenon. Do not reject this in-depth technical article. We need to know the principles to work better.

          Outside of Technology
          1. Nirvana Reborn: The Path to technology transfer management

            I have been familiar with computers and programming since I was in high school. I like programming very much. I always thought I would write code for a lifetime. I have been engaged in technology since I graduated. In the first year, I was engaged in Java-language server development, developed Netease mail and Weibo background, and then switched to iOS development. Because I like it, I put almost all my non-work hours into technology. Of course, it is not about bringing the work home, but about researching technology or writing technology.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.