Customize your own underlined EditText input box
Let's see the effect first
In the middle of the picture is the style of the input box. The number of input boxes, the spacing between each input box, the color of the input text and the bottom line can be changed dynamically. Next is the time to roll up the code
1. Now create attrs.xml in the values folder and copy the s ...
Added by Credo on Sat, 01 Feb 2020 06:18:03 +0200
android Bluetooth BLE serial port development
1. First apply for relevant authority. In manifest.xml
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-feature android:name="android.bluetooth_le" android:required="true"/>
<uses-permission-sdk-23 andr ...
Added by Ohio Guy on Sat, 01 Feb 2020 05:32:42 +0200
Space control of Android skills
1, Activity without any processing
The listing file code at this time is as follows:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.chromium.chrome.browser.spacedemo">
<application
android:allowBackup="true"
...
Added by scept1c on Sat, 01 Feb 2020 02:36:08 +0200
Mybatis learning notes-02 (in update)
Article directory
1. Add operation
1.1 add 'insertUser()' method in UserMapper interface
1.2 configure add operation in Mapper mapping file 'UserMapper.xml'
1.3 test add operation
1.4 test results
2. Delete
2.1 add the 'deleteUserById()' method in the UserMapper interface
2.2 configure deletion in ...
Added by matchu on Wed, 29 Jan 2020 06:37:13 +0200
JSP~~JSTL~~Core Label Library~~Use of Circular Label forEach
forEach iteration tag: This tag is used to iterate over a series of objects in a Collection set and can specify the number of iterations.
The general format used is as follows:
<c:forEach items="collection" var="varName"
[varstatus="varStatusName"][begin="begin"] [end="end"] [step="step"]& ...
Added by evan12 on Tue, 28 Jan 2020 05:28:02 +0200
spring source learning (1)
There are a lot of spring source code analysis tutorials and class diagrams on the Internet, but the source code of spring is very complex, one layer is nested, and it's hard to see at the beginning. The more you look, the more muddled you become. So I bought the book "spring source code deep analysis". Follow the boo ...
Added by Dumps on Mon, 27 Jan 2020 17:58:13 +0200
Percentage of width in RelativeLayout
I'm laying out the login Activity form for my Android app. Here's what I want to look like:
I can use the following XML to implement this layout. The problem is, it's a little shocking. I have to hard code the width of the host EditText. Specifically, I must specify:
android:layout_width="172dp"
I really want to give the host and po ...
Added by Alkimuz on Mon, 27 Jan 2020 16:46:47 +0200
Reading the source code of mybatis: initialization of mybatis
Reprinted from Reading the source code of mybatis (2): initialization of mybatis
1. Initialization entry
//Mybatis obtains SqlSession through SqlSessionFactory, and then can interact with the database through SqlSession
private static SqlSessionFactory getSessionFactory() {
SqlSessionFactory se ...
Added by Pioden on Mon, 27 Jan 2020 07:10:47 +0200
Passwords visible and invisible
A small feature in the project that toggles between visible and invisible passwords.
Design sketch:
Code:
public class PwdActivity extends AppCompatActivity {
public static void startActivity(Context context){
Intent intent = new Intent(context, PwdActivity.class);
context.startActivi ...
Added by KITTfan2K on Thu, 23 Jan 2020 18:16:08 +0200
Web foundation - XML
Article directory
XML:
1. concept:
2. syntax:
3. Parsing: operate the xml document and read the data in the document into memory
XML:
1. concept:
Extensible Markup Language
*Extensible: labels are all customized. <user> <student>
* function
*Store data
1. Profile
2. ...
Added by jawinn on Thu, 23 Jan 2020 16:54:38 +0200