FrameLayout for Android ViewGroup
brief introduction
Frame layout or layer layout, from the upper left corner of the screen in accordance with the hierarchical layout, the control behind the cover of the control in front, the core is the overlay of views. Similar to layers, this idea of overlapping views can be seen everywhere in development.
Important attri ...
Posted by kester on Wed, 30 Jan 2019 08:15:15 -0800
Android sends mobile photo files to Windows PC via Bluetooth: Java implementation
This paper improves the code on the basis of "Android sends data to Windows PC through Bluetooth: Java implementation" (link address: https://blog.csdn.net/zhangphil/article/details/83146705). Or does it use Java implementation to send a picture on Android mobile phone to Windows PC through Bluetooth connection and ...
Posted by Donovan on Tue, 29 Jan 2019 20:03:14 -0800
Wechat applet onLaunch onLoad onShow asynchronous
The onLaunch in App is triggered when the widget is initialized, and onLoad or onShow in Page is executed later, but the onLoad or onShow event in Page is executed when the user logs in onLaunch and the onLoad or onShow event in Page is executed while waiting for the return value.
Original code segment
app.js code slice.
globa ...
Posted by Nathaniel on Tue, 29 Jan 2019 14:33:15 -0800
2. Sprd Settings - Battery - Power Saving White List Settings - appPowerSaveConfig.xml
1. Source Setting Path
vendor\sprd\platform\frameworks\native\data\etc\appPowerSaveConfig.xml
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<app_powersave_config>
<package name="com.pp.assistant" optimize="1" alarm="0" wakelock="0" network="0" autolaunch="1" secondarylaunch="1" lockscreencleanup="1" ...
Posted by heimskr on Tue, 29 Jan 2019 13:27:14 -0800
Solving the problem of horizontal Recycler View sliding in vertical Recycler View nesting
The following code mainly solves two problems:
Solution to ViewPager Nested Vertical Recycler View Nested Horizontal Recycler View Sliding Horizontally to the End without ViewPager Sliding Horizontally
Solution: Inherit Recycler View, rewrite dispatch TouchEvent, and determine whether to call getParent (). Request Disallow I ...
Posted by ramrod737 on Tue, 29 Jan 2019 10:30:16 -0800
Wifi Module - Source Code Analysis to Get IP Address (Android P)
Preface
In the previous article, we analyzed the process of connecting AP. When the wifi connection is completed at the bottom level, wifi Monitor will be notified of the event. wifi Monitor will send a message NETWORK_CONNECTION_EVENT when it hears the event.
Two Code Specific Flow
...
Posted by davo666 on Tue, 29 Jan 2019 08:36:14 -0800
Andriod applet-simply making a wheel to control the movement of tasks in the game
Andriod applet - Simply making the wheel that controls the movement of characters in the game
Explain
Customizing your own view inherits from the View class
Override onDraw() method
When we see this control, it looks like that, as shown in the figure.
Perfecting onDraw() Method
Rewrite the OnTouch() method
Update onDraw() ...
Posted by Zomie on Tue, 29 Jan 2019 02:54:15 -0800
ios GCD
1. Benefits of GCD:
GCD can be used for multi-core parallel operations
Will automatically take advantage of more CPU kernels
GCD automatically manages the lifecycle of threads (creating threads, scheduling tasks, destroying threads)
Programmers need only tell the GCD what tasks they want to perform, and they don't need any thre ...
Posted by porko2004 on Tue, 29 Jan 2019 01:57:15 -0800
Android JNI Development Series (XIII) JNI exception handling
JNI exception handling
Difference between JNI exception and JAVA exception handling
JAVA has exception handling mechanism, but JNI does not.
If exceptions are not captured in JAVA, subsequent code will not execute, and JNI will execute
JAVA compile-time exceptions are those that declare an exception in the method display. The compiler requires ...
Posted by Micah D on Tue, 29 Jan 2019 00:21:15 -0800
Java Timer Source Parsing (Timer Source Parsing)
Timer overview
Timer, as its name implies, is a timer for tasks that need to be delayed. The delay time may be 1s or 5 days.
The general usage is as follows:
TimerTask task = new TimerTask() {
@Override
public void run() {
Log.d("test", "timer task test");
}
} ...
Posted by slightlyeskew on Mon, 28 Jan 2019 22:21:14 -0800