会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Stay foolish,Stay hungry,persistence
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
30
下一页
2018年2月24日
Fragment切换问题
摘要: 片断一: add hind@Overridepublic void onCheckedChanged(RadioGroup group, int checkedId) { switch (checkedId){ case R.id.rb_common_frame://常用框架 position =
阅读全文
posted @ 2018-02-24 22:47 dub
阅读(575)
评论(0)
推荐(0)
2018年2月23日
Studio更新
摘要: 其实最主要的是下面三个步骤: 1.更新As工程为3.0 2.必须升级gradle到4.0以上 3.buildToolsVersion升级到26.0.0 4.在gradle.properties中配置版本号 方法 一 CanaryChannel :金丝雀版, 能获取最新的功能(Bug较多 并且都还没有
阅读全文
posted @ 2018-02-23 16:29 dub
阅读(260)
评论(0)
推荐(0)
gradle 两种更新方法
摘要: 第一种.Android studio更新 第一步:在你所在项目文件夹下:你项目根目录gradlewrappergradle-wrapper.properties 替换 distributionUrl=https\://services.gradle.org/distributions/gradle-
阅读全文
posted @ 2018-02-23 14:58 dub
阅读(543)
评论(0)
推荐(0)
2018年2月8日
Handler基本用法
摘要: 片断一:mHandler = new Handler();mRunnable = new Runnable() { @Override public void run() { currentPosition++; Log.d("recyclerBanner", currentPosition + "
阅读全文
posted @ 2018-02-08 17:34 dub
阅读(174)
评论(0)
推荐(0)
2018年1月31日
使用git克隆指定分支的代码
摘要: 一共有两个分支 使用Git下载指定分支命令为:git clone -b 分支名仓库地址 git clone -b +分支 + 地址 study 查看各个分支当前所指的对象 git log --oneline --decorate 项目分叉历史 git log --oneline --decorate
阅读全文
posted @ 2018-01-31 23:50 dub
阅读(2280)
评论(0)
推荐(0)
2018年1月26日
Bugly最简单的配置方法
摘要: 1,注册Bugly帐号 2.项目 build.gradle 中配置 compile 'com.tencent.bugly:crashreport:latest.release'//其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9 3.MyApp
阅读全文
posted @ 2018-01-26 09:55 dub
阅读(243)
评论(0)
推荐(0)
2018年1月21日
setTag,getTage复用
摘要: radioButtons = new RadioButton[rgMain.getChildCount()]; //遍历RadioGroupfor (int i = 0; i < radioButtons.length; i++) { radioButtons[i] = (RadioButton)
阅读全文
posted @ 2018-01-21 16:55 dub
阅读(114)
评论(0)
推荐(0)
2018年1月17日
Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2
摘要: 原因是解析的时候多了,逗号,或是 \ 解决方法:一 revJson=revJson.replace("\\", "");//去掉'/' revJson=revJson.substring(1, revJson.length()-1); //去掉头尾引号。 简单对象解析: BeanOrderInten
阅读全文
posted @ 2018-01-17 11:36 dub
阅读(757)
评论(0)
推荐(0)
2018年1月15日
Android应用如何跳转到应用市场详情页面
摘要: 方法一: public void launchAppDetail(String appPkg, String marketPkg) { try { if (TextUtils.isEmpty(appPkg))return; Uri uri = Uri.parse("market://details?
阅读全文
posted @ 2018-01-15 22:21 dub
阅读(1391)
评论(0)
推荐(0)
2017年12月30日
给TextView加上多彩效果:改变部分字体的大小和颜色
摘要: 转载请注明出处:http://blog.csdn.net/singwhatiwanna/article/details/18363899 前言 在实际使用中,有时候会遇到特殊需求,比如pm突发奇想,想把TextView的某几个字变的大一点,再加点颜色,这貌似不好搞,如果是给TextView整体加效果
阅读全文
posted @ 2017-12-30 16:39 dub
阅读(415)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
30
下一页
公告