自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 关于 overridePendingTransition()使用

实现两个 Activity 切换时的动画。在Activity中使用 有两个参数:进入动画和出去的动画。 注意 1、必须在 StartActivity()  或 finish() 之后立即调用。 2、而且在 2.1 以上版本有效 3、手机设置-显示-动画,要开启状态 //实现淡入浅出的效果 startActivity(newIntent(MainActivity.this,Second

2016-06-24 12:19:23 301

转载 Fragment 和 FragmentActivity的使用(二)

2016-06-24 11:52:31 190

转载 Fragment 和 FragmentActivity的使用

今天学习下 Android中的 Fragment 和 FragmentActivity,因为没有4.0手机,平台是2.3.3 所以我是使用 v4 support 包来进行学习。 要想用Fragment 功能必须先让activity继承FragmentActivity,其原因是里面包含了Fragment运作的FragmentManager接口的实现类 FragmentManagerImpl ,

2016-06-24 11:47:37 398

转载 Android中的Layout_weight(权重)详解

以前一直没弄懂Layout_weight是什么意思,自己写代码测试也出来了不同的情况,最近看了一篇帖子感觉分析的很好,转贴出来学习下。 布局文件是:     android:orientation="horizontal"     android:layout_width="fill_parent"     android:layout_height="fill_par

2016-06-24 10:31:10 990

转载 白天夜间模式切换

点击button实现模式的切换 布局中的代码 RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andro

2016-06-23 21:27:08 484

转载 白天夜间模式切换(2)

import android.support.v7.app.ActionBarActivity; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.graphics.Colo

2016-06-23 21:23:23 245

转载 android解析XML总结(SAX、Pull、Dom三种方式)

在android开发中,经常用到去解析xml文件,常见的解析xml的方式有一下三种:SAX、Pull、Dom解析方式。 xml version="1.0" encoding="utf-8"?> books> book> name>水浒传name> price value = "45">price> pic url="http://192.168.8.14:8080/MyOrders/

2016-06-20 11:53:14 397

空空如也

空空如也

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

TA关注的人

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