码迷,mamicode.com
首页 >  
搜索关键字:res    ( 29153个结果
Android 关于Dialog弹出框
直接上效果图: 实现步骤: 1.主界面activity_main.xml很简单,一个按钮   <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_wid...
分类:移动开发   时间:2014-07-19 18:27:19    阅读次数:222
Android学习笔记——Handler实例
Handler的实质就是异步消息处理。实例一:Handler的基本用法XML布局代码:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <T..
分类:移动开发   时间:2014-07-19 16:28:30    阅读次数:334
LeetCode Generate Parentheses
class Solution {public: vector generateParenthesis(int n) { string str; vector res; dfs(n, 0, 0, str, res); return res;...
分类:其他好文   时间:2014-07-19 15:28:21    阅读次数:207
LeetCode Subsets II
class Solution {public: vector > subsetsWithDup(vector &S) { int len = S.size(); vector > res; vector subset; if (len ...
分类:其他好文   时间:2014-07-19 11:35:37    阅读次数:175
SQL Injection 字典 - Oracle
OracleDefault DatabasesSYSTEMAvailable in all versionsSYSAUXAvailable in all versionsComment Out QueryThe following can be used to comment out the res...
分类:数据库   时间:2014-07-19 09:39:56    阅读次数:605
android 从assets和res中读取文件
11. assets文件夹资源的访问assets文件夹里面的文件都是保持原始的文件格式,需要用AssetManager以字节流的形式读取文件。1. 先在Activity里面调用getAssets()来获取AssetManager引用。2. 再用AssetManager的open(String fil...
分类:移动开发   时间:2014-07-19 08:31:50    阅读次数:221
Android res/raw vs assets
common:1.两者目录下的文件在打包后会原封不动的保存在apk包中,不会被编译成二进制。difference:1.res/raw中的文件会被映射到R.java文件中,访问的时候直接使用资源ID即R.id.filename;assets文件夹下的文件不会被映射到R.java中,访问的时候需要Ass...
分类:移动开发   时间:2014-07-18 15:21:40    阅读次数:242
关于屏幕适配的几点建议
1、不要使用绝对布局2、尽量使用match_parent而不是fill_parent。3、能够使用权重的地方尽量使用权重(android:layout_weight)4、如果是纯色背景,尽量使用android的shape自定义。5、如果需要在特定分辨率下适配,可以在res目录上新建layout-Hx...
分类:其他好文   时间:2014-07-18 15:02:25    阅读次数:262
ECMA中关于if与else的关系的一句英文,感觉比较经典
Each else for which the choice of assocated if is ambiguous shall be associated with the nearest possible if that would otherwise hava no correspondin...
分类:其他好文   时间:2014-07-18 14:25:57    阅读次数:208
hello nodejs
第1步:下载、安装文件     打开nodejs的官网http://www.nodejs.org/download/ ,选择需要的版本,直接打开,默认安装即可 第二步:编写测试代码: var http = require('http'); http.createServer(function(req, res) { res.writeHead(200, { 'Cont...
分类:Web程序   时间:2014-07-18 11:02:02    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!