Pit encountered by kotlin Parcelable, used by Parcelize

When we jump between pages, we often need to pass values. In Java, we implement the Parcelable interface and the response method. However, when using Kotlin, I encountered some problems, as follows: problem 1. Create two activities, MainActivity and Main2Activity. Click the Button on MainActivity to jump to Main2Activ ...

Posted by asgerhallas on Sun, 05 Apr 2020 15:33:00 -0700

Simple use of PhotoView

Preface This is a picture viewing library, which can realize the function of picture browsing, support the function of gesture or click zoom, support the use in ViewPager, and allow the application to notify the users on the photos to click Wechat's head image can be enlarged by clicking, and many App's image display can be r ...

Posted by westexasman on Sat, 04 Apr 2020 14:16:08 -0700

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

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 NDK basic configuration

Android ndk configuration under Windows ndk package This installation uses android ndk version android-ndk-r12b-windows-x86 ʄ Environment variable configuration Add the unzipped ndk PATH to the PATH, and the native is "D:/ndk" Android project configuration 1. Create a new Android project, add local.properties to n ...

Posted by eneyas on Thu, 02 Apr 2020 09:06:55 -0700

Custom turntable

In the first part of the new year, I wrote a custom turntable. At present, there are two modes. The specific effects are as follows: Mode 1: pointer mode When the turntable is stopped, the data at the initial position can be obtained As shown in the figure below is the initial state, 0 is the initial position (in the coordin ...

Posted by raghavan20 on Wed, 01 Apr 2020 18:20:37 -0700

Advanced way of Android: scanning and generating 2D codes

Ten thousand years ago, I wanted to write an article to record the implementation of the QR code function. I didn't expect that it would be now. Today is Saturday~~~ Now there are a lot of tripartite libraries about scanning code on the Internet. Of course, these are all extended based on the framework of zxing. Here I ...

Posted by schris403 on Tue, 31 Mar 2020 08:58:00 -0700

Ali Yun released Spring Boot new scaffolding, really fragrant

Author|Good Name Alibaba Technical Expert background I believe many people have used start.spring.io to initialize their own Spring Boot project. This tool provides developers with a wide range of optional components and can be packaged in a variety of ways, making it easy for developers to use.Recently, Alibaba's Nacos and Sentinel have also ...

Posted by clapton on Sun, 29 Mar 2020 21:14:18 -0700

Rich text parser

From http://blog.csdn.net/stephen2wong/article/details/72235930 RichText Rich text parser on Android platform Streaming operation Low invasiveness Support Html and Markdown format text Support image click and long press events Link click event and long press event Support setting pictures in loading and loading errors Suppo ...

Posted by perrio on Tue, 24 Mar 2020 09:19:19 -0700

Integration of Proto3 on Android

Proto 3 and proto 2 are very different. Most of the Internet is about proto 2. Because of the habit of using the latest library, we insist on integrating proto 3 build.gradle configuration under Project directory google() jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle: ...

Posted by IceHawk on Thu, 19 Mar 2020 11:15:27 -0700