• Studio development security game attribute description


    . attribute values are specific pixel values, such as 30dp, 40px, 50sp android:layout_ Width defines the width of this element android:layout_ Height defines the height of this element android:layout_ Margin the distance between this element and the top, bottom, left and right   android:layout_ The distance from the marginbottom to the bottom edge of an […]

  • Ecarts histogram assembly package 2


    Ecarts histogram assembly package 2 1. Development environment Vue + echarts2. Computer system Windows 10 professional edition3. In the process of developing with Vue + ecarts, we often draw histogram. The following is my encapsulation of ecarts histogram components. I hope it will be helpful to you.4. Add the following code to the template: <template> […]

  • Echart sets the spacing between columns


    Echart sets the spacing between columns 1. Development environment Vue + echarts2. Computer system Windows 10 professional edition3. In the development process of using Vue + eckarts, we always use the histogram. Let me share how to modify the spacing between columns in the histogram, hoping to be helpful to you.4. For official cases, the […]

  • Bootstrap Learning Grid System


    1. Implementation principle The implementation principle of the grid system is very simple. It just makes a powerful responsive grid system by defining the container size, bisecting 12 copies (there are also 24 or 32 copies, but 12 copies are the most common), adjusting the internal and external margins, and finally combining media query. The […]

  • Flutter GridView Jiugong grid


    I have collected some learning materials, including a lot of learning, interview, middle and high-level fluuter materials, and a lot of video explanations. If any students want to know more, please see the end of the article for details. We also welcome all the great gods to install X. one   introduction GridView is one […]

  • What is the box model?


    What is the box model In page layout, the layout model adopted by Dom elements is the box model in the popular sense. <!doctype html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0″> <meta http-equiv=”X-UA-Compatible” content=”ie=edge”> <title>Document</title> <style> .box{ width: 100px; height: 30px; margin: 10px; padding: 20px; border: 5px solid chocolate; […]

  • Dagger navigation has never been so simple | Android studio 4.1


    In projects that use dagger, are you confused about finding out Dagger’s dependencies? Does the dependency come from a constructor modified by @ inject, @ bindings, or a method modified by @ provides? Is it finite? It’s not easy to find out. Can’t you get relevant information or even more with one click? Certainly. Android […]

  • Less — common layout


    flex .flex-container { display: flex; &.flex-align-center { align-items: center; } } .flex-item { flex: 1; } // .flex-shrink { // position: relative; // flex-shrink: 1; // -ms-flex-negative: 1; // -webkit-flex-shrink: 1; // -ms-flex: 0 1 auto; // flex: 0 1 auto; // } @col: 6; .mixin-loop (@i) when (@i > 0) { &[email protected]{i} { flex: […]

  • Free hand series, to a different Tanabata photo wall to send girlfriend


    Yes, I’m here again. After all, today’s Tanabata: May lovers get married in the world Do not want to evoke Acacia, dare not go out to see the moon. But when the moon comes into the window, I miss you all night. I turn off the moon, you’re even brighter. Last address: Demo address:http://alterem.gitee.io/ddvs/ Code […]

  • Calculation example of content spacing and height set by IOS uilabel


    preface Uilabel is used very frequently. When there are many words, it will appear dense, which is not conducive to UI display and user viewing. Usually, we need to adjust the “line spacing” or “text spacing” in the label to make the text less compact and improve the user experience. After adjusting the “line spacing” […]

  • Using native JS to write multiplication table


    Step idea: 1. Use for loop to print 99 multiplication table2. 9 rows and 9 columns, double for, empty string, escape character spacing tab, newline3. Variable storage — number, row, column Show one function getForm() { var num = ”; for (var rows = 1; rows <= 9; rows++) { for (var cols = 1; […]

  • Uicollectionviewcell “left display”


    1、 Preparation 1.UICollectionView Left Aligned Layout A uicollectionview left display constraintClick download_ UICollectionView Left Aligned Layout 2、 Project catalogue 3、 Custom uicollectionviewcell Collectionviewcell. H creates the uilabel property to pass values #import <UIKit/UIKit.h> @interface CollectionViewCell : UICollectionViewCell @property (nonatomic, strong) UILabel *titleLB;; @end Collectionviewcell. M creates a display text view Here, the text size of […]