• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






heke_heke

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2018年4月3日

Android Studio中常用设置与快捷键(私人珍藏,Eclipse转AS必看)
摘要: 常用设置: 1.Tab不用4个空格Code Style->Java->Tabs and Indents->Use tab characterCode Style->General->Use tab character (例如:版本控制Diff界面按下Tab)2.可视化Tab和空格Settings-> 阅读全文
posted @ 2018-04-03 00:34 heke_heke 阅读(121) 评论(0) 推荐(0)
 

2017年6月7日

返回UI线程
摘要: 在子线程中: 阅读全文
posted @ 2017-06-07 11:43 heke_heke 阅读(166) 评论(0) 推荐(0)
 

2017年6月5日

设置颜色的几种写法
摘要: 1. 阅读全文
posted @ 2017-06-05 15:01 heke_heke 阅读(136) 评论(0) 推荐(0)
 

2017年5月24日

Fragment传值
摘要: AirplaneOrderFragment mFragment = new AirplaneOrderFragment(); Bundle mBundle = new Bundle(); mBundle.putInt("type", i); mFragment.setArguments(mBundl 阅读全文
posted @ 2017-05-24 14:59 heke_heke 阅读(75) 评论(0) 推荐(0)
 

2017年5月22日

long转date
摘要: public static String toDate(long s) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm"); // SimpleDateFormat sdf=new SimpleDateFormat(" 阅读全文
posted @ 2017-05-22 10:08 heke_heke 阅读(215) 评论(0) 推荐(0)
 

2017年2月14日

7.0手机后popupWindow 的showAtLocation()和showAsDropDown()
摘要: 手机系统7.0后用showAsDropDown()会位置异常,这是用showAtLocation()就好了。 if (Build.VERSION.SDK_INT < 24) {//在7.0之前 pw.showAsDropDown(ll_rank, 0, 0);//ll_rank是一个view,表示显 阅读全文
posted @ 2017-02-14 10:39 heke_heke 阅读(323) 评论(0) 推荐(0)
 

2016年12月13日

EventBus 优化广播的传播
摘要: 需要在onEventMainThread方法上,添加@Subscribe,程序才能执行。 http://blog.csdn.net/harvic880925/article/details/40787203 阅读全文
posted @ 2016-12-13 15:20 heke_heke 阅读(97) 评论(0) 推荐(0)
 

2016年9月28日

单列模式
摘要: public class PreferenceHelper { //懒汉式-----速度有点慢,不用一开始占资源 private PreferenceHelper() {}//构造器私有 private static PreferenceHelper preManager; //synchronized 同步 ... 阅读全文
posted @ 2016-09-28 17:36 heke_heke 阅读(150) 评论(0) 推荐(0)
 

2016年9月22日

gridview填充剩下的空间
摘要: 设置不要在控间中滑动: 布局文件: 设置gv占整个界面的权重:(一个5一个2总7) 在adapter的getView()中: 阅读全文
posted @ 2016-09-22 16:07 heke_heke 阅读(194) 评论(0) 推荐(0)
 
广播后刷新界面-调用其他界面的方法触动广播后刷新该界面UI
摘要: new CigaretteLoginActivity().login(ac,"switch_account",list.get(arg2).CUST_CODE,list.get(arg2).PWD,CommUtils.getPhone(ac),db); 发一个广播: 主界面接收广播: 在该主界面注册 阅读全文
posted @ 2016-09-22 10:26 heke_heke 阅读(170) 评论(0) 推荐(0)
 
下一页