Android development self-study note (Android Studio)-4. Simple Introduction to interface programming and View components, androidstudioI. Introduction
The most important part of Android Application Development is interface development. No matter how good your program contain
: due to Android studio 1.0 The default installation is Android5.0, the compiler version is 21,gradle the current version is 2.2.1, so make some changes to the relevant files1) Modify the selection My-app\platforms\android\build.gradleLine 10th classpath ' com.android.tools.build:gradle:1.0.+"21.1.1" = ' 2.2.1 '2) Mod
, usually four code files in utf8 format.
Like llbl Gen 3. X, bind multiple templates to a templatebinding file and input a llblgenproj project file.
2) The code generated by the template must be called by a third-party tool. In Smith builder, my open-source tool, the most valuable code is to get the parameter value, upload it to the template, and generate code in batches.
As shown in the following code, it can be called in code mode, which i
Original address: http://www.developerphil.com/android-studio-tips-of-the-day-roundup-4/33. Analyze data flow to current locationApple/windows: No corresponding shortcut key, you can choose Analyze->analyze Data Flow to here in the menuBy analyzing the currently selected variable, parameter, or domain variable, this function gives a path map that flows through th
Android Studio development chapter 4 Version Management Git (II) and androidgit
The previous section describes how to associate a remote repository in as. This section describes how to apply the repository in the development process.
Submit + Push
If the local development code has been changed or you think a function has been completed, you are planning to submit
-click it and delete it, But Android Studio has a more user-friendly experience. For example, when I want to delete a layout file:
Click delete to delete the file. The following page is displayed:
, If you hook the red box and click OK, the software will prompt you where the file is used:
It shows that this file is used in one place. Click "View usages" to View the details:
If you want to delete it, cli
Create a blank project MyApplication, the project directory is as follows:1). Idea. idea is a number of XML configuration files, including copyrights. This section is limited in knowledge and will be supplemented by subsequent understandings.2) AppApp to MyApplication is equivalent to project's workspace for Eclipse, which belongs to module in Android Studio. The
to simplify the process of implementing the Parcelable interface for a class.
-----------------------------------------------------------------------------
Now I want to learn how to use this plug-in:
1. Open a project in Android Studio and click File --> Settings... in the upper left corner to set the project.
2. Select plug-ins and search for Parcel. If
variable for the expression at the current cursor and use the expression as its assignment statementDefault configuration key:Ctrl ALT v12, Main menu/view/tools Window Display method parameter type hint (CTRL p)Function: When pressed, it will prompt the parameter list of the method at the current cursor, which is useful for viewing the reuse method.Default configuration key:Ctrl P13, Main Menu/view/tools Window Display method prompt information (CTRL q)Function: When pressed, it will prompt the
Android studio NDK configuration tutorial on Mac (2), androidndkAndroid studio NDK configuration tutorial on Mac (ii) (I) Overview
In the previous NDK configuration tutorial (I), I briefly described the basic decompression and environment configuration steps for NDK in MAC.
This section describes how to confi
Use of Baidu map under Android Studio (2) -- positioning service, androidstudio
In the previous chapter (http://www.cnblogs.com/jerehedu/p/4891216.html) we have completed the establishment of the environment, this chapter we will study how to use.Step 1: Add the following permissions to the xml file:
Step 2: Add a map
Some uses of activity1. Open Android Studio,new a projectStart a application name:firstactivity (fully demonstrate our rookie quality first), click Next, select Phone and Tablet, the smallest SDK I choose 2.3.3,Continue to click Next, would like to choose no activity, and later found a little trouble, so choose blank activity (rookie don't like too much trouble), to this, you have succeeded half (cheat you)
When compiling code in Android Studio 1.2.2 today, you encounter a warning message that getdrawable (int) is obsolete in resources:Warning: (133, Java:android.content.res.Resources) getdrawable (int) is obsoleteView [1] To summarize the following information:There are two methods in the resources class that are deprecated in API level 22:Obsolete interface: drawable getdrawable (int id)Alternate interface:
;getintfield (env, coord, xId);Print x data to determine if the value is correct during Android operationLOGD ("x =%d", x);Fragment 2: Calling the initial methodFind Class class COORDJclass cls = (*env)->findclass (env, "Com/oki/led/jni/nativeobj/coord");Call its initialization method on this classJmethodid id = (*env)->getmethodid (env, CLS, "To convert data from a CLS class to a Jobject classJobject param
/>.However, the project has actually added the V4 package under the Libs folder, causing the conflict, so the above exception occurred.Solution: Just block compile ' com.android.support:cardview-v7:21.+ ' this sentence. Recompile to pass.2 "When error code=3:Colleagues say that as long as the Build.gradle file is added,dexoptions{javamaxheapsize "3g"}can be passed. But no concrete practice has been done.This article is from the "Chihiro" blog, please
-1; ++i) { for(intj =0; J size-1-I.; ++J) {if(jints[j]1]) {intT=JINTS[J]; jints[j]=jints[j+1]; jints[j+1]=t; } } }//Update the sorting results to the Java array, the third parameter equals 0 to update to the original array and release all elements Env->releaseintarrayelements (Array,jints,0);return;}//在Java中调用print("通过JNI对int数组排序:");Test.sortIntArray(rs);print(IntArrayToString(rs));
As you can see here, instead of returning an array, w
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.