Python+Appium [Chapter 3] Adb element positioning
Introduction to uiautomatorviewer
Element positioning is mainly used to obtain element information. After obtaining element information, you can use the relevant API s provided by appium to identify and operate elements. In the Android SDK, Google provides the element location tool uiautomatorviewer, which can be found in the Android SDK i ...
Posted by dtdetu on Fri, 14 Jan 2022 07:05:21 +0100
Android learning-2.1UI component
UI components
catalogue
UI components
1. Layout manager: linear layout (default horizontal arrangement), relative layout
2.TextView
3.Button
1) Text size, color
2) Custom background shape
3) Custom press effect
4) Click event
4. EditText (can be inputted)
1) Common properties
2) Listening events
3) Login interface
5.RdioButton
...
Posted by PupChow on Thu, 13 Jan 2022 23:10:58 +0100
Come in and see if it's the effect you want, Android ceiling effect! And has the ViewPager to switch left and right!
According to the old rule, the picture above first to see if it is what you want. Meituan effect:Final effect:A graphic analysisNext, I want to write a simple example. First analyze the layout, as shown in the figure below. The outermost layer is NestedScrollView, and then nest a LinearLayout header, a TabLayout selector in the middle and a Vie ...
Posted by manishdugar on Thu, 13 Jan 2022 15:42:44 +0100
32. User defined route switching animation of fluent
A MaterialPageRoute component is provided in the Material component library, which can use route switching animation consistent with the platform style. For example, it will slide left and right on iOS and up and down on Android. Now, what should we do if we also want to use the left-right switching style on Android? A simple way is to directly ...
Posted by KendersPlace on Thu, 13 Jan 2022 02:05:30 +0100
Use Jetpack DataStore for data storage
Welcome to jetpack DataStore, an improved new data storage solution designed to replace the original SharedPreferences. Jetpack DataStore is developed based on Kotlin collaboration and Flow, and provides two different implementations: proto DataStore # and # preferences DataStore. Proto DataStore can store objects with types (implemented with p ...
Posted by qads on Wed, 12 Jan 2022 22:09:15 +0100
Monkey source code analysis of Android (Chapter 7: logic analysis of how monkey programs know that an application crashes and then stop running)
preface
The Monkey program is used to perform the stability test. If the tested App crashes and ANR, the Monkey program will know the Crash at the first time, and then write the stack information to the standard error. How does the Monkey program know the Crash? After learning the ActivityController, you will get the answer
ActivityControll ...
Posted by brauchi on Wed, 12 Jan 2022 22:06:26 +0100
Android DataBinding from getting started to advanced
DataBinding is a framework officially released by Google. As its name suggests, it is data binding. It is an implementation of MVVM mode on Android. It is used to reduce the coupling between layout and logic and make the code logic clearer. Compared with MVP, MVVM actually replaces the Presenter layer with the ViewModel layer. DataBinding can o ...
Posted by llirik on Wed, 12 Jan 2022 21:52:50 +0100
Compatibility and adaptation of Android versions
Android 6
Runtime permission dynamic request
Android 7
On Android 7 On the 0 system, it is forbidden to disclose the file:// URI to your application. If an Intent containing the file:// URI type leaves your application, the application fails and a FileUriExposedException exception occurs, such as calling the system camera to take pictures. T ...
Posted by rosy on Wed, 12 Jan 2022 10:15:05 +0100
One click AI coloring, black and white old photos, the picture is instantly fresh
Many old photos or movies are limited by the technology of the times and can only be saved in black and white; The edited black-and-white videos and pictures have long lost the original color pictures, which is a great pity for the savers. How can we turn a single boring and old mottled black-and-white photo into a fresh and bright color photo, ...
Posted by Caps on Wed, 12 Jan 2022 04:30:20 +0100
Custom Composite Navigation Bar ViewPager+RadioGroup
Why customize the navigation bar?
Although Andoird studio also has a built-in one-click button to generate an active page in the bottom tab bar for developers to choose from, there is one thing that comes with it, which is inherited from the ButtomNavigationView, has a fixed style, and does not support switching fragmented pages to the lef ...
Posted by Bertholt on Tue, 11 Jan 2022 18:51:50 +0100