A simple way to realize Android bottom navigation RadioGroup+Fragment

Please indicate: https://mp.csdn.net/mdeditor/82504849 Bottom navigation bar radiogroup + fragemt 1. First, create a new selector file in drawable, right-click new - > drawable resource file in drawable, and create a text color selector [u text] and four other picture selectors [u home] drawable, selector [u phone] drawab ...

Added by kanika on Wed, 01 Jan 2020 08:11:53 +0200

Android Development - Android Studio - front end introduction picture

Android Development - Android Studio - front end introduction picture 1. Create a new Activity named ImageViewActivity 2. Set the button in activity main.xml to 3. Declare ImageViewActivity in MainActivity and set click event. package com.example.ayb.helloworld; import android.content.Intent; import android.support.v7. ...

Added by Crazy Horse on Tue, 31 Dec 2019 18:06:26 +0200

Android uses MVP mode (I)

I studied MVP before, but it didn't work for a long time. Today I watched it again. In fact, MVP is the upgraded version of MVC. MVP includes M-Model-model, V-View-view and C-Controller-controller. Make a simple example, simple login. First, create a new project and create a layout. <?xml version="1.0" encoding="utf-8"?&gt ...

Added by Stickdragon on Tue, 31 Dec 2019 06:19:49 +0200

C# LINQ Learning Notes 5: LINQ to XML

Extract this note from: https://www.cnblogs.com/yaozhenfa/p/CSharp_Linq_For_Xml.html And record the learning process for future reference. 1. Generating xml 1.1 Create simple xml /// <summary> /// CreateXml class /// </summary> public class CreateXml { /// <summary> /// Return xml File Path ...

Added by andrewgk on Sat, 28 Dec 2019 12:06:02 +0200

Super easy to parse JSON package GJSON with Golang

Basic overview People who have used dynamic languages believe that it is very easy to parse JSON. You only need a few lines of code to get the parsed JSON object. For example, Python parses JSON as follows result = {"name": "Bob", "age": 18} print(result["name"]) // "Bob" The simple data structure in Golang language can use map[string] ...

Added by youropensource on Fri, 27 Dec 2019 10:58:09 +0200

Pit of format when inserting data in pymysql

Into the pit Today, when inserting data into mysql, I accidentally used format and found a small pit Let's look at a piece of code: My data: 72 232 2022/11/01 231 233 2022/01/01 231 234 2022/12/01 Database: +---------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | ...

Added by kev wood on Tue, 24 Dec 2019 21:02:05 +0200

The way of springboot for beginners, integrating log4j2 logs

0. Preface Log recording is essential to the system. The commonly used log components in spring boot include log4j, logback and log4j2. Logback is the default of spring boot and has been brought by itself. You can choose log4j2, and others don't need to pay attention; 1, Integrated log4j2 log component 1. Remove the default logback log frame ...

Added by PerfecTiion on Thu, 19 Dec 2019 20:47:41 +0200

UI experience -- Material Design practice (2)

Catalog I. FloatingActionButton II. Snackbar III. CoordinatorLayout IV. CardView I. FloatingActionButton 1, effect For example, the button in the lower right corner: 2, use <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" ...

Added by scarface222 on Sun, 15 Dec 2019 21:59:27 +0200

[C Chen] 201801013 operation of documents

1. The reading and writing of stream based text files is relatively simple for C ා. Generally speaking, the following five basic steps are required: Create a file stream -- FileStream Create reader or writer - StreamReader/StreamWriter Perform read or write operations Close reader or writer Close file stream 2. BinaryReader an ...

Added by BinaryBird on Sun, 15 Dec 2019 19:30:03 +0200

About uploading pictures in HTML

About uploading pictures in HTML It is worth noting that when a form contains this upload element, the enctype of the form must be specified as multipart / form data, and the method must be specified as post, so that the browser can recognize and correctly execute it. But there is another point, the browser only allows users t ...

Added by Pedro Sim on Sat, 14 Dec 2019 20:07:15 +0200