Android Project Actual Series - Based on the Learned Valley Exercise Module

Please be patient to read this module because of its large content and length. Exercise module is divided into two parts [x] Exercise List Interface [x] Exercise details interface 1. Exercise List Interface 1. Exercise Interface (1) Create exercise interface In the res/layout folder, create a new layout file named main_view_exercises. ...

Posted by sheraz on Tue, 05 May 2020 23:18:23 +0200

Android drawing mechanism and processing skills

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

Android search box: properties and usage of SearchView

About SearchView 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. Search ...

Posted by ThatGuyBob on Mon, 04 May 2020 12:11:07 +0200

ElasticSearch close restart command

ElasticSearch close restart command From: http://www.cnblogs.com/ae6623/p/5110927.html Many people learn elasticSearch by self-study. There is no answer to Baidu's question of how to restart es. I'm trying to figure it out. I hope I can help you. 1. How to close ES and elasticsearch 1. Use the head plug-in Find the node you wan ...

Posted by codered27 on Sun, 03 May 2020 14:54:12 +0200

Change Actionbar, use of Toolbar

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="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark ...

Posted by sander_ESP on Sat, 02 May 2020 21:06:57 +0200

How to modify the value of android:scheme in Android manifest.xml externally

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: <activity android:name=".MainActivity"> ...

Posted by ridster on Sat, 02 May 2020 07:18:10 +0200

A detailed explanation of the use of selector in Android

From: http://blog.csdn.net/wenwen091100304/article/details/49667293, good summary Introduction 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

Crawling novel (step 3) python

Suppose you have installed bs4 requests This novel is chosen at will, so you don't have to worry too much Python 3 implementation. There are too many crawlers using Python 2 on the Internet, but there are still few crawlers using Python 3 The link is https://www.qu.la/book/12763/10664294.html Get the title of the article (find the exact htm ...

Posted by hnissani on Fri, 01 May 2020 10:30:06 +0200

Using spring MVC for file upload and docking with FTP server

Add the bean s needed to upload files in pomxml Adding information such as file size file encoding to dispatcher servlet XML Background upload process FileService source code display FTPUtil source code display In a project, file upload is often needed. The following process is the file upload step I used in ...

Posted by doood on Fri, 01 May 2020 01:38:15 +0200

android sets button style (border color, fillet) and picture style (fillet)

android sets button style (border color, fillet) and picture style (fillet) Set button border color: Create a new button? Edge.xml file in drawable <?xml version="1.0" encoding="UTF-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <!-- Border color value --><item> < ...

Posted by FrozNic on Thu, 30 Apr 2020 21:02:04 +0200