摘要:
https://www.kotlincn.net/docs/reference/generics.html 关于泛型的官方解释 网上好多关于Kotlin的发型 基本都是copy 上边链接里的内容 我下边找了一篇其他的讲解: Generics in Kotlin Last modified: Nove 阅读全文
摘要:
http://developer.android.com/training/articles/perf-jni.htmlJNI tipsJNI TipsIN THIS DOCUMENTJavaVM and JNIEnvThreadsjclass, jmethodID, and jfieldIDLocal and Global ReferencesUTF-8 and UTF-16 StringsPrimitive ArraysRegion CallsExceptionsExtended CheckingNative Libraries64-bit ConsiderationsUnsupporte 阅读全文
摘要:
http://developer.android.com/guide/practices/tablets-and-handsets.html官方链接地址The Android platform runs on a variety of screen sizes and the system gracefully resizes your application's UI to fit each one. Typically, all you need to do is design your UI to be flexible and optimize some elements fo 阅读全文
摘要:
You will get all the functionality ofActivityfromFragmentActivity. Also you will get more options inFragmentActivity. For details please refer toclick here. UsingFragmentActivityyou can easily buildtab and swapformat. Please remember for each tab you can use differentFragment. TheseFragmentsare reus 阅读全文
摘要:
ServiceextendsContextWrapperimplementsComponentCallbacks2java.lang.Object↳android.content.Context↳android.content.ContextWrapper↳android.app.ServiceKnown Direct SubclassesAbstractInputMethodService,AccessibilityService,DreamService,IntentService,RecognitionService,RemoteViewsService,SpellCheckerServ 阅读全文
摘要:
Supporting Multiple ScreensAndroid runs on a variety of devices that offer different screen sizes and densities. For applications, the Android system provides a consistent development environment across devices and handles most of the work to adjust each application's user interface to the scree 阅读全文
摘要:
Supporting Different DensitiesPREVIOUSNEXT支持不同密度This lesson shows you how to support different screen densities by providing different resources and using resolution-independent units of measurements.这一课 讲解使用不同资源文件夹下不同文件夹内的图片资源支持不同密度的手机Use Density-independent Pixels 使用dp单位One common pitfall you must 阅读全文
摘要:
A Service is an application component that can perform long-running operations in the background and does not provide a user interface. Another application component can start a service and it will continue to run in the background even if the user switches to another application. Additionally, a co 阅读全文