Android critical instance (6) use of toolbar menu items

Selection of menu bar symbols There are many menu symbols in Android studio. Select drawable You can choose any symbol you want code implementation public class CrimeListFragment extends Fragment { public static final String SUBTITLE = "subtitle"; private RecyclerView mRecyclerView; private CrimeAdpater mCr ...

Posted by bsfischer on Tue, 21 Jan 2020 08:51:04 -0800

ADO.NET basic summary and example introduction

1, When it comes to ADO.NET, it is often confused with ASP.NET. There is a big difference between the two. There is no comparability. Here are the differences between the two before: **ADO.NET is a set of object-oriented class libraries used to interact with data sources (databases). * * 1. ASP.NET is ...

Posted by feest on Tue, 21 Jan 2020 06:13:06 -0800

Custom ViewGroup - implement custom ViewPager

ViewGroup and View 1. View Group is a container that can hold views. It is responsible for measuring the width and height of subviews or sub controls, and determining the location of subviews or sub controls. Common methods are: onMesure(): measures the width and height of a subview or child control ...

Posted by GroundZeroStudio on Tue, 21 Jan 2020 03:06:58 -0800

Filter filter interception mode

There are five intercepting methods for Filter filter. Use annotation to configure the dispatcherTypes property REQUEST: by default, resources directly requested by the browser will be blocked by the filter FORWARD: FORWARD access resources will be blocked by filters INCLUDE: contains access reso ...

Posted by mykmallett on Mon, 20 Jan 2020 22:14:04 -0800

Springboot+mybatis project - automatically create DaoMapper class and mapper.xml through database table and entity class

Recently, I practiced the springboot project, and found that the implementation of mapper.xml and DaoMapper interface class methods of mybatis framework is too arduous. Although it improves the flexibility, when there are too many tables, it is very tiring to write this part alone, so I found out how ...

Posted by ebgames56 on Mon, 20 Jan 2020 07:40:03 -0800

How to redirect to 404 in Rails?

I want to "fake" 404 pages in Rails. In PHP, I only send headers with error codes as follows: header("HTTP/1.0 404 Not Found"); How does Rails do this? #1 building The selected answer does not work in Rails 3.1 + because the error handler has been moved to middleware (see github issue ). This is a solution that I am ve ...

Posted by woobarb on Mon, 20 Jan 2020 06:07:27 -0800

Source code decryption of spring MVC startup process

As we know, spring MVC is finally deployed through Tomcat. When the application is deployed in the Servlet, the main steps are (reference from http://download.oracle.com/otn-pub/jcp/Servlet-3.0-fr-eval-oth-jspec/Servlet-3_-final-spec.pdf): When a web application is deployed into a container, the follow ...

Posted by imurkid on Mon, 20 Jan 2020 05:11:51 -0800

It took a day to fix Springboot + Mybatis

I have written the strategic logic for several months, which is a bit silly. To do database and table splitting, it took almost a day to use the simplest Mybatis in spring boot. The ability to solve macro problems has declined a lot after a long time in logic details. To use Mybatis in spring boot, you need to do the following steps: 1. use S ...

Posted by shmeeg on Mon, 20 Jan 2020 04:58:40 -0800

Android running white list in the background, elegant for life

    Survival Status We know that there will be background killing on Android systems, and with the update of system versions, there will be an increasing trend in killing processes.The system's starting point is good because it saves memory, reduces power consumption, and avoids some rogue behav ...

Posted by zgkhoo on Sat, 18 Jan 2020 17:55:45 -0800

Use of idea 5 -- create project 2

1. Create WEB project The community version does not have the function of creating a web project, so it can only create a maven web project. Here, the enterprise version of cracking is used. 1.1 creation steps File-New-Project In the pop-up window, select Java Enterprise - project SDK - Java EE ...

Posted by le007 on Sat, 18 Jan 2020 08:10:39 -0800