[android问题]
文章平均质量分 64
周奇葩
https://github.com/ssccbb
展开
-
[android问题]小记碰到的问题
1.fragment标签错乱双层fragment,在头层fragment切换到有第二层fragment的标签页之后,第二层的标签页点击页面设置混乱。后来找发现是由于在切换第二层fragment的时候用的是getFragmentMannage(),在更换了getChildFragmentMannage()之后正常2.微信支付回掉结果-1清单文件<activity原创 2015-12-29 18:24:06 · 314 阅读 · 0 评论 -
安卓中@Nullable和NotNull 注释
@Nullable和NotNull的作用IntelliJ IDEA makes it possible to analyse the source code for the elements that can become null, and annotate them, provided that annotations are available in the project so转载 2017-01-18 20:15:12 · 2976 阅读 · 0 评论 -
简历中的star法则
一.什么是STAR法则?The STAR (Situation, Task, Action, Result) format is a job interview technique used by interviewers to gather all the relevant information about a specific capability that the job转载 2017-02-14 18:55:05 · 1327 阅读 · 0 评论 -
Camera开发中使用surfaceview预览自适应比例
前言app需要增加类似美拍的段视频拍摄功能,在实际的开发中碰到surface view预览的变形。参考了网上的资料,提出了解决办法思路在camera的开发中,因为不同手机硬件的原因,所支持的分辨率都不一样,所以在surface view预览的时候需要同时考虑到surface view的大小比例以及camera的画面比例,然而在设置比例尺的时候如若传入不支持的宽高,camera的原创 2017-06-08 17:19:30 · 4506 阅读 · 0 评论 -
android开发中解析json的错误
在做登陆功能时候,在json解析中报了以下错误org.json.JSONException: Unterminated object at character 62 of。。。这是由于在服务区返回数据字符串时使用response新建json对象JSONObject jsonObject = new JSONObject(string);字符串中特殊字符没有进行转义使得在正常生成json原创 2017-08-11 12:21:18 · 1881 阅读 · 0 评论 -
ScrollView添加惯性滑动
自定义view继承自scrollview,重写onInterceptTouchEvent()判断滑动事件/** * 惯性滑动 * */public class PullableScrollView extends ScrollView implements Pullable { private int downX; private int downY; priva原创 2017-09-01 14:03:58 · 1837 阅读 · 1 评论