- 博客(8)
- 收藏
- 关注
转载 Android LayoutInflater详解
在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、TextView等)。具体作用:1、对于一个没有被载入或者想要动态载入的界面,都需要使用L
2016-10-25 16:02:45 246
翻译 php 发起 post http请求 ,并传body内容 到另一个php页面
You need to use the cURL library to send this request.php// Your ID and token$blogID = '8070105920543249955';$authToken = 'OAuth 2.0 token here';// The data to send to the API$postData = array
2016-09-23 13:29:47 10916
转载 Mysql中如何设置日期字段默认值为当前日期
获得当前时间 select current_time; 获得当前日期 select current_date; Select CurDate(); Select CurTime(); Select Now(); 我们都知道在sqlserver中可以很容易指定日期类型字段的默认值为当前服务器操作系统的日期,getd
2016-09-19 15:02:14 3472
原创 android view getWidth 和 getHeight 的值为0
The getWidth and getHeight methods will return 0 if the view has not yet been inflated. For example, if you are trying to access it in the onCreate of the Activity, you'll get zero.在UI 组件还未显示在界面之前调用
2016-09-10 22:15:43 484
原创 Android 隐藏标题栏
android开发,隐藏标题栏只写requestWindowFeature(Window.FEATURE_NO_TITLE);不能隐藏。需要写成:getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);requestWindowFeature(Win
2016-09-08 13:30:20 180
原创 创建mysql的一个用户
grant select, insert , delete, updateon books.*to bookorama identified by "bookorame123";
2016-08-31 18:09:34 217
原创 安装OS X El Capitan后pod: command not found
如果已经安装过cocoa pods只要运行下以下命令就可以了。亲测成功sudo chmod -R 755 /usr/local/bin
2016-08-18 02:53:20 201
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人