Super simple way to create your own slide menu

Then you can click the menu to change the icon. For example, click happy, and the homepage will become a smiling face. The implementation process is super simple Step 1: you need to use two new controls: ToolBar and DrawableLayout First, I need to write three xml layout files. The layout file here is embedded w ...

Added by runelore on Tue, 26 May 2020 18:18:27 +0300

Sharing of learning notes in uni

Table of contents 01. Summary of problems encountered 02. About layout settings 03. Basic grammar summary 04. About interaction 06. About returning data 07. About network requests 08. About page refresh 09. Notes 10. To be solved and considered 01. Summary of problems encountered In my page, there is a problem defining the class of view as l ...

Added by astaroth on Sun, 24 May 2020 05:12:06 +0300

Android Handler mechanism: how ThreadLocal works

1, Handler mechanism and ThreadLocal In the Handler mechanism, we will encounter a very important class in Looper: ThreadLocal, ThreadLocal is not a thread, its function is to store data in each thread. When the handler is created, it will get the Looper of the current thread to construct the message loop system. The way to get it is through ...

Added by PJ droopy pants on Fri, 22 May 2020 08:29:05 +0300

Android development disable notification bar drop-down

I've had a headache for several days with the requirement of applying the disable notification bar to pull down statusbar is used, but the effect is not very satisfactory Other methods have been tried but have no effect, so let's change our thinking The way to do this is to make a transparent window in the notice bar area, so that when you pull ...

Added by colombian on Wed, 20 May 2020 19:09:09 +0300

Stop using a single framework, XUtils - you deserve it!

Details of XUtils 1, What are XUtils? brief introduction Configuration before use 2, XUtils loading pictures ImageOption Load network picture Load Android resource pictures Load sd card picture 3, XUtils request network RequestParams get request post request 4, Use summary ...

Added by u01jmg3 on Wed, 20 May 2020 13:51:48 +0300

appium -- positioning package

Automated testing is simple, fast and easy to maintain. The most important part of automatic maintenance is element positioning. thinking Before we write code, we should make clear our thinking, so that when we write code again, we won't know how to start. 1. Manage elements and positioning methods through yaml (or other tools) 2. Encapsul ...

Added by NEWDAY on Sat, 16 May 2020 08:18:03 +0300

How to use WillPopScope in Flutter

Guide reading for Lao Meng: how to click the Back button twice to exit the App, how to realize multiple routes in the App, and how to realize the Back button only to exit the specified page will be shown in this article. WillPopScope WillPopScope is used to process whether to leave the current page or not. There are many ways to leave the cu ...

Added by Tranquilraven on Wed, 13 May 2020 03:49:00 +0300

The mobile terminal detects that the wechat browser returns, closes and enters the background operation

Background: for a recent countdown learning time recording project, you need to record the progress of the current page when the user clicks the back button of the browser or directly closes the browser, or directly exits wechat or enters the background. The next time you go in, you need to start the countdown from the last place you left. At f ...

Added by edgev on Fri, 08 May 2020 13:39:14 +0300

Ctssecuritytestcases - listeningportstest locates tcp port and pid

Ctssecuritytestcases - listeningportstest locates tcp port and pid [problem description] cts failures armeabi-v7a CtsSecurityTestCases android.security.cts.ListeningPortsTest#testNoListeningLoopbackTcpPorts Tool: 9.0 μ R11 05-06 17:11:28.649 17375 17391 E TestRunner: android.security.cts.ListeningPortsTest$ListeningPortsAssertionError: 05-0 ...

Added by tibiz on Thu, 07 May 2020 19:59:45 +0300

Python and Nose realize automatic test of mobile application

Today I'm talking with you about Python and Nose's automatic testing of mobile applications. I hope it can help you. There's something bad to say. Please give me more advice! The coolest thing about automated functional testing with Appium is that you can write your test code in any language that has the best testing tools for you. Python is t ...

Added by sottwell on Wed, 06 May 2020 15:13:20 +0300