Use Kotlin's copy of the book's personal home page with only one control

The interface is ugly, but basically functional.To learn the recently popular kotlin language, try writing a demo. Refer to the previous article Palm-like League of Heroes Effect. Design sketch 1. Prepare before you start Import the kotlin development environment:The Android Studio 3.0 version is already integrated by default.Checking inclu ...

Posted by eva21 on Sun, 16 Jun 2019 09:30:54 -0700

Basic use of Android Broadcast

1. What is broadcastingBroadcast mechanism is used for process/thread communication. The main feature of broadcasting is that the sender does not care whether the recipient receives data or how the recipient processes the data. It is only responsible for saying, regardless of whether you listen or not. Broadcast can come from systems or other a ...

Posted by liquidd on Sun, 16 Jun 2019 09:11:45 -0700

Play with java reflex

original text classloader What is a Class Loader Responsibilities of Class Loaders Composition of Class Loader reflex What is Reflection How to Use Reflection Application of Reflection in Android What is a Class LoaderWhen a Java program wants to use a class, if the class has not been loaded into memory, the system will initialize the cl ...

Posted by eliezer on Sat, 15 Jun 2019 17:19:17 -0700

Analysis of Android Custom view

Why customize view? Add new functionality to the view(textview,imageview, etc.) provided by android Handling unique user interactions When android does not provide us with enough views to meet our needs, such as waterfall flow layout, sticky animation and so on, we need to define views ourselves. With a good command of custom controls, you c ...

Posted by KGodwin on Sat, 15 Jun 2019 13:11:17 -0700

Analysis of Picasso Source Code

Analysis of Picasso Source Code When I first came into contact with Android a few years ago, it was more difficult to load and display pictures. Although it was not difficult, you had to care about the network, caching, traffic, memory leaks, etc. At this time, Picasso appeared with an artistic name, which suddenly made me realize the im ...

Posted by JonathanS on Sat, 15 Jun 2019 12:17:48 -0700

Detailed usage of Android ViewDragHelper

1. Introduction This is a useful class for writing a custom viewgroup ViewDragHelper.It provides a number of useful operations and states to allow listeners to drag and drop and reposition child view s in the parent ViewGroup. 2. Details 1. Steps to use (1) Customize a View (2) Create an instance of ViewDragHelper dragHelper = View ...

Posted by rakennedy75 on Sat, 15 Jun 2019 09:48:55 -0700

Quickly build Android custom emoticon Library

Please respect the original, reproduce it from: http://blog.csdn.net/mabeijianxi/article/details/74779611 brief introduction The inspiration for this article is classical https://github.com/rockerhieu/emojicon , part of the code is directly face-free copy ing, on which it is more beautiful and useful, and has more customization ...

Posted by marc2000 on Sat, 15 Jun 2019 09:37:50 -0700

Hand-in-hand teaches you to use custom dialog, which can appear anywhere

This is my blog once. 1. Customize a dialog to pop up the bottom pop-up window. It can nest multi-layer controls. Note ViewPager, Recycler View, imageview, etc. can be nested. 2. Set style first, and imitate Google's native dialog to set style. <style name="style_location_dialog" parent="@android:style/Theme.Dialog"> &lt ...

Posted by viperfunk on Fri, 14 Jun 2019 15:57:13 -0700

Custom Drawable TextView - Implementing Click Listening from the top left to the bottom right of TextView

In Android development, we often encounter the UI layout with pictures in the top left and bottom right of TextView, and each picture needs to do corresponding logical operations after clicking. In this case, we first think of using linear layout or relative layout to layout, then setting the id for each picture, then getting the corresponding ...

Posted by haroon on Thu, 13 Jun 2019 16:49:38 -0700

Summary of the Use of Android Display Time and Date Controls

Cognition of related categories Picker(DatePicker,TimerPicker,NumberPicker) DatePicker and TimerPicker both display dates and times in the form of windows, and then return data. The following sections introduce the use of these time classes. I. Use of DatePicker Date Selection Class Common XML attributes of DatePicker XML attributes ...

Posted by jemrys on Thu, 13 Jun 2019 14:42:10 -0700