- 博客(7)
- 资源 (18)
- 收藏
- 关注
原创 android Gradle 编译Error :Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileColl
从svn上down 下来最新的代码后,就报这样的错误:Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollec
2017-08-30 14:33:47 650
原创 Android 卸载某个应用
卸载指定包名方法如下:/** * * @param packageName 包名 */ private void uninstall(String packageName) { Intent uninstall_intent = new Intent(); uninstall_intent.setAction(In
2017-08-24 15:52:04 380
原创 android setSelected(true)无效
一个ImageView的selector 如下: <item android:state_focused="false" android:state_pressed="true" android:drawable="@mipmap/message_press" /> <item an
2017-08-24 10:56:59 4255
原创 Android 华为手机获取EMUI版本
获取EMUI的版本,要捕捉异常: Class classType = Class.forName("android.os.SystemProperties"); Method getMethod = classType.getDeclaredMethod("get", new Class[]{String.class});
2017-08-23 13:53:53 3866
原创 android studio targetCompatibility = '1.7' 报错 解决方案
引入第三方jar包的时候。遇到下面这种报错:Error:Error converting bytecode to dex:Cause: Dex cannot parse version 52 byte code.This is caused by library dependencies that have been compiled using Java 8 or above.If y
2017-08-22 10:25:07 3808
原创 Color argb()方法的参数
public static int argb(int alpha, int red, int green, int blue) { return (alpha << 24) | (red << 16) | (green << 8) | blue; }从四个参数就能很明显的看出来,分别代表透明度(alpha),红色(red),绿色(green),蓝色(blue)四个颜色值
2017-08-21 13:17:49 9249 2
原创 Android 高仿微信图片浏览,点击图片,头部和底部隐藏
Android 微信图片浏览器中,点击某张图片,会隐藏头部和底部,再次点击又会重新展示出来,这样的动画效果其实很简单就能实现,看下图: 下面一步一步去实现这个功能:首选添加依赖: compile 'com.github.chrisbanes.photoview:library:+' compile 'com.github.bumptech.glide:glide:3.7.0'添加
2017-08-15 17:13:58 2274
Android 使用DialogFragment 实现一个可以多选的Dialog
2017-09-18
高仿微信你可能要发送的图片source
2017-09-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人