- 浏览: 832 次
- 性别:
- 来自: 北京
-
最新评论
文章列表
//侧滑布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal& ...
public class HttpUtil {
public static String Http(String path) {
try {
HttpClient client = new DefaultHttpClient();
HttpGet get = new HttpGet(path);
HttpResponse response = client.execute(get);
int code = response.getStatusLine().getStatusCode();
if (code == 200) {
HttpEntity ...
public class MyAppcilent extends Application {
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
DisplayImageOptions defaultDisplayImageOptions = new DisplayImageOptions.Builder()
.cacheInMemory(true).cacheOnDisk(true)
.showImageOnFail(R.drawable ...