5.1.Easy to use facade API
HttpClient supports fast api from 4.2. The fast api only implements the basic functions of HttpClient, and it only needs to be used in some simple scenarios without flexibility. For example, a fast api does not require users to handle connection management and resource release.
Here are a few examples of using the fas ...
Posted by Blesbok on Tue, 05 May 2020 01:36:01 +0200
1 unit conversion
Due to the different screen density, the length of the same pixel size and the length displayed on the screen with different density are different. The following is the conversion formula of each density value,
In mdpi, 1dp = 1px,
In hdpi, 1dp = 1.5px,
In xhdpi, 1dp = 2px,
In the xxhdpi, 1dp = 3px ...
Posted by nite4000 on Mon, 04 May 2020 23:57:40 +0200
SearchView is Android's native search box control, which provides a user interface for user search queries.
By default, SearchView displays a search icon. Click icon to expand the search box. If you want the search box to expand by default, you can use seticonfifiedbydefault (false); to achieve this.
Posted by ThatGuyBob on Mon, 04 May 2020 12:11:07 +0200
First step dependence.
build.gradle under project
build.gradle under moudle
Error after synchronization:
WTF? What the hell is this.
Search online and add @ aar after the version numb ...
Posted by pbjpb on Mon, 04 May 2020 11:00:57 +0200
java lazy development: mybatis generator generates the corresponding entity class, xml Mapper file, interface and help class according to the table design in the database.
Take spring-tool-suite-3.9.2.RELEASE as an example:
Posted by benyamin on Mon, 04 May 2020 05:54:22 +0200
1, Change style
First, change the style of the system to the style without ActionBar, set the color of the theme, and then reference the style.
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimaryDark ...
Posted by sander_ESP on Sat, 02 May 2020 21:06:57 +0200
How to start the Activity of another APP from one APP
1. Start with custom action
In this way, you only need to set an action in the code, and the system will automatically filter to find the corresponding Activity of this action
Code of current APP
Intent intent = new Intent();
//Here is the custom action used
Posted by ChrisBoden on Sat, 02 May 2020 08:53:50 +0200
The company has a small need to dynamically configure the value of android:scheme in Android manifest.xml.
This translates into the problem of modifying xml node values through an external java project.
Among them, Android manifest.xml needs to stipulate a rule:
Posted by ridster on Sat, 02 May 2020 07:18:10 +0200
Install JDK before installing Tomcat. See JDK installation (bin)
1. Download and unzip Tomcat
[root@bogon src]# wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.0.M22/bin/apache-tomcat-9.0.0.M22.tar.gz
[root@bogon src]# tar xvf apache-tomcat-9.0.0.M22.tar.gz
2. Consider the ...
Posted by simonrs on Sat, 02 May 2020 05:36:44 +0200
From: http://blog.csdn.net/wenwen091100304/article/details/49667293, good summary
The Chinese meaning selector is often used as the background of components in Android. The advantage of doing this is that it does not need to use code control to realize the transformation of different background colors or pictures of compo ...
Posted by jmanfffreak on Fri, 01 May 2020 17:36:32 +0200