Android uses ViewPager to implement APP's guide page and dot

The display effect on the simulator is as follows: The general idea and code are as follows: 1. First, create a layout file, <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_widt ...

Posted by bhawap on Fri, 10 Jan 2020 16:12:17 +0100

Alipay switch

First look at the style of Alipay switch.       Without saying much, we start to analyze and achieve this effect, as shown in the figure above: 1: Draw the layout when it is not selected item_lout_select_button Effect: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.andr ...

Posted by Pro.Luv on Wed, 08 Jan 2020 17:24:27 +0100

java integrated pageoffice to open word file online, and set bookmark text color and background color with js

1, Core code 1: First you need to navigate to the location of the bookmark 2: To set the text color and background color of bookmark, vba macro is needed. 2, Specific implementation process 1. Download the integration file, introduce the jar package and configure the web.xml on the official website http://www.zhuzhengsoft.com/dowm/ G ...

Posted by renj0806 on Wed, 08 Jan 2020 05:49:50 +0100

Implementation of MyBatis Association: One-to-One

There are two entities: user and membership card. A user can only process one membership card, that is, one-to-one.     user_tb: The primary key card_no of card_tb is introduced as the foreign key.     card_tb:         Mode 1: Use extension classes to implement one-to-one (1) Create a new User class under the pojo package: package com.chy.p ...

Posted by davestewart on Tue, 07 Jan 2020 18:25:11 +0100

Three ways to parse xml

The first native parsing method DOM When parsing XML documents, the parser will write the contents of the documents into memory. If the document nodes are added, deleted or modified, they must be used Transformer transformer = TransformerFactory.newInstance().newTransformer(); transformer.transform(new DOMSource(doc), new Str ...

Posted by khan kaka on Tue, 07 Jan 2020 06:45:03 +0100

Implementation of android keyword special color display

In the process of our development, we often encounter several words in the middle of a paragraph of text that need to be displayed in special colors or sizes. There are many new developments that don't have a clue. Let me introduce several commonly used implementation methods, first of all, the renderings: 1, Multi TextView ...

Posted by defect on Tue, 07 Jan 2020 04:57:18 +0100

Transfer of values between Activity and Activity,Activity and Fragment,Fragment and Fragment

1, Value passing between Activity and Activity First create two activities, one is MainActivity and the other is SecondActivity Then add a Button in activity main.xml, the code is as follows: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app ...

Posted by TheHyipSite on Mon, 06 Jan 2020 07:35:23 +0100

The separation of reading and writing in mycat

mycat mainly provides a specific configuration of database segmentation. In this article, we will not do in-depth analysis, let the program run first! MYCAT official website: http://www.mycat.io/ ා don't be afraid of Chinese 1 > environment: CentOS operating system mysql5.6 Master database host: 192.168.0.1 Slave a host: 192.168.0 ...

Posted by biocyberman on Sun, 05 Jan 2020 22:05:19 +0100

android adds a triangle icon in the upper right corner and displays text inside the icon

The new module of item 1 has an icon on the right which is displayed in the upper right corner, as shown in the figure After thinking about how to use shape to draw a background, put it in the upper right corner, draw out the words as if there is a problem in putting them on the display, google it and find a piece of informati ...

Posted by incarnate on Sun, 05 Jan 2020 19:02:44 +0100

Android layout manager - use FrameLayout to display stacked squares and foreground photos

scene Android layout manager - use LinearLayout to realize simple login window layout: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103838995 Frame layout manager FrameLayout     Realization effect       Note: Blog: https://blog.csdn.net/badao_liumang_qizhi Pay attention to the public address Domineering procedural ape Get progr ...

Posted by WDPEjoe on Sun, 05 Jan 2020 18:48:37 +0100