代码改变世界

随笔分类 -  备忘

xml嵌套和循环控件资源

2012-11-05 22:40 by bitfairyland, 2646 阅读, 收藏,
摘要: 最近问卷输入项很多,大致分为几个类型,如果正常布局就非常繁琐而且比较乱用到了xml嵌套子xml,chose.xml 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 阅读全文

Android环境变量的设置

2011-05-24 19:23 by bitfairyland, 592 阅读, 收藏,
摘要: 前边设置JDK的环境变量忘了说Android的环境变量设置了,补一篇,方便调用Android的平台命令 1,首先设置SDK的路径ANDROID_SDK_HOME,指向自己本机的SDK路径 2,只是sdk的tools和platform-tools路径在path里,指向SDK下边文件夹 设置完成后调用adb,返回下列参数说明成功。如果不成功请关闭cmd窗口从新打开,如果还未成功请仔细检查路径 阅读全文

Android应用目录(二)----资源的调用

2011-05-23 22:08 by bitfairyland, 594 阅读, 收藏,
摘要: Accessing ResourcesQuickviewResources can be referenced from code using integers from R.java, such as R.drawable.myimageResources can be referenced from resources using a special XML syntax, such as @drawable/myimageYou can also access your app resources with methods in ResourcesKey classesResources 阅读全文

Android应用目录(一)-----资源目录

2011-05-23 22:03 by bitfairyland, 816 阅读, 收藏,
摘要: Application List MyApp/AndroidManifest.xml(required) Advertises the screens that this application provides, where they can be launched (from the main program menu or elsewhere), any content providers it implements and what kind of data they handle, where the implementation classes are, and other app 阅读全文

Web服务器变量的集合(Request.ServerVariables)

2009-12-29 13:50 by bitfairyland, 488 阅读, 收藏,
摘要: 格式:Request.ServerVariables[int index|string name]name和对应含义如下:Url =〉返回服务器地址Path_Info =〉客户端提供的路径信息Appl_Physical_Path =〉与应用程序元数据库路径相应的物理路径Path_Translated =〉通过由虚拟至物理的映射后得到的路径Script_Name =〉执行脚本的名称Query_Str... 阅读全文