随笔分类 - 分享是一种态度
摘要:1.ccmalloc-Linux和Solaris下对C和C++程序的简单的使用内存泄漏和malloc调试库。 2.Dmalloc-Debug Malloc Library. 3.Electric Fence-Linux分发版中由Bruce Perens编写的malloc()调试库。 4.Leaky-
阅读全文
摘要:一: 把//classpath 'com.android.tools.build:gradle:2.2.2'改成classpath 'com.android.tools.build:gradle:3.0.1' 加上 二: 把#distributionUrl=https\://services.gra
阅读全文
摘要:1 2 CENTER_INSIDE 以原图正常显示为目的,如果原图大小大于ImageView的size,就按照比例缩小原图的宽高,居中显示在ImageView中。如果原图size小于ImageView的size,则不做处理居中显示图片 . 1 2 android:scaleType=“fit_sta
阅读全文
摘要:push1.git init2.git add . (单个) git add ./* (全部)3.git commit -m"提交内容"4.建立GitHub上的repository 5.关联地址 git remote add origin6.提交代码 如果gitHub上面有README.md 执行
阅读全文
摘要:1.检查该Fragment所属的Activity中,是否重写了onActivityResult方法。 2.检查Fragment中的startActivityForResult的调用方式。 请确保不要使用getActivity().startActivityForResult方法,而是要直接使用sta
阅读全文
摘要:https://mp.weixin.qq.com/s/6l4OBXGXXxW03pXOqqjhyQ 相关 git配置命令 查询配置信息 列出当前配置:git config --list; 列出repository配置:git config --local --list; 列出全局配置:git con
阅读全文
摘要:https://mp.weixin.qq.com/s/5n9j-59o8D5ByvZQ2INddQ 1混淆介绍 Proguard是一个Java类文件压缩器、优化器、混淆器、预校验器。压缩环节会检测以及移除没有用到的类、字段、方法以及属性。优化环节会分析以及优化方法的字节码。混淆环节会用无意义的短变量
阅读全文
摘要:出现问题原因 因为本人一个项目用在了两个App导致的 1. 确定改了<application android:icon="@drawable/......" 2.删除build文件 重新构建 3.重启手机(小米手机自带缓存) 亲测管用
阅读全文
摘要:看log也没有说明具体情况? 一翻折腾在清单文件里加了权限就好了!!!
阅读全文
摘要://implementation 'com.android.support:appcompat-v7:26.1.0' 改成implementation 'com.android.support:appcompat-v7:25.3.1'
阅读全文
摘要:把 LinearLayout 改成 RelativeLayout ok了 创建的两种方式 1.LayoutInflater.from(parent.getContext()).inflate(R.layout.inflate_test_item,null) 2,LayoutInflater.from
阅读全文
摘要:<android.support.design.widget.TabLayout android:id="@+id/tabLayout" android:layout_width="match_parent" android:layout_height="match_parent" app:tabT
阅读全文
摘要:Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 3519 path $.data[1].inspector_user Gson 中 ""引起来的是STRING, {} 是类,[] 是List 我代码中是这样写的 private L
阅读全文
摘要:我出现这个问题是引用资源文件问题helper.getView(R.id.in_pic).setBackgroundResource(item.getResourceId()); //错的helper.getView(R.id.in_pic).setBackground(getResources().
阅读全文
摘要:1.固定到顶部scroll_view.requestFocusFromTouch();scroll_view.setScrollX(0);2.固定到指定位置 int[] location = new int[2]; titleTwo.getLocationOnScreen(location); in
阅读全文
摘要:在界面布局文件中使用<fragment>元素添加Fragment时,可以为<fragment>元素指定android:id或android:tag属性,这两个属性都可用于标识该Fragment,接下来可以通过findFragmentById(int id)或者findFragmentByTag(St
阅读全文

浙公网安备 33010602011771号