自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 android 常用时间格式转换代码

/**   * 获取现在时间   *   * @return 返回时间类型 yyyy-MM-dd HH:mm:ss   */ public static Date getNowDate() {   Date currentTime = new Date();   SimpleDateFormat formatter = new SimpleDateFormat("yyyy

2016-07-29 15:13:54 386

转载 Android double保留两位小数:截取 和 四舍五入

方式一: BigDecimal.setScale()方法用于格式化小数点 setScale(2);//表示保留2位小数,默认用四舍五入方式  setScale(2,BigDecimal.ROUND_DOWN);//直接删除多余的小数位  11.116约=11.11 setScale(2,BigDecimal.ROUND_UP);//临近位非零,则直接进位;临近位为零,不进位。11.11

2016-07-29 13:51:13 4088

转载 Volley解析(二)---图片加载

Volley是将AsyncHttpClient和Universal-Image-Loader的优点集成于一身的一个框架。我们都知道,Universal-Image-Loader具备非常强大的加载网络图片的功能,而使用Volley,我们也可以实现基本类似的效果,并且在性能上也豪不逊色于Universal-Image-Loader,下面我们就来具体学习一下吧。   1. ImageRequest的

2016-07-21 20:03:00 329

转载 cannot convert from android.app.FragmentManager to android.support.v4.app.FragmentManager

vote favorite 1   I am creating an app using Fragments for tablet.I have so far created some buttons on the left side and the fragments appear on clicking the buttons. But i am expe

2016-07-20 15:49:08 612

转载 styles

xml version="1.0" encoding="utf-8"?>   Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ex

2016-07-14 16:33:53 520

转载 svn

Dartmouth CS 65/165 Smartphone Programming Professor Andrew T. Campbell Using SVN in Android Studio For each submission, you should create an folder for it. At the end of the term, your SV

2016-07-12 15:08:24 391

原创 提示错误:Frameworks detected: Android framework is detected in the project Configure

提示错误:Frameworks detected: Android framework is detected in the project Configure 解决方案: press CTRL+ALT+SHIFT+Son project setting structure->Facetsclick + button and add Android-gradleselect your pr

2016-07-12 14:48:08 35485 1

转载 深刻的理解Fragment生命周期 都在做什么,fragment生命周期

深刻的理解Fragment生命周期 都在做什么,fragment生命周期 Fragment用了很久了,接下来讲一下我自己对fragment的理解。部分图片内容参考官方文档。 请各种参考这篇文章:http://blog.csdn.net/wanghao200906/article/details/45561385 先上一个生命周期的图片吧 下面挨个的说一下我平时 都怎么使用 这些

2016-05-05 16:34:50 282

转载 安卓性能优化之Activity和Fragment通过onSaveInstanceState()保存和恢复数据

Activity和Fragment 都有自己的生命周期,而且很类似.Fragment比Activity多了onAttach()和onCreateView()这些方法.整体它们两者是一样的周期,都会经历从创建视图( onCreate(),onCreateView(),onStart() )到暂停( onPause(), onStop() ) 到重新返回( onResume() ) 到最后销毁( on

2016-04-28 11:53:03 598

空空如也

空空如也

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

TA关注的人

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