摘要:
导包import com.google.gson.reflect.TypeToken; //获取数据 String st=NetWork.geturl(URL); //解析数据 Gson gson=new Gson(); //typetoken解析数组 Type type=new TypeToken 阅读全文
摘要:
XMl <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="ma 阅读全文
摘要:
在xml文件下创建图片imageview在res下创建文件夹选Tween animation类型文件夹名称anim以下文件透明动画 <?xml version="1.0" encoding="utf-8"?><alpha xmlns:android="http://schemas.android.c 阅读全文
摘要:
package com.example.day11_actionbardemo; import android.os.Bundle;import android.app.ActionBar;import android.app.ActionBar.OnNavigationListener;impor 阅读全文
摘要:
//着色String str = my_info.getTitle();//得到总共的数据title//得到搜索关键字的开始索引if(name != null){//要改变的字体int indexOf = str.indexOf(name);//开始长度if(indexOf != -1){int e 阅读全文
摘要:
package com.bawei.lian2; import java.util.ArrayList;import java.util.HashSet;import java.util.List;import java.util.Set; import com.bawei.vo.Good;impo 阅读全文
摘要:
import java.io.Serializable;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map; import android.os.Bundle;i 阅读全文
摘要:
// 对话框 AlertDialog.Builder builder = new Builder(MainActivity.this); builder.setMessage("是否确认删除!") .setPositiveButton("确认", new DialogInterface.OnClic 阅读全文
摘要:
配置权限 <uses-permission android:name="android.permission.BLUETOOTH"/><uses-permission android:name="android.permission.INTERNET"/><uses-permission andro 阅读全文
摘要:
扫描文件及文件夹 package com.bwie.demo; import java.io.File;import java.io.FileFilter;import java.util.ArrayList;import java.util.List; public class Demo { pr 阅读全文