In Android development, you need to transfer the data in the Server and its team threads to the text box. It's not very convenient to use the broadcast or handler. Once you find an RxJava on the Internet, you can learn it.
1, Add RxJava2 to Android Studio
1. Add in build.Gradle:
compile 'io.reactivex.rxjava2:rx ...
Posted by skateme on Fri, 03 Apr 2020 04:03:49 -0700
exclude group: "com.android.support"
// glide kotlin's Toolkit
Posted by jdavila28 on Fri, 03 Apr 2020 03:26:13 -0700
Recently, there is a function machine project (not supporting touch screen) that needs to realize the effect of enlarging the selected items of ListView in the middle. On the network, most of them are the effect of sliding the screen by hand, and only one can be written by themselves.
The effect is achieved, but there ...
Posted by kristinac on Fri, 03 Apr 2020 03:25:49 -0700
Frame animation, playing animation is like flash, playing frame by frame, that is to say, the image is the continuous playing of some pictures with similar actions, and the effect achieved is like the effect of video playing.
How to achieve the effect of frame animation: create a file under the drawable file, take the ...
Posted by houssam_ballout on Thu, 02 Apr 2020 23:49:37 -0700
eidtText appears white border bar on Xiaomi mobile phone, but it doesn't appear on Huawei Samsung and other mobile phones. It specially records the problem of adaptation
The white border appears directly in the search section to view the code
Posted by Snatch on Thu, 02 Apr 2020 22:37:25 -0700
Source of reference: http://blog.csdn.net/lmj623565791/article/details/22990643
In most Android systems, the default animation switching effect between activities is slide in on the right and slide out on the left; sometimes our requirement may be to require all activities to be switched in and out, at this time, we may need to change the def ...
Posted by klance on Thu, 02 Apr 2020 22:31:47 -0700
AspectJ: a facet oriented framework
1.1 download: http://www.eclipse.org/downloads/download.php?file=/tools/aspectj/aspectj-1.8.13.jar 1.2 direct installation 1.3 create a new application and add configuration in build.gradle: copy the complete code here
apply plugin: 'com.android.application'
import org.aspectj.bridge.IMes ...
Posted by fodder on Thu, 02 Apr 2020 16:40:18 -0700
As you all know, the version number generally consists of the following parts:
1. Main version number
2. Minor version number
3. Revision number
4. Compiled version number
For example: 2.1.3, 3.7.5, 10.2.0
When comparing version numbers, the correct way is to compare the major version number with the major version numbe ...
Posted by rdimaggio on Thu, 02 Apr 2020 15:39:02 -0700
In the commonly used layout LinearLayout, relativelayout and FrameLayout, only LinearLayout supports the function of using the layout "weight attribute to specify the size of the control in proportion, and neither of the other two layouts supports it.
For this reason, Android has introduced a new layout method to solve this problem -- pe ...
Posted by satheshf12000 on Thu, 02 Apr 2020 15:18:00 -0700
In order to better manage the components in the user interface of Android applications, Android provides a layout manager. Through the use of layout manager, Android application GUI has good platform independence. It is recommended to use layout manager to manage the distribution and size of components, rather than directly setting the location ...
Posted by jofield on Thu, 02 Apr 2020 12:50:25 -0700