Redis version of cloud database

. net client Test code example: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ServiceStack.Redis; namespace ServiceStack.Redis.Tests { class Program { public static void RedisClientTest() ...

Posted by leatherback on Tue, 16 Apr 2019 00:57:34 -0700

view related content code snippet notes

Get the control in fragment in activity  getFragmentManager().findFragmentById(id).getView().findViewById(id) HolderView item view processing @Override public View getView(int i, View convertView, ViewGroup viewGroup) { HolderView holderView; // Important to not just null check, but rather to a instanceof // since we might g ...

Posted by lhale on Mon, 15 Apr 2019 18:06:33 -0700

How to Use ClipDrawable to Realize ImageView Picture Switching Animation

With Paint Drawable, this article is the fourth blog of Drawable. ClipDrawable has a very practical method, which is setLevel (), through which you can set the part size of drawable display. If you set it to 0, it will not display at all. Setting it to 10000 is the full display. Does it feel a little like ProgressBar? In fact, you can use it t ...

Posted by blyz on Mon, 15 Apr 2019 17:30:32 -0700

About Toast--Experience Different Fancy Toast

If one day, the whimsical PM wants you to achieve this prompting effect? Users click on the button --- a prompt message pops up, similar to the GIF effect shown above, how can we achieve it? Of course, there are many ways, such as PopupWindow, or animation. In fact, there is another way we use most - Toast can also achieve this way, and it ...

Posted by e1seix on Mon, 15 Apr 2019 15:42:32 -0700

Simple Use of PictureDrawable

This is the fifth blog about Drawable, Picture Drawable, I feel that if you are not doing Internet development or more sensitive to data traffic, you should generally not use it (I'm nonsense, anyway, I don't do Internet development, I would not use this kind of blog myself if it wasn't for writing this blog). Don't talk too much nonsense, ju ...

Posted by cvjacques on Mon, 15 Apr 2019 12:54:32 -0700

Three Ways for Android to Implement Custom View

About Android's customized View, I will summarize them into three types, namely self-drawing components, composite controls, inheritance controls. Next, I will give you a concrete analysis of the implementation process of these three kinds of customized View with examples. (1) Self-drawing components I personally understand that this is reall ...

Posted by zoidberg on Mon, 15 Apr 2019 09:57:32 -0700

Android Database Framework - LitePal Learning Notes

Android Database Framework - LitePal Learning Notes Sketch LitePal is Guo Shen's masterpiece in 2014. Three years later, there was an update on github, so I came to study it, but it was very useful. Here I take notes. LitePal is an open source Android database framework. It uses the object relational mapping (ORM) model and encapsulates so ...

Posted by richrock on Sun, 14 Apr 2019 21:06:32 -0700

flask source parsing: session

This is one of the articles in the flask Source Parsing series, a list of all articles in this series: flask Source Parsing: Brief Introduction flask source code parsing: application startup process flask source parsing: routing flask source parsing: context flask source parsing: request flask source parsing: response flask source parsing: ses ...

Posted by doofystyle on Sat, 13 Apr 2019 23:21:32 -0700

python practices a simple crawler every day~

Goal: Climbing Articles Reading Network (Youth | Campus) to Read Novels Attached website: http://xs.duwenzhang.com/list1/ The compiler used: pycharm python3.0 Attach the code: import os import re import urllib.request from bs4 import BeautifulSoup # Objective: To save all the youth campus novels on the novel website to lo ...

Posted by squalls_dreams on Sat, 13 Apr 2019 22:06:33 -0700

ViewPager usage under Android

First, let us have a global understanding, direct to the last project, to see that only through these lines of code, can we complete such a powerful function. In the next part, I will combine API to explain why I write this way carefully. Design sketch: The sliding between three view s is realized. The first VIEW slides to the second ...

Posted by vipes on Sat, 13 Apr 2019 13:24:33 -0700