Android serial 8-dynamic add fragment

1, Add fragment dynamically   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ffff00" android:orientation="vertical" > <TextView and ...

Posted by nikifi on Wed, 29 Apr 2020 22:23:08 -0700

Simple implementation of Shader for Wang Tile

When using a large area of tiled texture, it will lead to a strong sense of repetition of the map presented in the screen. We can optimize it in many ways. WangTile is one of them. The wangtile method marks each edge with a color, and splices the edges of the same color when tiling, and finally paves the entire plane. Refer to GPU Gems2, but ...

Posted by jannoy on Mon, 20 Apr 2020 10:09:16 -0700

Comparing LINUX and CORTTEX-M startup processes

1 CORTEX-M 1.1 boot program Take stm32 as an example, add an online upgrade boot program with rom address: LR_IROM1 0x08000000 0x00004000 { ; load region size_region ER_IROM1 0x08000000 0x00004000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO) } RW_IRAM1 0x20000000 0x00020000 ...

Posted by emfung on Tue, 14 Apr 2020 21:54:26 -0700

Jump between Android's activities

1. There is a little change between the jump mode mentioned here and the usual one: We can write a jump method in the class inherited by activity for other classes to use, reducing the use of redundant code package com.ayspot.apps.wuliushijie.base; import android.content.Context; import android.content.Intent; import android.os.Bundle; impo ...

Posted by khurramijaz on Tue, 14 Apr 2020 08:45:55 -0700

How to elegantly apply for Android runtime permissions

​ To reproduce this article, you need to indicate the source: WeChat public number EAWorld, violators must be prosecuted.   Preface:   Android is a privilege-separated operating system where each application has its own unique system identity.By default, no application has permission to perform any action that adversely affects other appli ...

Posted by deRusett on Mon, 13 Apr 2020 19:55:13 -0700

Class component, functional component, JSX syntax, data-driven design idea and event binding, TodoList function, etc. in React

What is JSX syntax In JSX syntax, there are two types of tags: 1. Normal html tags (lowercase initial) 2. Component label (capitalized)   Using React to write TodoList function src/TodoList.js import React,{Fragment} from 'react'; function TodoList() { return ( <Fragment> <input type="text" /> <ul> ...

Posted by joviyach on Mon, 13 Apr 2020 09:15:16 -0700

Detailed usage of the Beautifulsoup module for python Crawlers

What is beautifulsoup: Is a Python library that can extract data from HTML or XML files.It enables you to navigate, find, and modify commonly used documents through your favorite converter.(Official) beautifulsoup is a parser that parses content specifically, eliminating the hassle of writing regular expressions. Here we are using bs4: 1. Impor ...

Posted by vimukthi on Thu, 09 Apr 2020 19:51:55 -0700

Nested scrolling parent2

Article directory 1, Problems and Solutions 2, Implementation principle of NestedScrollingParent2LayoutImpl3 2.1 let's review the nested sliding mechanism. 2.2 take a look at nested Scrollview 2.3 implementation principle of nestedscrollingparent2layoutimpl3 I wrote one before Nested slide &nd ...

Posted by nloding on Wed, 08 Apr 2020 01:01:01 -0700

Deep understanding of Glide life cycle management

Author: His Aunt and AuntLinks: https://www.jianshu.com/p/317b2d6bde1b This is the first in a Glide Source Parsing series where you can learn: 1. How Glide binds Activity, Fragment life cycles. 2. How Glide monitors memory and network changes. 3. How Glide handles the life cycle of requests. 1.0 Life Cycle Related UML Class Diagram 2.0 Lifec ...

Posted by Karlos2394 on Sun, 05 Apr 2020 12:16:58 -0700

On equals and HashCode

In actual work or interview, you will always encounter the following Java Fundamentals: [x] equals method [x] hashCode method [] interfaces and abstract classes equals method Agreements or guidelines used by equals: Reflexivity x.equals(x) = true Symmetry x.eqlas(y) = y.equals(x) Transitivity x.eqlas (y): tru ...

Posted by sdm on Fri, 03 Apr 2020 15:58:25 -0700