随笔分类 - 分享是一种态度
摘要:记录下来少走些坑吧一:不管用 tools:replace="android:icon,android:theme" xmlns:tools="http://schemas.android.com/tools" 二:(不管用)在defaultConfig 中添加 multiDexEnabled tru
阅读全文
摘要:1.把库的Activity删掉 2.把库的Application节点内容删掉 3.apply plugin:' 包名.library' 4.把ApplicationId去掉, 导入即可使用
阅读全文
摘要:2.2.2升级到3.0.1百度报错了, 一:请检查.jar,.so是否是最新的 二:clear
阅读全文
摘要:一: 在app的build中android { ... defaultConfig { ... //添加如下配置就OK了 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } } ..
阅读全文
摘要:一 : 根据以下路径,找到Instant Run中的选项 File —— Settings——Build,Execution,Deployment——Instant Run 将Enable Instant Run to hot swap code/resource changes on deploy
阅读全文
摘要:1.这里是商户PID 2.商户收款帐号 就是支付宝帐号 3.公钥,私钥 要下载这个工具来生成 点脚本生成公钥 私钥在这里 4.服务器修改公钥 相关合集
阅读全文
摘要:Ctril Shift R Text to find :是要搜索的内容或者要被替换的内容 Replace with :是要替换的内容 Preview:是可以看到预览 在Scope的选项卡里 Whole projerct :可以替换整个项目的内要替换掉 Module:可以替换带整个module内容 D
阅读全文
摘要:更新的软件可以解决 TortoiseGit-preview-2.5.7.0-20180127-b2d00f8-64bit.msi和Git-2.16.2-64-bit.exe。 链接地址为: https://github.com/git-for-windows/git/releases/downloa
阅读全文
摘要:片断一: add hind@Overridepublic void onCheckedChanged(RadioGroup group, int checkedId) { switch (checkedId){ case R.id.rb_common_frame://常用框架 position =
阅读全文
摘要:其实最主要的是下面三个步骤: 1.更新As工程为3.0 2.必须升级gradle到4.0以上 3.buildToolsVersion升级到26.0.0 4.在gradle.properties中配置版本号 方法 一 CanaryChannel :金丝雀版, 能获取最新的功能(Bug较多 并且都还没有
阅读全文
摘要:第一种.Android studio更新 第一步:在你所在项目文件夹下:你项目根目录gradlewrappergradle-wrapper.properties 替换 distributionUrl=https\://services.gradle.org/distributions/gradle-
阅读全文
摘要:片断一:mHandler = new Handler();mRunnable = new Runnable() { @Override public void run() { currentPosition++; Log.d("recyclerBanner", currentPosition + "
阅读全文
摘要:一共有两个分支 使用Git下载指定分支命令为:git clone -b 分支名仓库地址 git clone -b +分支 + 地址 study 查看各个分支当前所指的对象 git log --oneline --decorate 项目分叉历史 git log --oneline --decorate
阅读全文
摘要:1,注册Bugly帐号 2.项目 build.gradle 中配置 compile 'com.tencent.bugly:crashreport:latest.release'//其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9 3.MyApp
阅读全文
摘要:radioButtons = new RadioButton[rgMain.getChildCount()]; //遍历RadioGroupfor (int i = 0; i < radioButtons.length; i++) { radioButtons[i] = (RadioButton)
阅读全文
摘要:原因是解析的时候多了,逗号,或是 \ 解决方法:一 revJson=revJson.replace("\\", "");//去掉'/' revJson=revJson.substring(1, revJson.length()-1); //去掉头尾引号。 简单对象解析: BeanOrderInten
阅读全文
摘要:方法一: public void launchAppDetail(String appPkg, String marketPkg) { try { if (TextUtils.isEmpty(appPkg))return; Uri uri = Uri.parse("market://details?
阅读全文
摘要:转载请注明出处:http://blog.csdn.net/singwhatiwanna/article/details/18363899 前言 在实际使用中,有时候会遇到特殊需求,比如pm突发奇想,想把TextView的某几个字变的大一点,再加点颜色,这貌似不好搞,如果是给TextView整体加效果
阅读全文

浙公网安备 33010602011771号