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

RecyclerView -- give you a non-card sliding list

https://www.jianshu.com/p/519bb23987ca   What will you learn after reading this article? RecyclerView adds a head, a tail, or a view somewhere in the list list RecyclerView+SwipeRefreshLayout for drop-down refresh Paging Load Data List optimization scheme Use Glide to load pictures, press the back key while sliding, and App c ...

Posted by severndigital on Sun, 01 Dec 2019 12:02:03 -0800

Take you to read ButterKnife's source code

Why write this series of blogs? Because in the Android development process, generics, reflection, annotations will be used, almost all frameworks will use at least one or two of the above knowledge, such as Gson, generics, reflection, annotations, Retrofit also used generics, reflection, annotations. It is very important for us to learn these k ...

Posted by madmindz on Thu, 10 Oct 2019 02:21:26 -0700

Understanding and Use of Android Annotations

Why annotations As an Android developer, first look at some familiar code: setContentView(R.layout.activity_main); Toolbar toolbar = findViewById(R.id.toolbar); new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.xxx, parent, false))); Non-ellipsible code like this, which appears in large numbers everywhere, is copied ov ...

Posted by majik92 on Thu, 19 Sep 2019 18:51:04 -0700

Android Advanced Drawing - Custom View Fully Mastered

In the previous case, we used some controls of the system to generate our custom controls by combining. The implementation of the custom controls can also be accomplished by inheriting View from the custom class. Beginning with this blog, we inherited View through a custom class to implement some of our custom controls. We learn through a case, ...

Posted by simonsays on Sun, 25 Aug 2019 21:40:56 -0700