共 34 篇文章 |
|
weex sdk集成到Android工程。1)已经安装了JDK version>=1.7 并配置了环境变量 2)已经安装Android SDK 并配置环境变量。compile ''com.android.support:recyclerview-v7:23.1.1''compile ''com.android.support:support-v4:23.1.1''compile ''com.android.support:appcompat-v7:23.1.1''c... 阅705 转3 评0 公众公开 17-01-17 15:53 |
Android Studio出现Error:No service of type Factory available in ProjectScopeServices.buildscript { repositories { jcenter() } dependencies { classpath ''com.android.tools.build:gradle:2.1.3'' classpath ''com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'' classpath ''com.github... 阅666 转4 评0 公众公开 16-11-01 20:42 |
Building Web Apps in WebView | Android DevelopersQuickview.Adding a WebView to Your Application。><WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent"/>... 阅46 转0 评0 公众公开 16-10-29 17:18 |
If L<0.5, s="(maxcolor-mincolor)/(maxcolor" +="" mincolor)="" <="" br=""> If L>=0.5, S=(maxcolor-mincolor)/(2.0-maxcolor-mincolor)if temp3<0, temp3="temp3+1.0" <="" br=""> if temp3>1, temp3=temp3-1.0If 6.0tem... 阅365 转2 评0 公众公开 16-07-06 00:15 |
详解Paint的setXfermode(Xfermode xfermode)一、setXfermode(Xfermode xfermode)该类同样有且只有一个含参的构造方法PorterDuffXfermode(PorterDuff.Mode mode),这个PorterDuff.Mode大家看后是否会有些面熟,它跟上面我们讲ColorFilter时候用到的PorterDuff.Mode是一样的!这18种模式Android还为我们提供了它们的计算方式比如LIGHTEN的计算方... 阅424 转0 评0 公众公开 16-07-05 15:57 |
open failed: EACCES (Permission denied)在开发安卓应用时,通过需要访问SDCARD、外部存储器。<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />2. 在调试的设备或模拟器中,App访问Storage的权限... 阅1684 转7 评0 公众公开 16-07-02 17:25 |
除了资源存取的问题,还有一个问题是activity的生命周期,因为apk被宿主程序加载执行后,它的activity其实就是一个普通的类,正常情况下,activity的生命周期是由系统来管理的,现在被宿主程序接管了以后,如何替代系统对apk中的activity的生命周期进行管理是有难度的,不过这个问题比资源的访问好解决一些,比如我们可以在宿主程序中模拟activ... 阅24 转0 评0 公众公开 16-06-28 16:20 |
New in Android Studio 2.0: Instant Run and Cloud Test Lab.Android Studio 2.0 uses the latest stable Android platform and APIs, but it does not include support for Android N Developer Preview, which requires Studio 2.1 Preview. 阅69 转0 评0 公众公开 16-04-11 19:38 |
避免Android Context引起的内存泄露。如果context发生内存泄露的话,就会泄露很多内存。总之,为了避免涉及到context的内存泄露,请记住如下几点:不要让生命周期长的对象引用activity context,即保证引用activity的对象要与activity本身生命周期是一样的对于生命周期长的对象,可以使用application context避免非静态的内部类,尽量使用静态... 阅217 转0 评0 公众公开 15-11-23 17:19 |