Android Drawing - 01 Basic Use of Canvas and Paint

Paint and Canvas Paint Sets Fill Style Text Adding Shadows Set background color for Canvas Draw a straight line Draw points Draw rectangle Fillet rectangle circular Ellipse arc Two Path and DrawTetx Exercises Path straight line Path rectangle Path rounded rectangle Other Path Graphics Paint Settings for Text Properties canvas Drawing ...

Posted by rayfinkel2 on Wed, 27 Mar 2019 05:48:29 -0700

React - Picture Input Box - Mobile Web Page _018

React-Picture Input Box-Mobile Web Page gitHub Address Feels Valuable for Reference https://github.com/xiaopingzh... directory structure . ├── README.md ├── dist │ ├── bundle.js │ └── index.html ├── package.json ├── src │ ├── components │ │ ├── ErrorPage │ │ │ ├── ErrorPage.css │ │ │ └── ErrorPage.js │ │ ├── Notice │ ...

Posted by sheraz on Tue, 26 Mar 2019 23:27:29 -0700

Custom view: Category selection function similar to today's headlines

It's a long time since the last article. In fact, I wrote some interesting view s in the middle. But because I'm too lazy to put them on, the new year 2017 started. The company's project is not tense, so I will fill in some articles when I am free. I usually prefer to brush headlines, see the headlines above many categories, in the category s ...

Posted by minorgod on Tue, 26 Mar 2019 23:12:30 -0700

An Efficient Xml Parsing Method for android-pull

As we know, parsing XML is also widely used in various platforms, as is android. It often involves parsing and reading of XML. There are three main parsing methods: SAX parser, DOM parser and PULL parser. SAX parser: The core of SAX parser is event processing mode. It mainly works around event source and event processor. ContentHandler is an ...

Posted by Okami on Tue, 26 Mar 2019 12:51:29 -0700

One-way list inversion

The inversion of one-way list is an interview question with very high frequency. I once suffered a loss on this question, but it doesn't matter. Let's study it. First of all, the one-way characteristics of linked list: 1. Only forward can a node be found. 2. The next node address of the last node (which we usually call the next pointer) is n ...

Posted by baranwalpk on Tue, 26 Mar 2019 12:12:29 -0700

Practice of Android Custom Implementation of Rotary Graph

I. principle ViewPager is a relatively high-frequency view component used in Android and handles events in the sliding process, so it is very suitable for the rotation chart. There are many ways to implement the round-robin graph. Horizontal View or RecylerView can also be used, but fling operations need to be handled. Here we use ViewPager to ...

Posted by DeGauss on Tue, 26 Mar 2019 03:09:32 -0700

The Way to Advance Android - File Storage in Four Storage Ways

When it comes to storage in Android, you should all think of file storage in mobile phones, sd cards. Storage, sp storage and data storage, which I have written before, but the editors were messy and inconvenient, so now I rewrite the four storage methods and explain them. This book is about the storage and reading of files, less gossip, Code ...

Posted by JoCitizen on Mon, 25 Mar 2019 22:48:28 -0700

Visit Classification Statistics (QQ, Weixin, Weibo, Web Page, Website APP, Others)

Just ready to hit the keyboard, suddenly remembered today has been Friday, a little excitement, a week and so happy end, can rest, and so on. I seem to be writing a Java blog, how did it become a diary, well, back to the point. I don't know if you have ever met such a demand: statistics of article browsing and analysis of the details, namely QQ ...

Posted by wih on Mon, 25 Mar 2019 19:54:29 -0700

Flexible Layout Exercise, Imitate Mobile Phone Taobao Home Page

After reading God's flex tutorial, I decided to write a fake hand to have fun! I'm sure I can finish it by dividing three into five and dividing two. Yes! You're right! ~ ~ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . As a result, I haven't slept in the ...

Posted by JeditL on Mon, 25 Mar 2019 16:00:29 -0700

Index and query optimization of MongoDB

M The indexing mechanism of ongoDB is basically similar to that of ordinary databases, mainly in the following parts: Single field index By default, MongoDB creates a single field index of the _id field for all collections, which is unique and cannot be deleted (_id is the primary key of the collection) Index creation method: db.custo ...

Posted by mishasoni on Mon, 25 Mar 2019 06:24:28 -0700