- 博客(7)
- 收藏
- 关注
转载 关于 overridePendingTransition()使用
实现两个 Activity 切换时的动画。在Activity中使用有两个参数:进入动画和出去的动画。注意1、必须在 StartActivity() 或 finish() 之后立即调用。2、而且在 2.1 以上版本有效3、手机设置-显示-动画,要开启状态//实现淡入浅出的效果startActivity(newIntent(MainActivity.this,Second
2016-06-24 12:19:23
329
转载 Fragment 和 FragmentActivity的使用
今天学习下 Android中的 Fragment 和 FragmentActivity,因为没有4.0手机,平台是2.3.3 所以我是使用 v4 support 包来进行学习。要想用Fragment 功能必须先让activity继承FragmentActivity,其原因是里面包含了Fragment运作的FragmentManager接口的实现类 FragmentManagerImpl ,
2016-06-24 11:47:37
428
转载 Android中的Layout_weight(权重)详解
以前一直没弄懂Layout_weight是什么意思,自己写代码测试也出来了不同的情况,最近看了一篇帖子感觉分析的很好,转贴出来学习下。布局文件是: android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_par
2016-06-24 10:31:10
1046
转载 白天夜间模式切换
点击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
523
转载 白天夜间模式切换(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
283
转载 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
438
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人