Using attribute animation to realize the animation effect of starlight

In Android, attribute animation is a very interesting function to control the animation effect of parameter transformation Compared with gif image, animation controls need to save space and increase response speed main points: (1) Use PercentLayout to set the size of custom controls (2) The two important functions of attribute animation are ...

Posted by mauri_gato on Sun, 31 May 2020 09:14:52 -0700

[AS2.3.3]MVP mode learning

Some specific charts are not mentioned here! Start the learning journey directly. 1. Basic mvp pattern implementation An example is to access the web address to get the json string The website is http://gank.io/api/data/benefits/10/1 The network is implemented by rxjava2+okttp3+retrofit2 Network frame address First, the layering of mvp ...

Posted by alsinha on Fri, 01 May 2020 00:20:32 -0700

Jump between Android's activities

1. There is a little change between the jump mode mentioned here and the usual one: We can write a jump method in the class inherited by activity for other classes to use, reducing the use of redundant code package com.ayspot.apps.wuliushijie.base; import android.content.Context; import android.content.Intent; import android.os.Bundle; impo ...

Posted by khurramijaz on Tue, 14 Apr 2020 08:45:55 -0700

1, Login to register mvp framework

1, model layer writes an interface public interface IMyView { //How to login successfully void loginSuccess(); // Method of login failure void loginError(String error); //Get login name String getMobile(); //Get login password String getPassword(); } 2, The main method of model l ...

Posted by monotoko on Sun, 05 Apr 2020 16:28:07 -0700

Problems encountered in using Gaud map in fragment under kotlin

During the initialization of Gaud map, a bundle object of savedInstanceState is needed. The first button knife is used in the project. This is how I encapsulate the base class. There is no problem @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedI ...

Posted by DarkHavn on Tue, 31 Mar 2020 03:33:06 -0700

WebView should know and should know

Catalog 1, What is WebView? What can WebView do? 2, Play WebView Commonly used API Basic use 1. Add network permission 2. Instantiate WebView 3. Set up WebClient 4. Set up WebChromeClient 5. How to interact with JS Web pages jump to other applications through Scheme 1. What is scheme? 2. If the w ...

Posted by Robert Elsdon on Fri, 13 Mar 2020 23:27:21 -0700

Android thread learning - asynchronous message processing 1

Handler asynchronous message processing mechanism Asynchronous Message processing in Android mainly consists of four parts: Message, Handler, MessageQueue and Looper. Message: responsible for inter thread message delivery Handler: used to send and receive information MessageQueue: the queue used to store messages. Each thre ...

Posted by hedge on Sat, 21 Dec 2019 10:06:39 -0800

3. Data transfer between Android based activities

Zero, preface Open the frontactivity, open the ToActivity through the button to return the result, and at the same time add the data to the intent, Fill TextView with data in onCreate method of ToActivity. Press the return button to pass the ToActivity data to FromActivity, verify the returned result in onActivityResult metho ...

Posted by Deany on Sat, 21 Dec 2019 09:23:21 -0800

4-AI--Activity jump animation

Zero, preface 1. Open RedActivity and click the screen to enter BlueActivity. At this time, RedActivity moves out to the left and BlueActivity moves in to the left 2. Click the back button, BlueActivity moves out right and RedActivity moves in right Default jump mode: Effect of this case: 1, Test class 1. Red Activ ...

Posted by jaylee on Thu, 19 Dec 2019 07:14:00 -0800

Design mode - strategic mode

/** * Role superclass: * Follow the design principles, find out the parts that may need to change in the application, and separate them, * Don't mix with code that doesn't need to change. * We found that the display, attack, defend and run of each character could change, so we had to write this independently. * Then accordi ...

Posted by morphius on Fri, 13 Dec 2019 12:59:55 -0800