iOS Source Parsing - WebView Javascript Bridge

brief introduction A bridge mechanism for OC and JS interaction consists of three main classes: JS-side window. WebView Javascript Bridge, OC-side WebView Javascript Bridge and WebView Javascript BridgeBase. Bridge class supports JS calling OC method, OC calling JS method. JS calls OC by redirecting url and taking handlerName. OC calls JS by ...

Posted by OLG on Fri, 12 Apr 2019 15:06:33 -0700

python basic function

function 1 ternary operation (trinomial operation) v = true to the preceding value if condition else false to the following value Do it first and think about how to simplify it. 2 function Functional programming: Essence: Take multiple lines of code elsewhere, name them individually, and then execute them with that name. Scenario: Repeated exe ...

Posted by SpasePeepole on Wed, 10 Apr 2019 20:36:31 -0700

ListView Learning Notes in android

ListView Learning Notes in android 1. Use Array Adapter to provide data to ListView Layout file <ListView android:id="@+id/lv" android:layout_width="match_parent" android:layout_height="match_parent" > </ListView> Code public class MainActivity extends Activity { private String [] dat ...

Posted by bigbillhill on Wed, 10 Apr 2019 19:36:33 -0700

Complete the multi-selection function with the multi-selection mode of ListView

When it comes to using ListView to do this, many people's first idea is to change the display mode by maintaining a selected collection and then judging whether it is selected in adapter (I've seen multiple selections implemented in this way more than once). But what many people don't know is that ListView actually has its own multi-selection ...

Posted by tromton on Wed, 10 Apr 2019 17:15:31 -0700

Sliding back to SwipeBackActivity

Sliding back to SwipeBackActivity Careful students can find that the sliding return of Wechat is actually a little more detailed than the normal sliding return. The returned Activity will show a part of it, and then follow the linkage, which used to be a direct two-connected sliding. This article talks about how to simulate the sliding return ...

Posted by jeff_lawik on Wed, 10 Apr 2019 17:06:32 -0700

Android Service fully parses everything you need to know about services (I)

Copyright Statement: This article is from Guo Lin's blog, reprinted must indicate the source. Catalog (?)[-] Basic usage of Service Service and Active Communication How to Destroy Service The relationship between Service and Thread Create Front Office Service For reprinting, please indicate the source: http://blog.csdn.n ...

Posted by Jahren on Wed, 10 Apr 2019 11:15:33 -0700

A Brief Analysis of Handler Use in Android

1. Handler usage elicitation Now as a customer, there is a need to start counting down when opening the Activity interface and jump to a new interface when the countdown ends (a thoughtful friend may immediately think that if the countdown is opened automatically, it is similar to the welcome flash page of each APP). Here is the following pict ...

Posted by naveenbj on Wed, 10 Apr 2019 01:09:32 -0700

Using Linear Fitting Model to Find Hidden Hazards in Test Environment Performance

Using Linear Fitting Model to Find Hidden Hazards in Test Environment Performance A Classical Performance Problem Several weeks after putting into operation, production events such as slow response of the system, high load of the database and unreleased connection of a large number of databases occurred in the production environment. The r ...

Posted by t_galan on Mon, 08 Apr 2019 22:42:31 -0700

android ijkplayer c layer analysis-initialization

Originally, I didn't want to write the initialization process. I think there are many articles on the Internet to analyze. But in the whole process of analysis, it is revealed that some problems are not well understood, so it is necessary to do it once.The first is the java layer: private void initPlayer(IjkLibLoader libLoader) { loadLi ...

Posted by curb on Mon, 08 Apr 2019 21:42:32 -0700

Two-dimensional code generation 2

Last article Two-Dimensional Code Generation This paper introduces the simple application of generating two-dimensional codes through the class library ThoughtWorks.QRCode.dll, and makes a simple encapsulation of the class library ThoughtWorks.QRCode.dll. Based on the last modification, the user-defined head image or icon can be added in the mi ...

Posted by PureDrive on Mon, 08 Apr 2019 00:24:31 -0700