上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: http://blog.csdn.net/wh_19910525/article/details/7784901 git stash 可用来暂存当前正在进行的工作, 比如想pull 最新代码, 又不想加新commit, 或者另外一种情况,为了fix 一个紧急的bug, 先stash, 使返回到自己上 阅读全文
posted @ 2017-10-09 14:43 天之骄子19 阅读(368) 评论(0) 推荐(0)
摘要: ComponentName,顾名思义,就是组件名称,通过调用Intent中的setComponent方法,我们可以打开另外一个应用中的Activity或者服务。 实例化一个ComponentName需要两个参数,第一个参数是要启动应用的包名称,这个包名称是指清单文件中列出的应用的包名称: 第二个参数 阅读全文
posted @ 2017-10-09 10:41 天之骄子19 阅读(1624) 评论(0) 推荐(0)
摘要: System.currentTimeMillis()产生一个当前的毫秒,这个毫秒其实就是自1970年1月1日0时起的毫秒数,Date()其实就是相当于Date(System.currentTimeMillis());因为Date类还有构造Date(long date),用来计算long秒与1970年 阅读全文
posted @ 2017-10-09 10:07 天之骄子19 阅读(919) 评论(0) 推荐(0)
摘要: 通过set函数设置初始化数据或者是带参构造函数初始化。 阅读全文
posted @ 2017-10-01 11:24 天之骄子19 阅读(361) 评论(0) 推荐(0)
摘要: 爆出了这样的异常,java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout。 原因就是在RelativeLayout布局中重现了重复的view ID名称,且出现 imageview2 , 阅读全文
posted @ 2017-09-26 22:18 天之骄子19 阅读(654) 评论(0) 推荐(0)
摘要: 传数据:Intent intent=getIntent(); String curCity=intent.getStringExtra("cur_city"); Intent intent = new Intent(MainActivity.this, CityRank.class); intent 阅读全文
posted @ 2017-09-26 21:05 天之骄子19 阅读(210) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/niubitianping/article/details/51400721 1、真机运行报错Multi dex requires Build Tools 21.0.0 / Current: 19.1 解决: 在项目 build.gradle 里面把clas 阅读全文
posted @ 2017-09-23 21:27 天之骄子19 阅读(5965) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android: 阅读全文
posted @ 2017-09-22 22:17 天之骄子19 阅读(172) 评论(0) 推荐(0)
摘要: android:paddingBottom="@dimen/activity_vertical_margin"android:paddingLeft="@dimen/activity_horizontal_margin"android:paddingRight="@dimen/activity_ho 阅读全文
posted @ 2017-09-21 13:06 天之骄子19 阅读(187) 评论(0) 推荐(0)
摘要: package com.coolweather.android;import android.content.Intent;import android.content.SharedPreferences;import android.preference.PreferenceManager;imp 阅读全文
posted @ 2017-09-20 20:20 天之骄子19 阅读(148) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页