Android Development - What is Data Binding for Jetpack, Quick Start, Simple Use, Popular Explanation

Expect 10 minutes for full text reading This is probably the clearest explanation you've ever seen theme_ Write before: In daily development, we usually use the method of findViewById to modify the UI. Now we have a TextView on our page. If there's something you can modify the text, textColor and o ...

Posted on Fri, 24 Jan 2020 20:22:52 -0500 by catlover

Android stopwatch Demo introduction

1. Android stopwatch Demo The code is mainly intercepted from the stopwatch module of system clock. Main principle: the post run able of View event updates the time and UI, which is different from our common Thread + delay, Handle + delay and TimeTask timing. At least I think it's amazing for the first time 2. Download G ...

Posted on Fri, 24 Jan 2020 10:57:58 -0500 by 121212

Simple encapsulation of Dialog and simple use of four Animation types of Animation animation

1. Simple encapsulation of Dialog Class Dialog: public class NotifyDialog { private AlertDialog dialog; private String positiveButton; private String negativeButton; private String title; private String msg = ""; private boolean enable = true; public void show(Context context, String msg) { ...

Posted on Thu, 23 Jan 2020 10:48:27 -0500 by jason102178

Application.ActivityLifecycle Callbacks Best Practices for Listening for App Entering Background and Front States

Recently, in the development of an Android-side App product, the author wanted to listen to the current status of App: in the foreground or background? Product Requirements: When the user clicks on the currently playing video to enter the background, the video pauses and enters the foreground again, ...

Posted on Wed, 22 Jan 2020 20:02:56 -0500 by john9292

(2001) the viscosity of p2p0

In our daily work, when we notice that the hot spot is closed, p2p0 will get up on its own, which is that we have not operated P2P related applications, why?   1.p2p0 self starting process // Check & re-enable P2P if needed. // P2P interface will be created if all of the below ...

Posted on Wed, 22 Jan 2020 08:02:00 -0500 by Cliftron

bug analysis of Google camera view open source framework

1, Problem background Some time ago, when troubleshooting the problem that an APP could not take photos, we found the following exception stack in the APP log: 12-25 11:40:41.562 10170 27566 27566 W System.err: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object jav ...

Posted on Wed, 22 Jan 2020 04:01:57 -0500 by pollysal

Performance optimization 08 "power optimization: monitoring power status

Android performance optimization summary 1 monitor power status demand For example, 360 mobile assistant will automatically clean up mobile garbage, automatically backup uploaded pictures, contacts and so on when it is charged. principle Manage the power by monitoring the power status. Get the cu ...

Posted on Tue, 21 Jan 2020 10:56:35 -0500 by fiddy

[Android] immersion mode: adapts to statusBar and navigationBar

Catalog   setSystemUiVisibility method Introduction to common parameters: combining the | bit operator XML Style Theme layout setting status bar and navigation bar properties Set status bar color After setting the font color of status bar Android 6.0 fitsSystemWindows and clipToPadding propert ...

Posted on Tue, 21 Jan 2020 07:33:39 -0500 by BigX

Android uses AspectJ to implement AOP -- hands on practice

Preface AOP concept understanding Deep understanding of Android AOP If there is no concept of AOP, it is recommended to read this article AOP Signature format description Portal   1. aspect configuration When I first got in touch with aspectj, I looked up a lot of materials on the Inter ...

Posted on Tue, 21 Jan 2020 04:24:47 -0500 by locell

Use application context everywhere?

In Android applications, what are the problems with the following methods: public class MyApp extends android.app.Application { private static MyApp instance; public MyApp() { instance = this; } public static Context getContext() { return instance; } } And pass it to any place that needs context (su ...

Posted on Tue, 21 Jan 2020 04:01:45 -0500 by Otiose Dodge