Tag:layout

  • Detailed Android layout loading process source code

    Time:2021-12-30

    I Let’s first look at the layout level and look at these pictures We will find that the contents of the package in decorview may vary with different situations, butThe hierarchical relationships before Decor are fixed。 That is, activity wraps phonewindow and phonewindow wraps decorview. Next, let’s first look at how the three are created. […]

  • Uiview control

    Time:2021-12-30

    Uiview is a view display, which is mainly used for user interaction. It is responsible for rendering the content of the area and responding to touch events in the area. It is not difficult to see from the figure in the previous article that uiview inherits from uiresponder, and most controls in IOS inherit from […]

  • Uistackview linear document flow layout

    Time:2021-12-26

    overview Uistackview provides automatic layout and automatic scaling features for single row or single column. The feature provided by uiscrllview is that the contentsize is greater than frame Size can slide. In theory, the linear document flow layout can be realized by combining the two characteristics, and the layout is arranged from top to bottom. […]

  • Flutter sharing: flutter Basics

    Time:2021-12-25

    Flutter brief introduction Flutter is a framework released by Google for creating cross platform high-performance mobile applications. The rendering of flutter UI interface is based on Skia 2d rendering engine. Sky released at dart developer summit in 2015 is the predecessor of flutter, which can run applications with refresh rates of up to 120 frames […]

  • ViewModel+LiveData+DataBinding

    Time:2021-12-24

    ViewModel + livedata + databindingAfter clicking the button, the value is added by 1 and displayed on the screen 1. Create ViewModel There is a mainactivity in the project Java classCreate a mainviewmodel that inherits from ViewModel import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; public class MainViewModel extends ViewModel { //Livedata maintains an integer number number private MutableLiveData<Integer> […]

  • Getting started with IOS swiftui

    Time:2021-12-17

    At present, swiftui supports ios13 at least. Apple is still upgrading and improving. It is not mature at present, because widgets must be laid out with swiftui, so it is lucky to apply swiftui to the project. When I wrote the demo of swiftui, I felt it was so simple EZ, but there were all […]

  • CSS realizes the three column layout in the middle of the bottom of the head

    Time:2021-12-16

    realization 1. Flex layout Flex flexible layout is more flexible to realize various forms of layout. At present, it is widely used in mobile terminal and PC terminal, which is not supported by ie+ 1.1 html <div class=”content”> <div class=”header”>Header</div> <div class=”main”> <div class=”left”>Left</div> <div class=”center”>Center</div> <div class=”right”>Right</div> </div> <div class=”footer”>Footer</div> </div> 1.2 css .content […]

  • IOS uicollectionview slides horizontally and loads data horizontally

    Time:2021-12-15

    preface Recently, when making a tab selection page, I encountered such a demand that 8 tabs are displayed on one page, and more than one page is displayed when it exceeds. At first, I used uicollectionview confidently and adjusted itscrollDirectionbyUICollectionViewScrollDirectionHorizontalIt is found that the requirements are basically met. However, when the number of labels is […]

  • Layout of CSS Foundation

    Time:2021-12-15

    CSS layout: float, position, flex, transform, grid,:: After:: before Let’s talk about BFC first Block Formatting Contexts BFC is an independent layout environment, in which the element layout is not affected by the outside world. It is regarded as an isolated independent container. The elements in the container will not affect the outside elements in […]

  • Using flex to solve the problem of input positioning

    Time:2021-12-13

    Use a simple layout to solve the problem of input in the input box using fixed Recently, I found that when the input box is at the bottom and used in the H5 chat application on the mobile terminalposition:fixedProperty will be incompatible in Apple phones The general layout is that the list at the top […]

  • Deeply analyze auto layout and analyze the new features of IOS versions

    Time:2021-12-7

    Many AutoLayout related knowledge has been mentioned in a previous masonry experience article. In this article, I will analyze and sort out the key points in more detail. origin It is generally believed that auto layout was developed by Apple itself, but it is not. As early as 1997, Alan borning, Kim Marriott, Peter Stuckey […]

  • How does Android window determine the reason why / onmeasure() is executed multiple times

    Time:2021-12-6

    Change the article to reprint source:Author: fishforestLink:https://www.jianshu.com/p/6e45f42da304Source: developeppaperThe copyright belongs to the author. For commercial reprint, please contact the author for authorization, and for non-commercial reprint, please indicate the source. preface The view measure process was systematically analyzed previously: Measure process of Android custom viewWe know that the parent layout generates the measurement mode and […]