摘要: MainActivity.java Home1Activity.java activity_main.xml activity_home1.xml activity_home2.xml selector_btn_01.xml selector_btn_02.xml selector_btn_03.x 阅读全文
posted @ 2016-03-16 16:39 aweng 阅读(247) 评论(0) 推荐(0) 编辑
摘要: public static boolean isNetworkConnected(Context context) { if (context != null) { ConnectivityManager mConnectivityManager = (ConnectivityManager) co 阅读全文
posted @ 2016-03-16 16:01 aweng 阅读(5488) 评论(0) 推荐(0) 编辑
摘要: public static String getJsonStringByEntity(Object o) { String strJson = ""; Gson gson = new Gson(); strJson = gson.toJson(o); return strJson; } 阅读全文
posted @ 2016-03-16 15:56 aweng 阅读(5751) 评论(0) 推荐(0) 编辑
摘要: public class BitmapUtil { /** * 生成一个二维码图像 * * @param url * 传入的字符串,通常是一个URL * @param QR_WIDTH * 宽度(像素值px) * @param QR_HEIGHT * 高度(像素值px) * @return bitm 阅读全文
posted @ 2016-03-16 15:54 aweng 阅读(349) 评论(0) 推荐(0) 编辑
摘要: public static int[] getScreenDispaly(Context context) { WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE) 阅读全文
posted @ 2016-03-16 15:48 aweng 阅读(1395) 评论(0) 推荐(0) 编辑
摘要: public class MyAdapter extends BaseAdapter { private Context context; public List<Students> list; private LayoutInflater mLayoutInflater; public MyAda 阅读全文
posted @ 2016-03-16 15:38 aweng 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 格式: {"name":"小红","amount":"8888","date":"4:32"} public static List<实体类> parseFinancejiluinfo(JSONArray ary) throws Exception{ List<实体类>list=new ArrayL 阅读全文
posted @ 2016-03-16 15:25 aweng 阅读(120) 评论(0) 推荐(0) 编辑