摘要:
1.将一个sentenceresult对象写入xml,并保存 private void writeToXml(sentenceresult sr) { System.Xml.Serialization.XmlSerializer writer = ... 阅读全文
摘要:
1、实现原窗体消失,打开另一个窗体,关闭新窗体时则关闭程序 private void button5_Click(object sender, EventArgs e) { Form2 form2 = new Form2(); ... 阅读全文
摘要:
1、Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); intent.putExtra("crop", true); in... 阅读全文
摘要:
xml .java 添加三张图片private ViewGroup mgroup;mgroup=(ViewGroup)findViewById(R.id.ln_Group); ImageView imageView; LayoutParams params ... 阅读全文
摘要:
1、使用Apache 的 Commons FileUpload FileUpload下载地址: http://commons.apache.org/fileupload/ 下载:commons-fileupload-1.2.2-bin.zip 得到:commons-fileupload-1.... 阅读全文
摘要:
1、在fragment的代码中 @Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(save... 阅读全文
摘要:
1long exitTime=0;@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK && event.getAction() ... 阅读全文
摘要:
RelativeLayout1、控件之间对齐底部对齐:android:layout_alignBottom="@+id/img_head"顶部对齐android:layout_alignTop="@+id/img_head"左边对齐android:layout_alignLeft="@id/tv_n... 阅读全文
摘要:
1、通过request.setAttribute传参HttpServletRequest request=ServletActionContext.getRequest(); ........request.setAttribute("list", list);#request.list ... 阅读全文
摘要:
bject转换成int型int xuefen=(Integer)request.getAttribute("xuefen");Done 阅读全文