摘要: ArrayAdapter的绑定方法 public class MyMain extends Activity { List<Book> list = new ArrayList<Book>(); ListView listView; @Override protected void onCreate 阅读全文
posted @ 2017-08-01 13:20 imluzhi 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 新建一个类,继承View 默认加载页面 xml文件 阅读全文
posted @ 2017-07-24 11:37 imluzhi 阅读(5086) 评论(0) 推荐(0) 编辑
摘要: ImageView a=(ImageView)findViewById(R.id.imageView2); //获取当前图片ConstantState类对象 Drawable.ConstantState t1= a.getDrawable().getCurrent().getConstantStat... 阅读全文
posted @ 2017-07-20 17:59 imluzhi 阅读(2508) 评论(0) 推荐(0) 编辑
摘要: using System.IO;using System.Drawing;using System.Threading;using System.Windows.Forms;public class WebSiteThumbnail{ Bitmap m_Bitmap; string m_... 阅读全文
posted @ 2015-12-11 09:25 imluzhi 阅读(3591) 评论(1) 推荐(0) 编辑
摘要: 1 public void downloadfile(string s_fileName) 2 { 3 HttpContext.Current.Response.ContentType = "application/ms-download"; 4 s... 阅读全文
posted @ 2015-12-11 09:22 imluzhi 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 我们用到的类库为:Newtonsoft.Json,通过VS工具中NuGet程序包可以下载。一:对象转json-序列化public class Student{ public int ID { get; set; } public string Name { get; set; } ... 阅读全文
posted @ 2015-10-16 15:35 imluzhi 阅读(1596) 评论(4) 推荐(1) 编辑
摘要: 使用的类库为:ICSharpCode.SharpZipLib.dll一种是打包整个文件夹,另一种是打包指定的多个文件,大同小异: 1 using ICSharpCode.SharpZipLib.Zip; 2 3 public partial class _Default : System.W... 阅读全文
posted @ 2015-10-12 15:27 imluzhi 阅读(2652) 评论(0) 推荐(2) 编辑
摘要: 分页控件为:AspNetPager.dll我们先建立一个产品属性名称表CREATE TABLE ProductAttr( [ID] [int] IDENTITY(1,1) NOT NULL primary key, [ParentID] [int] NULL, [Kind] [in... 阅读全文
posted @ 2015-09-28 17:59 imluzhi 阅读(830) 评论(2) 推荐(2) 编辑
摘要: 一、在支付前期,我们需要获取用户的OpenId,此块内容只针对于JSAPI(微信中直接支付)才需要,如果生成二维码(NATIVE)扫描支付,请跳过此步骤思路大致是:获取用户的code值 > 根据code值再获取用户的OpenId1、先绑定授权域名:开发者中心>网页服务>基础接口>网页授权获取用户基本... 阅读全文
posted @ 2015-09-28 17:38 imluzhi 阅读(34772) 评论(9) 推荐(1) 编辑