Basic implementation of ActionBar and ToolBar under API29

Based on Android studio to customize the top menu bar -- the basic implementation of ActionBar and ToolBar Custom ActionBar Custom ToolBar Custom ActionBar ActionBar is a window function to determine the user's location, and it can provide the user's operation and navigation module. Using Action ...

Posted by EagerWolf on Sat, 06 Jun 2020 12:30:22 +0200

MySQL library building, table building, constraints building and storage engine

1. MySQL Library and Table Building 1. Create a database Creating a database is a block area on the system disk used for data storage and management. If an administrator creates a database for users when setting permissions, it can be used directly. Otherwise, you need to create the database yourself. Grammar Format: CREATE DATABASE [IF NOT ...

Posted by Horatiu on Wed, 03 Jun 2020 18:20:45 +0200

Android uses GridView to load (weak reference) network pictures asynchronously (click to view)

Android uses GridView to load (weak reference) network pictures asynchronously (click to view) In the current Android development, more and more app s use the album function of Android. Using the album will use GridView to load pictures, but when loading a large number of pictures, there will be a black screen because the loading process is ...

Posted by VirtuosiMedia on Tue, 02 Jun 2020 17:57:27 +0200

Day 76: Scrapy analog login

by Leisure Want to crawl website data? Log in first! For most large-scale websites, the first threshold to crawl their data is to log in to the website. Now please follow my steps to learn how to simulate landing on the website. Why do I log in? There are two kinds of websites on the Internet: need to log in and don't need to log in. (this ...

Posted by sousousou on Mon, 01 Jun 2020 08:43:33 +0200

How do I use Lock? What is the difference between Lock and synchronized?

  Lock   It's like a synchronization block, java.util.concurrent.locks.Lock Is the thread synchronization mechanism. However, locks are more flexible and complex than synchronous blocks. Because lock is an interface, you need to use one of its implementations to use lock in your application. ReentrantLock is one such implementation of ...

Posted by greedyisg00d on Wed, 27 May 2020 07:09:42 +0200

UITableView to modify the font size of its own retrieval column

� UITableView can't be modified by using its own retrieval column. How to modify it? Get UITableViewIndex before HeaderView will display -(void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section { for (UIView *view in [tableView subviews]) { if ([view isKindOfClass:[NSClassFromStr ...

Posted by Roddy87 on Sat, 23 May 2020 17:14:14 +0200

Asynchronous Scheduler for Quartz3.0 Timed Task Learning

Preface There are two main differences between Quartz3 and Quartz2: 1. Quartz3 takes its resource class library apart in more detail. For example, if you want to use Quartz3 for development, you should at least reference Quartz.Quartz.Jobs,Quartz.Plugins These three class libraries. 2. Quartz3 as a whole uses asynchronous instance creation, so ...

Posted by bhavin12300 on Thu, 21 May 2020 05:00:03 +0200

Android Serial 12 - Perfect news app content area

1. Write a class here to start an activity by first loading the news_we just created in the onCreateView() methodContent_The frag layout, which is unexplained, goes on to provide a refresh() method for displaying news titles and content on the interface.As you can see, here you get the title and content control of the news by the findViewById() ...

Posted by muthuraj_mr on Wed, 20 May 2020 19:19:36 +0200

Self adhesive, thermal printing

In the process of warehousing and logistics, it is often necessary to use thermal printer or carbon tape printer to print some barcode and information and paste them on the physical object or package The best way is not to directly use thermal code to form text and output it to printer for printing But thermal code is also a special language to ...

Posted by gavinbsocom on Wed, 20 May 2020 09:43:00 +0200

Java series 012] all roads lead to Rome

Hello! Today is Saturday. Today we talk about the different methods of Singleton bean to get a new instance of prototype bean from Spring container. In the previous section, we learned about the scope of spring beans, and also learned that if the scope is not used correctly, it will cause data confusion. After we adjusted the scope of Transfer ...

Posted by tarlejh on Sun, 17 May 2020 12:25:09 +0200