Custom ImageView implementation

The purpose is as follows: This is only for the ImageView above, the composite layout in the middle, and the banner diagram below, which was also mentioned before the uniform color processing of the status bar.Analyze the top and bottom hooked view, which can be achieved by simply extending ImageView. Consider the fo ...

Posted on Sat, 11 Jul 2020 10:41:00 -0400 by ronjon

Android implements request HTTP authentication

These days, the development of external SDK, can achieve landing, payment.Similar to developing a set of QQ, WeChat third party login.The authorization protocol used is OAuth 2.0.Among them, Http Authentication is used, and you can consult the online materials. There are all kinds of answers, some don't know if they have been verified, and some ...

Posted on Fri, 10 Jul 2020 10:57:16 -0400 by the apprentice webmaster

The choice of Hybrid APP hybrid development mode (7: full version of JSBridge)

preface Reference sources This paper refers to the following sources Design ideas of Hybrid APP architecture marcuswestin/WebViewJavascriptBridge Wedge This paper introduces the complete implementation of JSBridge, including JS part, Android native part and iOS native part JS implementation part explain This is a JSbridge implementati ...

Posted on Thu, 09 Jul 2020 12:14:28 -0400 by vikette

Imitate Advertising Effect

Imitate the effect of an advertisement, see the effect picture first The results are as follows: Slide up, the head of the picture comes out first, and then scroll along as you scroll. When the picture slides out of the screen, the inside of the picture also reaches the bottom. Slide down, the bottom of the ...

Posted on Thu, 09 Jul 2020 11:17:25 -0400 by snowgirl

Imitate Advertising Effect

Imitate the effect of an advertisement, see the effect picture first The results are as follows: Slide up, the head of the picture comes out first, and then scroll along as you scroll. When the picture slides out of the screen, the inside of the picture also reaches the bottom. Slide down, the bottom of the ...

Posted on Thu, 09 Jul 2020 11:16:13 -0400 by mcubedma

Braintree SDK integration and common problem solving

Introduction to Braintree android sdk integration Drop-in UI integration link: 1.Official Web - drop-in UI Official UI and server interaction (nothing else to do) 2.git address Official demo examples Interactive schematic diagrams: Interactive steps: Your app or web front-end requests a client token from your server in order ...

Posted on Wed, 08 Jul 2020 12:14:01 -0400 by rwachowiak

Qt Drag Dynamic Dustbin

A few days ago, I saw the drag and drop of Qt, and I thought that it was quite flexible. However, in the similar app application scenarios on the mobile terminal, the widgets did seem a bit clumsy. But at the same time, it has powerful functions and high flexibility. What I have implemented here is a dynamic garbage can similar to the android ...

Posted on Tue, 07 Jul 2020 11:55:23 -0400 by Techissue2008

iOS Development Notes | custom label with inner margin

iu preface UIScrollView has contentInset, but UILabel doesn't; Android does, iOS doesn't. Recently, I need to use a label with inner margin, so I encapsulated it with the code of my predecessors on the Internet. Originally, I wanted to create a category, but it failed. The code is as follows, inherited from UILabel: . h file: #impo ...

Posted on Sat, 04 Jul 2020 12:10:19 -0400 by and1c

21. Use of AlertDialog Common Dialog

Target Effect In this interface, there is a text input box and a button, enter content in the text input box, then click the button to bring up a customized normal dialog box, in which the prompt information is the information entered in the text box. The target effect map is as follows: Page Layout <LinearLa ...

Posted on Sat, 04 Jul 2020 11:25:37 -0400 by mullz

Update DownloadManager usage with android system

The results are as follows: added in API level 9. Package path:java.lang.Object    ↳ android.app.DownloadManager Download Manager is a system service that handles long-running HTTP downloads. Applications requested to download through this API should be ACTION_NOTIFICATION_CLICKED registers a broadcast receiver so t ...

Posted on Sat, 04 Jul 2020 11:06:01 -0400 by Citizen