"New Androidstudio project,Lib import jar Package "
Our project code is in the app and can be seen as a Model.
SRC below, in addition to our code, there are unit tests.
Copy the jar to the Libs file.
"Genymotion emulator plug-in installation, Operation "
Androidstudio Installing genymotion steps:
1) from the official download plugin:https://www.genymotion.com/.
2) as in open:
Http://www.loverobots.cn/the-method-of-association-genymotion-in-studio-android.html
"Run and debuy, print variables "
First icon: Hit the breakpoint, point to direct debugging, but this runs too slowly.
Second icon: General development of the direct run, and then in the debugging place after the breakpoint, click.
"Module concept, add Library module"
Once the code is pasted in, the Module is built.
Associate Module step: Right-click on the app, select Open Module Settings,
Now it can be used, in the layout file activity_main.xml add:
1 <?XML version= "1.0" encoding= "Utf-8"?>2 <Com.firstdemo.stickyscroll.StickyScrollView3 xmlns:android= "Http://schemas.android.com/apk/res/android"4 Android:layout_width= "Match_parent"5 Android:layout_height= "Match_parent"6 Android:overscrollmode= "Never"7 Android:fadingedge= "None"8 Android:fillviewport= "true">9 Ten <LinearLayout One Android:layout_width= "Match_parent" A Android:layout_height= "Wrap_content" - android:orientation= "vertical"> - <View the Android:layout_width= "Match_parent" - Android:layout_height= "100DP" - Android:background= "@color/font_red2"/> - <View + android:tag= "Sticky" - Android:layout_width= "Match_parent" + Android:layout_height= "200DP" A Android:background= "@color/home02"/> at <View - Android:layout_width= "Match_parent" - Android:layout_height= "300DP" - Android:background= "@color/font_qingse"/> - <View - Android:layout_width= "Match_parent" in Android:layout_height= "300DP" - Android:background= "@color/font_green2"/> to <View + Android:layout_width= "Match_parent" - Android:layout_height= "300DP" the Android:background= "@color/home02"/> * $ </LinearLayout>Panax Notoginseng </Com.firstdemo.stickyscroll.StickyScrollView>
android:tag= "Sticky" when the control sets this property, it is moved to this layout and will hover.
Next point of knowledge, how do we manage the module :
For example: We do not want this Module , how to delete it:
In the app Right-click Open, select open Module Settings .
This step is only removed in the configuration. Then
The last step, click Right-click, then Delete, OK .
demo:http://download.csdn.net/detail/androidsj/9490788
Second, Android Studio use--Import jar package, run, Debug is not a problem