Simple usage of Android scroroller1. Knowledge Point
Before understanding the Scorller class, you should first know the differences between View ScrollTo (int x, int y)/ScrollBy (int x, int y) and View coordinates, what is the layout coordinate.
Reduce the number of XML files and xml files
In android development, there are usually a large number of xml files for beautiful ui applications. For example, we need to add a selector to a Button. if the background is not an image, we need to write
Automatic Identification of serial registry and serial Registry
Automatic Identification of Windows serial port registry:
How to open the Windows registry:
Enter "regedit" at run to open the Registry
Struct UartInfo {DWORD UartNum; char UartName [2
Android custom widget _ custom widget and android custom widget
Controls: Self-painted controls, composite controls, and inherited controlsHow does one customize the View in each mode?
1. Self-painted controls
Inherit the view, override the onDraw
Android code check tool SonarQube and androidsonarqube
The code check tool can help us check some hidden bugs. The sonar in the code check tool is better. Official Website
Sonar Overview
Sonar is an open platform for code quality management. With
How to share images and text in ACTION_SEND for android Development,
I want to use ACTION_SEND to share images and text. I run the following code. Currently, I can only share images and text. How can I share them?
private Uri imageUri;
Add a red number (python) to the upper-right corner of the image ),Add a red number (python) by Wu xueying to the upper right corner of the imageFrom PILimport Image, ImageDraw, ImageFontDef addNum (filePath ):Img = Image. open (filePath)Size = img.
Article 2: Android Supersu blocking permission request notification SuReceiver broadcast, supersusureceiver
We want to customize Supersu to filter out our own applications without displaying permission reminders. Let's take a look at this su call
Android obtains the available storage space and android space.
/*** Get the valid available space in byte * @ param path * @ return */@ SuppressLint ("NewApi") private long getAvailableBytesByPath (String path) {long size = 0; mStatFs. restat (path)
[Post-Reading] I THINK ABOUT socketvoip, "the socket voip backend is rejected by Apple for long connection ".
[Post-Reading] I think about "Apple rejects socket voip background persistence"
Beautiful Life of the sun and fire god
Mui development considerations and mui considerations
Mui is a high-performance HTML5 development framework. From the UI to the efficiency, they all strive to pursue native experience. This framework has some rules and is not familiar to those who
Listview attribute usage, listview attribute
I recently studied the problem of listview interaction. Alas, it's disgusting. After two days, the problem is that the two listview cannot select the same item at the same time and use event distribution,
Development and use of iOS development widgets (I), ioswidgetAfter the release of iOS8, Apple officially released the notification center that third-party software development can be integrated into mobile phones. This is undoubtedly a new thing for
Android adds events to buttons in three ways
There are generally three methods for adding events to buttons in Android. Here we will summarize, of course, this is completely the basic content of java.
1. Internal class:
?
Code snippet, double-click
Material Deisgn color palette, materialdeisgn
Link: http://stormzhang.com/design/2014/12/26/material-design-palette/
Material Design has been around for a while. As Android Developers, they want to adapt themselves to a set of Material Design, but
Methods In AppDelegate, and AppDelegate MethodsMethod OverviewdidFinishLaunchingWithOptions:(NSDictionary *)launchOptionsIt is called only when the application is started. The launchOptions below contains parameters when the application is started
Xcode6 tips-create Snippets code reuse, xcode6snippets
Original Blog, reprinted, please indicate the source
Http://blog.csdn.net/hello_hwc
The advantage of Snippets is to create your own "common libraries". Do you still remember that XCode
Company Android project specifications and Android project specifications
1: project code directory structure:
Here is the package structure of the entire project. The reason for confidentiality is not covered here.
2: naming rules:
2.1 naming
Chapter 1 to do this, you must first use the Android SDK (5) and androidsdk1.5 UI layout analysis tool-View tool (Hierarchy Viewer)
There are many useful tools in the Android SDK toolkit that can help programmers develop and test Android
5. Create controls and typographical controls for ios code, and 5. typeset controls for ios
1. UIView
The control added to the View is x, and y is calculated from the upper left corner of the View.
2. UIButton
UIButton contains UIlable and
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