REM Principle and Introduction: depending on the size of the HTML root element, PX to rem dynamically adjust the root element font-Size: 1rem=16px; The font size of HTML is the font size that can be default to the browser, mobile adaptation: Way One
The implementation of the idea is relatively simple, here only to record:Directly on the code:1, implement Didselectrowatindexpath method-(void) TableView: (UITableView *) TableView Didselectrowatindexpath: (Nsindexpath *) indexpath{ [[
Problem:IONIC 3.9.2After adding Android platform to the Ionic project and then build Android, the following prompt appears:Cause of the problem:After upgrading the version, Cordova-android changed from the original Ant-based compilation mode to the
1. Adaptation conditionsTarget is below 26 and does not need to be adapted.If set target=26 and above , do not fit in 8.0, will be displayed as a circle surrounded by the logo, not good-looking.2, Android 8.0 application icon Adaptation
Use annotation development, manage struts2 containers through spring, configure files without problems, foreground path is correctError message:There is no Action mapped for namespace [/] and Action name [Foreaction_sendcode] associated with context
Android:onclick Properties: Click the button to invoke the methodTo set a counter for a basketball match, the first picture is my Java code:To determine whether a global variable (global) or local variable (local) before setting a variableA good way
Some of the following optimization scenarios are summarized1. Pre-layout2. Load cache by page3. Background thread processing picture (do not block the main thread)4. Reduce the view level, reduce frequent addsubview,removesubview with hidden instead5
/* ----------const NSString *STR1 = @ "123"--- -------| 0x123456 str---0x654321 | | 123----0x654321 | The const modifier is *STR, and *str is the value, so the const modifier is the value 123| STR---0x654221 | | Ads----0x654221 | Because
User inputCurrency Exchange functionMailbox Directory ProgramNote: The scope of the variable (global variable, local variable)Application of the Management questionnaire: Health Check can tell users how healthy they liveGlobal variables apply to
1. Fixed positioning will failProblem Description: After the parent element uses the-webkit-transform attribute, the fixed positioning of all child elements will be resolved: Put all the fixed positioning elements to the outermost level of unified
Given lists A B and, and is a anagram of. is an B anagram of means are made by A B A B Rand Omizing the order of the elements in A .We want to find a index mapping P , from A to B . A mapping P[i] = j means the i th element in A appears with at B
Kernel device driver API _ class_create, api _ class_create
Kernel device driver API _ class_create
Struct class * _ class_create (struct module * owner, const char * name, struct lock_class_key * key) is used to dynamically create the device's
Graphic set 3: CopyOnWriteArrayList,
CopyOnWriteArrayList
The first time I saw CopyOnWriteArrayList, when studying JDBC, the Driver of each database was maintained in a CopyOnWriteArrayList. To prove this, I pasted two pieces of code, the first
Tools used by the model in mvp to obtain request data, mvpmodel
Tools used by the model in mvp to obtain request data
Optional fitutil. getService (). doGet (url, map ). subscribeOn (Schedulers. io () // obtain data in the io thread. observeOn
Bundle details, bundle details
Bundle is mainly used to transmit data. The data stored by Bundle exists in the form of key-value pairs.We often use Bundle to transmit data between activities.
StorageIntent intent = new Intent (). setClassName
You need to use a Theme. AppCompat theme (or descendant) with this activity solution,
When my MainActivity inherits the ActionBarActivity or AppCompatActivity from the v7 package, if you specify the style used by the MainActivity in the style. xml
VS. NET (C #) upgrade-2.12 _ database interface: NET Framework data provider category, vs.net
. NET data provider category, such
System. Data ?? The namespace provides different ADO. NET classes.
System. Data. Common? Base classes and interfaces
Resources in the sharp shape, switching pages with gestures, listening to boot broadcasts, and sharp gestures Anti-theft homepage Construction
Page EffectCustom background image (sharp shape Resource) We can customize the shape and color of the
RecylerView implements long-pressing, dragging, and changing the position of the item, recylerviewitem
:
Steps:
1. Create a new class inheritance? ItemTouchHelper. Callback:
Class ItemDrag extends ItemTouchHelper. callback {// set the movable
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service