Getting started with RxJava2 - installation and simple examples (1)

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

Android image loading - Glide4.0 framework encapsulation

Using steps Glide add compile('com.github.bumptech.glide:glide:4.6.1') { exclude group: "com.android.support" } // glide kotlin's Toolkit kapt 'com.github.bumptech.glide:compiler:4.6.1' compile "com.github.bumptech.glide:okhttp3-integration:4.5.0" compile 'com.github.bumptech.glide:annotations:4.6.1' Pack ...

Posted by jdavila28 on Fri, 03 Apr 2020 03:26:13 -0700

Android ListView Selection Center zoom in (use up and down key control, not touch screen)

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

Android basic animation frame animation

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

Millet mobile phone layout with white border, black background, etc. (adaptation)

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 <RelativeLayout android:id="@+id/et_search_root" android:layo ...

Posted by Snatch on Thu, 02 Apr 2020 22:37:25 -0700

Android uses Theme to customize the switching animation between activities

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

AOP object oriented section programming: Taobao Jingdong network processing

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

android version number size comparison

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

Percentage layout

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

Android LinearLayout linear layout details

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