TextView control developed by Android
Basic framework
The following codes are in activity_main.xml.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="200dp"
android:layout_heig ...
Added by trygve on Tue, 18 Jan 2022 09:49:18 +0200
WebView usage for Android
In addition to the two main network technologies of HTTP communication and Socket communication, WebView, a technology for loading and displaying web pages, is also provided in Android. This allows us to deal with some special needs, such as displaying web pages in applications like wechat, or using WebView to layout UI interfaces.
Basic use o ...
Added by Craig_H on Tue, 18 Jan 2022 08:14:10 +0200
A set of code packages multiple applications and configures different package names and signatures
When developing an application, the basic functions are the same. When packaging, distinguish channels, configure different package names and signatures.
1. Create a new project
Simply create a default Hello World project.
2. Create a new folder for the corresponding channel
Create a new folder qudao1 in the src directory, and then generate ...
Added by maxrisc on Sun, 16 Jan 2022 04:17:29 +0200
Android Development: Activity activity
Personal notes sorting
Activity activity
Activity basic usage
Registration activities
Need to be in androidmanifest Register the activity in the application node in XML
<activity android:name=".FirstActivity"/>
If primary Activity
<activity android:name=".FirstActivity"
android:label="This is FirstActivity">
<int ...
Added by omanush on Sat, 15 Jan 2022 20:23:52 +0200
Come in and see if it's the effect you want. Android ceiling effect, with ViewPager switching 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 analysis
Next, 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 a ...
Added by Slashscape on Thu, 13 Jan 2022 16:40:23 +0200
Gradle multi-channel packaging (dynamically set App name, application icon, replace constant, change package name, change channel)
First put a complete multi-channel / multi environment packaged configuration, and then explain it.
Achieved:
Different environments and package names;Modify different strings in different environments XML resource file;Modify the specified constant in different environments;For different environments, modify androidmanifest Channel varia ...
Added by pea on Wed, 12 Jan 2022 12:05:26 +0200
android display and windy weather Font Icon
androud studio 3.5.2
Example file: Weathervolleyjson
Not to mention here about json data acquisition and analysis, but read my previous articles with interest.
Not to mention the benefits of font icons, there are a lot of them on the Internet. The app I made can already get and analyze the wind and weather, but the weather has been without i ...
Added by f1r3fl3x on Sun, 09 Jan 2022 19:33:52 +0200
Android first experience - data storage
Persistence technology
Data persistence refers to saving those instantaneous data in memory to the storage device to ensure that these data will not be lost even when the mobile phone or computer is turned off. The data stored in memory is in transient state, while the data stored in storage device is in persistent state. Persistence techn ...
Added by Nat on Wed, 05 Jan 2022 10:11:08 +0200
The first line of Android code -- Chapter 4 explores fragments
What are the fragments
Fragment is a UI fragment that can be embedded in activities, which can make the program more reasonable and make full use of the space of the large screen. Therefore, it is widely used in tablets.
Use of fragments
Simple use of fragments
Left layout_ fragment. xml
<LinearLayout xmlns:android="http://schemas.andro ...
Added by ditusade on Tue, 04 Jan 2022 14:20:07 +0200
Software testing using Monkey (random testing + script testing)
1, Basic concepts
The so-called monkey test (Money Test), also known as funny test and strange use test, refers to that in software testing, testers can carry out various strange operation modes to test the stability of software. Monkey test, generally speaking, is a test method for the robustness of the system to the input of signal facto ...
Added by ierpe on Mon, 03 Jan 2022 02:29:36 +0200