自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 收藏
  • 关注

原创 RN国际化

1.第三方多语言库yarn add react-native-i18n2.用户获取系统本地语言环境yarn add react-native-device-info 且react-native link react-native-device-info3.添加语言js以上三个js代码如下:------------------------en.js-----------...

2019-04-29 17:26:34 537

原创 手动下载ADT SDK Tools Platform Tools Build Tools Platforms

ADThttp://dl.google.com/android/ADT-XX.0.0.zipSDK Toolshttp://dl.google.com/android/repository/tools_rXX-linux_x86.ziphttp://dl.google.com/android/repository/tools_rXX-windows.ziphttp://dl.goog...

2019-04-29 17:20:47 907 1

原创 If you are behind an HTTP proxy, please configure the proxy set

今天跑一个git 上的demo 报这个错。原因是我用的android studio2.2 但是项目介绍下面这个。应该是android studio版本不一致导致的Suggestion: It is better for you to update your Android Studio to version 2.3 when you open this project.

2017-05-24 11:40:24 844

原创 没有UI的android程序员的图标之选

Android Asset Studio,可以在线生成各种图标http://romannurik.github.io/AndroidAssetStudio/index.html 在配合上阿里巴巴的iconfonthttp://www.iconfont.cn/search教程在http://www.jcodecraeer.com/a/anzhuokai

2017-05-24 10:07:26 325

原创 Error:Error converting bytecode to dex:

Process 'command 'D:\Program Files\Java\jdk1.7.0_67\bin\java.exe'' finished with non-zero exit value 2 可能是jar包重复了,但也可能是需要clean工程。clean后再删除原来的build。

2017-05-15 14:40:35 209

原创 git上的错误

fatal: Unable to create '/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g.an editor opened by 'git commit'. Please make sure all proces

2017-04-15 14:48:45 351

原创 mac 上配置maven

打开终端。实现创建文件 。1.touch ~/.bash_profile打开文件2.open ~/.bash_profile然后就好弹出你的文本编辑器。输入配置。3.export M2_HOME=/Users/gutongtong/Documents/javee_develop/apache-maven-3.3.9     //这个是你的maven的路径export

2017-02-21 13:55:24 230

原创 was unable to locate its companion launcher jar

如果打开eclipse出现上面的报错,可以看看jdk是不是与eclipse是相同位数的,如32位的jdk就该用32位eclipse,64位的jdk就改用64位eclipse

2017-02-20 13:23:42 836

原创 nmp install 在使用原本地址时会出现下载不完全的现象,可以切换的淘宝的源

cnpm 或别的镜像源自行安装:rm -rf node_modules && cnpm install2.发现错误没有pageage.json.使用命令npm init.

2017-02-17 11:41:46 446

转载 与 .so 有关的一个长年大坑

作者:Caspar链接:https://zhuanlan.zhihu.com/p/21359984来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。Android 应用开发中不可避免的会引入第三方的代码。如果是开源项目风险相对可控,如果引入商用的 SDK 那就要谨慎了,难免会有这样或那样的问题。比如我们今天要说的这一个。对集成过第三方 SDK 的

2016-12-16 14:15:05 196

原创 postman的下载 使用,移动端模拟访问网络

官网https://www.getpostman.com 我选的是windows 下载完就是一个exe运行完点几个确定就ok啦

2016-12-16 10:21:21 2463

原创 RecyclerView与CoordinatorLayout,AppBarLayout,CollapsingToolbarLayout 解决上滑到toolbar卡顿

xml version="1.0" encoding="utf-8"?>android.support.v4.widget.SwipeRefreshLayout android:id="@id/contentView" android:layout_width="match_parent" android:layout_height="match_parent"

2016-12-02 14:55:05 4006

原创 根据android版本配置Theme

if(Build.VERSION.SDK_INT 20){ setTheme(R.style.AppBarLayoutAppTheme);}因为适配问题android.support.design.widget.AppBarLayout在5.0以下版本会出现问题。需要修改theme。使用根据手机版本配置theme以上4.4.4效果,以下5.0效果。

2016-11-21 18:08:31 576

原创 adapter.notifyDataSetChanged 更新图片闪烁解决办法

给图片控件设置tagif(!contact2.getAvatarPath().equals(hodler1.ivUser.getTag())) { hodler1.ivUser.setTag(contact2.getAvatarPath()); ImageLoader.getInstance().displayImage(contact2.getAvatarPath(),

2016-11-16 10:26:21 3056

原创 将资产文件中的html纯文字放到TextView中

TextView tvUserAgreement = (TextView)findViewById(R.id.tvUserAgreement);try { InputStream inputStream = getAssets().open("user_agreement.html"); String agreementStr = IOUtils.toString(inputSt

2016-07-22 16:37:30 239

原创 悬浮按钮显示隐藏动画(补间动画)

http://img.blog.csdn.net/20160721142222660?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Centerpublic void AnimR(){ if(null

2016-07-21 14:22:52 571

原创 补间动画实现折叠的效果

Animation mShowAction = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -0.175f, Animation.RELATIVE_TO_SELF,

2016-07-21 14:08:02 424

原创 finish with non-zero exit value 1

如果你在生成release包遇到这个问题,看看你有没有用其它软件打开你的app

2016-07-19 17:11:08 354

原创 App 升级遇到 Fatal signal 11 底层C报错

app升级,无法打开,开发的时候好好的,但清空数据就可以打开,毫无问题,查看log然后就是这样

2016-07-19 17:02:35 501

原创 Android studio 在粘贴复制后so包边灰了

打出的apk,so包还在,但是还有so包但是里面是空的,坑坑坑

2016-07-17 20:38:15 344

原创 abiFilters

ndk { abiFilters "armeabi-v7a"}代表只是打armeabi-v7a文件夹中的so包

2016-07-17 20:25:25 2634

原创 文件过滤器 FilenameFilter

mImgs 是一个File 当我要取他的子文件,并且想要过滤得到png和jpg的文件是可以直接过滤mImgs = Arrays.asList(mImgDir.list(new FilenameFilter(){ @Override public boolean accept(File dir, String filename) { Log.e("gtt","d

2016-07-13 13:31:44 264

原创 Arrays.asList

可以将String[] 转换成List 大概就是将数组转换成listmImgs = Arrays.asList(mImgDir.list(new FilenameFilter(){ @Override public boolean accept(File dir, String filename) { if (filename.endsWith(".jpg") |

2016-07-13 13:29:57 140

原创 Activity中弹软键盘

name_ed.setFocusable(true);name_ed.setFocusableInTouchMode(true);name_ed.requestFocus();Timer timer = new Timer();timer.schedule(new TimerTask() { //让软键盘延时弹出,以更好的加载Activity public void run() {

2016-07-11 17:28:06 184

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除