Tag:radius

  • Android layout shadow implementation

    Time:2020-2-29

    Recently, the project requires that the UI has a lot of design requirements about shadow. Some implementation methods have been found on the Internet, but they are not very ideal. Now that I’m free, I’m thinking about writing a shadow layout to play with for later use. Let’s start with a few shadow realizations I […]

  • Canvas gesture unlocking source code

    Time:2020-2-22

    Drawing first demo.html Gesture unlock <span style=”background-color: #f5f5f5; color: #800000;”> body</span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”> text-align</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”> center</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span><span style=”background-color: #f5f5f5; color: #ff0000;”> background</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”> #305066</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span> <span style=”background-color: #f5f5f5; color: […]

  • Uiview set shadow

    Time:2020-2-9

      UI designers sometimes want our products to be cool. Shadow is one of their favorite effects.   How to set the shadow?   1. Set a shadow with the same four sides UIImageView *testImgView = [[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 200, 100)]; [testImgView setBackgroundColor:[UIColor yellowColor]]; //Shadow color testImgView.layer.shadowColor = [UIColor blackColor].CGColor; //Shadow offset, default (0, – […]

  • Teigha.net entity attribute comment

    Time:2020-1-29

    Polyline3d: The type of 3D polyline is stored by the polytype attribute, It is an integer value defined by the poly3dtype enumeration. Polytype property is an approximate method of drawing 3D polyline Polyline3d polyline = new Polyline3d(Poly3dType.SimplePoly, p3dc, false); Closed or not: polyline.Closed = false;   The polytype property can be used to set and […]

  • How much do you know about border radius?

    Time:2019-12-29

    Before the appearance of the CSS3 property border radius, we must draw a circle on the page with the help of pictures. After the border radius property, it is very easy for us to realize a circle on the page. Next, let’s study this border radius carefully to see what kind of black magic does […]

  • Three Ways of JS Function

    Time:2019-9-25

    Functions, a block of code that can automatically complete some functions, the emergence of functions, not only to solve the need for reuse of reusable functions, but also to avoid code bulkiness. There are two requirements for using a function: it must be called before it can be executed; the function name should not be […]