Encapsulation of hyperlink implementation of Android color text (Application of kotlin extension function)
1, Foreword
Recently, we encountered such a problem when designing the interface. We can often see such an interface, which tells users the privacy terms and user agreement, and these color words directly point to the corresponding links
At that time, the original idea was to set up multiple textviews to realize it. However, there would ...
Posted by taha on Thu, 27 Jan 2022 13:00:48 +0100
LeakCanary source code analysis
Memory leak
Memory leak caused by single case
public class SingletonActivityContext {
private static SingletonActivityContext instance;
private Context context;
private SingletonActivityContext(Context context) {
this.context = context;
}
public static SingletonActivityContext getInstance(Context context) {
...
Posted by spiceydog on Thu, 27 Jan 2022 07:47:13 +0100
Use of Fragment with ViewPager
In the last article, we introduced the basic use of Fragment. In addition to the conventional static loading and dynamic loading methods, Fragment is often used with ViewPager. Today, let's take a look at how Fragment and ViewPager are used.
FragmentPagerAdapter and FragmentStatePagerAdapter
When using ViewPager, the PagerAdapter is indispens ...
Posted by bridawg on Thu, 27 Jan 2022 05:47:41 +0100
It's time to adapt perfect input support for all kinds of devices
With the progress of technology and the popularity of cross platform applications, your Android applications are no longer limited to running on straight board touch-screen devices. Richer interaction enables users to use your application with more complex input. So as a developer, it's time to consider providing strong input support for a vari ...
Posted by SoireeExtreme on Thu, 27 Jan 2022 04:46:55 +0100
Use Hot Chocolate and NET 6 to build GraphQL application -- realizing the basic function of Query
Python wechat ordering applet course video
https://edu.csdn.net/course/detail/36074
Python actual combat quantitative transaction financial management system
https://edu.csdn.net/course/detail/35475
Series navigation
Use Hot Chocolate and NET 6 to build GraphQL application article index
demand
In this article, we will take a simple examp ...
Posted by bigdaddykraven on Wed, 26 Jan 2022 23:56:04 +0100
Android inquiry service
Android inquiry service
1. What is the service
Service is a solution to realize the background running of programs in Android. It is suitable for performing tasks that do not need to interact with users and require long-term running The operation of the service does not depend on any user interface. If the program is switched to the backgroun ...
Posted by kessels1234 on Wed, 26 Jan 2022 11:57:24 +0100
Rubik's cube players' obsession adopts the third-order Rubik's cube disruption function implemented by Python, Java and Android
First, briefly describe the third-order Rubik's cube. The Rubik's cube can change its state by disrupting the formula,
The six letters (F,B,U,D,L,R) respectively indicate: 90 ° clockwise rotation on the front, 90 ° clockwise rotation on the back, 90 ° clockwise rotation on the top, 90 ° clockwise rotation on the bottom, 90 ° ...
Posted by ivki on Wed, 26 Jan 2022 06:32:12 +0100
[daily practice of Android spring moves] sword finger 4 questions + Android Foundation
overview
Sword finger offer: the arrangement of strings, numbers that appear more than half in the array, the minimum number of k, and the median in the data stream Android Foundation: Android message mechanism, Android event distribution mechanism
Sword finger offer
1.37 arrangement of strings
Enter a string and print out all the arran ...
Posted by bstruss on Wed, 26 Jan 2022 04:56:25 +0100
Android decompile and decompile
Ideally, take a Demo with login function as an example to introduce decompilation tools and processes, smali and package modification, re signature and back compilation, and other functions
Tool usage:
Dex2jar: transfer DEX file to jar file, download address: https://sourceforge.net/projects/dex2jar/files/JD GUI: used to conver ...
Posted by TheTechChik on Tue, 25 Jan 2022 23:45:36 +0100
Android development technology -- migrating from LiveData to Kotlin data stream
Recommended by Haowen: Author: Android_ developer
The history of LiveData dates back to 2017. At that time, the observer pattern effectively simplified development, but libraries such as RxJava were too complex for novices. To this end, the architecture component team created LiveData: an observable data storage class with autonomous life cy ...
Posted by embsupafly on Tue, 25 Jan 2022 20:43:21 +0100