摘要: Bitmap bitmap = null;Intent intent = new Intent();Bundle bundle = new Bundle();bundle.putParcelable("bitmap", bitmap);intent.putExtra("bundle", bundle... 阅读全文
posted @ 2015-09-07 11:07 统领七界 阅读(1296) 评论(0) 推荐(0) 编辑
摘要: public final Message obtainMessage (int what, int arg1, int arg2, Object obj)这里面的4个参数求解释啊。。。byte[] buffer = new byte[1024]; int bytes;bytes... 阅读全文
posted @ 2015-09-06 18:23 统领七界 阅读(1484) 评论(0) 推荐(0) 编辑
摘要: list中可以添加任何对象,例如:class Person{.}上面定义了一个Person类,下面看好如何使用ListPerson p1=new Person();Person p2=new Person();List list=new ArrayList();list.add(p1);list.a... 阅读全文
posted @ 2015-09-06 12:07 统领七界 阅读(7253) 评论(0) 推荐(0) 编辑
摘要: 我有三个数组:[code=java]final String[] names = mThemeResources.getStringArray(names);final String[] infos = mThemeResources.getStringArray(info);final Strin... 阅读全文
posted @ 2015-09-05 21:06 统领七界 阅读(2709) 评论(0) 推荐(0) 编辑
摘要: Context.MODE_PRIVATE:为默认操作模式,代表该文件是私有数据,只能被应用本身访问,在该模式下,写入的内容会覆盖原文件的内容,如果想把新写入的内容追加到原文件中。可以使用Context.MODE_APPENDContext.MODE_APPEND:模式会检查文件是否存在,存在就往文件... 阅读全文
posted @ 2015-08-31 10:05 统领七界 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1.在XML文件中设置属性隐藏:android:visibility="invisible" android:visibility="gone"2.在java代码里:mlistview1.setVisibility(View.GONE);//mlistview1处于隐藏状态//mlistview1... 阅读全文
posted @ 2015-08-23 22:27 统领七界 阅读(5041) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/eastmount/article/details/40827939?utm_source=tuicool这篇文章主要是自己研究如何对底部菜单进行布局,并简单的实现点击不同"按钮"实现图片切换和背景切换的功能,最后通过PopupWindows实现弹出菜单,点... 阅读全文
posted @ 2015-08-20 12:25 统领七界 阅读(342) 评论(0) 推荐(0) 编辑
摘要: android:gravity的属性官方说明如下:public static final intAXIS_CLIPSince: API Level 3Raw bit controlling whether the right/bottom edge is clipped to its contain... 阅读全文
posted @ 2015-08-20 11:42 统领七界 阅读(5418) 评论(0) 推荐(0) 编辑
摘要: 原创:http://www.haolizi.net/example/view_447.html【实例简介】【实例截图】通过TabWidget实现实现方式二:隐藏TabWidget,通过RadioGroup和RadioButton实现底部菜单栏【核心代码】实现方式一:通过TabWidget实现这种方式... 阅读全文
posted @ 2015-08-19 14:26 统领七界 阅读(2759) 评论(0) 推荐(0) 编辑
摘要: 1、添加权限:AndroidManifest.xml中必须使用权限:"android.permission.INTERNET",否则会出Web page not available错误。 2、创建WebView实例:WebView webView = new WebView(this); 3、We... 阅读全文
posted @ 2015-08-19 13:41 统领七界 阅读(1203) 评论(0) 推荐(0) 编辑