ObjectiveThis is a translation, the original address of the resources every Android developer must know, at the beginning of the translation, recommended two articles also suitable for Android developers to read the resource List Android developer
A recent project, the customer asked to slide to the last page after the Viewpager implementation of the main page, continue to swipe to return to the first page, that is, to achieve infinite loop scrolling, the effect is as follows:Look at the next
First, how to control the Android led and so on? (Set some parameters for Notificationmanager) The code is as follows:int id_led=19871103; Notificationmanager nm=(Notificationmanager) Getsystemservice (notification_service); new// Here is the
Android.os.NetworkOnMainThreadExceptionOnline search after know because of the version of the problem, after 4.0 in the main thread inside the HTTP request will be reported this error, perhaps is afraid of HTTP request time too long cause the
ALT + ENTER import package, auto fixCTRL + N Find classCtrl+shift+n Finding filesCtrl+alt+l Formatting CodeCtrl+alt+o Optimizing imported classes and PackagesAlt+insert generate code (such as Get,set method, constructor, etc.)Ctrl+e or Alt+shift+c
Use the following methods:-(void) Viewwillappear: (BOOL) animated {[Super viewwillappear:animated];[ Self.navigationcontroller Setnavigationbarhidden:yes];}Restore when exiting the controller:-(void) Viewwilldisappear: (BOOL) animated {[Super
One of the biggest features of Android is the use of XML files to configure, this exercise of Java features. So, understand the Android program and need to understand the XML file.We write programs that need to focus on androidmanifest.xml, and the
First HTML file contentIndex.htmlHtml>Body>DivId= "Content"Contenteditable= "false"Style= "Font-family:helvetica"> a href= "Id:abc" Style= "Text-decoration:none; Color:green "> John a>: this was out Rich Text Editing View div >body>html> Loading
When the Android application is running, a main thread is created (also known as the UI thread), which is primarily responsible for handling UI-related events, and because Android uses the UI single-threaded model, the UI elements can only be
It was a manual layout of the PowerDesigner line.Found dragging the irrelevant graph on the right, it becameWorkaround: Use shift and left mouse button to select all the lines you need to protect, click Symbol/hide Symbols on the menu bar. After you
is mostly used by play. Example: android:name="Android.hardware.touchscreen" android:required = "true" /> If the device does not have this touchscreen hardware, Play will not install the app on this device. False will still be installed. Android
WebKit the structure into layers when the page is drawn, and when the layer is large enough it becomes a large tiled layer. In this way, WebKit does not need to render the entire page each time the page structure changes, but renders the
The previous period of time just contact with the development of Android mobile phone, its event propagation mechanism is not very understanding, although the Internet also looked up the relevant information, but always feel vaguely understood,
Recently found some information about the communication between Android threads, organized and learned a bit, and made a simple example.Andriod provides Handler and Looper to meet the communication between threads. For example, a sub-thread
Product additions and deletions part of the interface display
I'll take the theory and code to separate the way to write, in the code with comments to illustrate the steps
The main technology of the design
1. Calculation of
A description of the problemToday to do a demand, the background to obtain multiple object information, if an object is nil, it will not be displayed, when there are multiple return objects to fit, the interface can not accommodate all the elements,
I. OverviewFragment (fragments, fragments) were introduced after Android 3.0, the main purpose is to achieve more dynamic and more flexible UI design on large-screen devices.this is because the tablet screen is much larger than the phone, so more
Original: http://blog.csdn.net/afyzgh/article/details/16965107The original text directly copied, there will be small errors, the original version of Java verification, There is need to take the original spice.The following are the Xcode arc tests
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