会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
行云有影
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
35
下一页
2014年5月27日
C#写入对象到XML/从XML读取对象
摘要: 1.将一个sentenceresult对象写入xml,并保存 private void writeToXml(sentenceresult sr) { System.Xml.Serialization.XmlSerializer writer = ...
阅读全文
posted @ 2014-05-27 14:52 行云有影
阅读(1323)
评论(0)
推荐(0)
2014年5月26日
C#打开另一个窗体
摘要: 1、实现原窗体消失,打开另一个窗体,关闭新窗体时则关闭程序 private void button5_Click(object sender, EventArgs e) { Form2 form2 = new Form2(); ...
阅读全文
posted @ 2014-05-26 18:08 行云有影
阅读(7784)
评论(0)
推荐(0)
2014年5月23日
Intent启动照片或者相机
摘要: 1、Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); intent.putExtra("crop", true); in...
阅读全文
posted @ 2014-05-23 08:36 行云有影
阅读(381)
评论(0)
推荐(0)
2014年5月22日
ViewGroup
摘要: xml .java 添加三张图片private ViewGroup mgroup;mgroup=(ViewGroup)findViewById(R.id.ln_Group); ImageView imageView; LayoutParams params ...
阅读全文
posted @ 2014-05-22 20:48 行云有影
阅读(195)
评论(0)
推荐(0)
2014年5月21日
上传文件的表单
摘要: 1、使用Apache 的 Commons FileUpload FileUpload下载地址: http://commons.apache.org/fileupload/ 下载:commons-fileupload-1.2.2-bin.zip 得到:commons-fileupload-1....
阅读全文
posted @ 2014-05-21 23:22 行云有影
阅读(270)
评论(0)
推荐(0)
添加菜单到fragment
摘要: 1、在fragment的代码中 @Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(save...
阅读全文
posted @ 2014-05-21 18:58 行云有影
阅读(473)
评论(0)
推荐(0)
Android中的“再按一次返回键退出程序”实现
摘要: 1long exitTime=0;@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK && event.getAction() ...
阅读全文
posted @ 2014-05-21 12:49 行云有影
阅读(166)
评论(0)
推荐(0)
2014年5月20日
RelativeLayout
摘要: RelativeLayout1、控件之间对齐底部对齐:android:layout_alignBottom="@+id/img_head"顶部对齐android:layout_alignTop="@+id/img_head"左边对齐android:layout_alignLeft="@id/tv_n...
阅读全文
posted @ 2014-05-20 23:44 行云有影
阅读(304)
评论(0)
推荐(0)
2014年5月18日
strust2之jsp调用action的变量
摘要: 1、通过request.setAttribute传参HttpServletRequest request=ServletActionContext.getRequest(); ........request.setAttribute("list", list);#request.list ...
阅读全文
posted @ 2014-05-18 19:03 行云有影
阅读(295)
评论(0)
推荐(0)
2014年5月17日
request.getAttribute得到的是object要转型
摘要: bject转换成int型int xuefen=(Integer)request.getAttribute("xuefen");Done
阅读全文
posted @ 2014-05-17 15:51 行云有影
阅读(312)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
35
下一页
公告