Xlistview的应用2

摘要: 自定义的Xlistview类 package com.example.listviewshangxia;import java.text.SimpleDateFormat;import java.util.Date;import android.annotation.SuppressLint;imp 阅读全文
posted @ 2016-03-23 20:20 天空很大,我们很小 阅读(131) 评论(0) 推荐(0) 编辑

Xlistview的应用1(上拉刷新,下拉加载)

摘要: 在主activity中,设置一些属性 package com.example.listviewshangxia;import java.util.ArrayList;import java.util.HashMap;import java.util.Map;import android.app.Ac 阅读全文
posted @ 2016-03-23 20:19 天空很大,我们很小 阅读(159) 评论(0) 推荐(0) 编辑

夜间模式 (文字不改变)

摘要: package com.chenke.night;import java.nio.MappedByteBuffer;import android.os.Bundle;import android.app.Activity;import android.content.Context;import a 阅读全文
posted @ 2016-03-23 12:28 天空很大,我们很小 阅读(228) 评论(0) 推荐(0) 编辑

夜间模式的切换

摘要: //黑夜白天模式切换的配置attrs<resources> <attr name="bjcolor" format="reference|color"></attr> <attr name="txcolor" format="reference|color"></attr></resources>s 阅读全文
posted @ 2016-03-23 12:26 天空很大,我们很小 阅读(204) 评论(0) 推荐(0) 编辑

WebView加载html页面

摘要: //webview加载HTML页面 webview = (WebView) findViewById(R.id.webview); // webview = new WebView(this); // 设置WebView属性,能够执行Javascript脚本 webview.getSettings( 阅读全文
posted @ 2016-03-23 12:26 天空很大,我们很小 阅读(283) 评论(0) 推荐(0) 编辑

httpClient(Get)进行网络请求

摘要: //请求网络数据String result = ""; StringBuffer str = new StringBuffer(ur); HttpGet get = new HttpGet(str.toString()); HttpParams parms = new BasicHttpParams 阅读全文
posted @ 2016-03-23 12:25 天空很大,我们很小 阅读(253) 评论(1) 推荐(0) 编辑