include tag of android UI optimization

It is used to reuse layout and reduce code redundancy. It is simple to use, as follows: Included layout Title bar.xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/inner_id" android:layout_width="match_parent" ...

Posted by dgreenhouse on Thu, 30 Apr 2020 21:06:29 -0700

Scan annotator in Spring

Scan annotator in Spring 1. Configure xml file The code is as follows: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLo ...

Posted by SecureMind on Thu, 30 Apr 2020 21:05:38 -0700

Using upnp to configure router port mapping under ubuntu

Using the command line tool MiniUPnP client Installation method: Download the source code here and compile it as follows: make sudo checkinstall This way, you can uninstall it later. usage method: Usage : upnpc [options] -a ip port external_port protocol [duration] Add port redirection upnpc [ ...

Posted by phpeanuts on Thu, 30 Apr 2020 19:39:27 -0700

Cross domain request processing of vue proxyTable interface

1. Foreword When using vue to develop mobile app and using http to request interface data, cross domain request of vue proxyTable interface appears 2. The vue http request code is as follows: this.$http.post(this.URL + '/mobile/base/getBaseInfo.do',{type:1}) .then(function (res) { alert(res.data.name) }) .catch(function (er ...

Posted by fighter1430 on Thu, 30 Apr 2020 18:21:42 -0700

javaEE note administrator login

index.jsp in the web Directory: <%-- Created by IntelliJ IDEA. User: Administrator Date: 2017/12/25/025 Time: 20:40 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>$Tit ...

Posted by shadow_blade47 on Thu, 30 Apr 2020 16:17:20 -0700

Fresco basic use

Edit the build.gradle file: dependencies { // Other dependencies compile 'com.facebook.fresco:fresco:0.12.0' } network right <uses-permission android:name="android.permission.INTERNET" /> The following dependencies need to be added as required: dependencies { // When the machine on API < 14 support ...

Posted by vitalyb on Thu, 30 Apr 2020 15:05:32 -0700

Android -- use activity alias to avoid short cut re creation

<activity android:name=".ui.MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> <meta-data android:name="android.app ...

Posted by teo99 on Thu, 30 Apr 2020 13:52:31 -0700

Realize night mode, no need to recreate, no flash screen

Through resource id mapping, callback to customize ThemeChangeListener interface to handle day / night mode switching. Under values, in colors.xml <?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#3F51B5</color> <color name="colorPrimary_night">#3b3b ...

Posted by MyWebAlias on Thu, 30 Apr 2020 13:29:09 -0700

Use of Android BottomNavigationView

Google's officially updated Support25.0.0 includes the bottom Navigation view, which is the bottom navigation bar component, as shown in the following figure: Let's take a look at how to use this component Upgrade Support package Upgrade the Support package to 25.0.0 and add a reference to build.gradle dependencies { co ...

Posted by nitram on Thu, 30 Apr 2020 12:34:00 -0700

Set up the ssm framework to realize login, data display, addition, deletion, modification and query

Requirements: Use ssm (spring spring MVC mybatis) for integration in the background Using bootstrap framework in the foreground Using Ajax to send between front and back Table structure:   After login, all user information will be displayed, and each can be added, deleted, modified and checked The user name and user PWD of this table are also u ...

Posted by esmarts on Thu, 30 Apr 2020 11:55:03 -0700