- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 c++入门笔记“helloworld”
【运行环境】1.Microsoft visual c++ 6.0新建file:选择file--new--files;c++ source file;输入程序名称“helloworld”(可选择保存位置)--OK2.Microsoft visual studio 2010新建工程project:文件->新建->项目->选择win32控制台项目->输入项目名新建file雷同
2015-03-25 18:59:27 299
原创 像素、dpi、dip概念
遇到一个问题,我的地图浮标图片在WVGA手机上正好,在QVGA上就显的太大,所以我要根据屏幕的不同调整浮标的大小使其在QVGA大小合适。有的同事提出了依据分辨率来区分不同的屏幕,但是单WVGA就支持好几种不同的分辨率,QVGA又支持好几种。。。而且更神奇的时候,有时候,通过代码获取屏幕分辨率竟然得到了 320 x 427 ,Android文档是不支持这种分辨率的,所以依据分辨率来区分不同的屏幕
2014-12-22 21:59:16 887
转载 android颜色对照表
颜色代码大全 AA 指定透明度。 00 是完全透明。 FF 是完全不透明。超出取值范围的值将被恢复为默认值。 ffff00ffff33ffff66ffff99ffffccffffffffcc00ffcc33ffcc66ffcc99
2014-11-17 15:54:51 430
原创 Android 怎样在xml里打开其他xml的layout
使用include标签 android:layout_width="fill_parent"android:layout_height="wrap_content"layout="@layout/yourlayout" />
2014-11-11 20:18:18 646
原创 在color.xml中各种颜色的值
在color.xml中各种颜色的值#FFFFFF#FFFFF0#FFFFE0#FFFF00#FFFAFA#FFFAF0#FFFACD#FFF8DC#FFF5EE#FFF0F5#FFEFD5#FFEBCD#FFE4E1#FFE4C4#FFE4B5#FFDEAD#FFDAB9#FFD700#FFC0CB#FFB6C1#
2014-10-31 21:06:19 2015
原创 “Please ensure that adb is correctly located at:XXXXX”错误
启动模拟器时出现错误信息“Please ensure that adb is correctly located at:XXXXX”的解决方法 现象:使用正确的源代码,在启动模拟器时出现如下错误信息“Please ensure that adb is correctly located at 'D:\AndroidSDK4.0\android-sdk-windows\platform-t
2014-10-30 10:35:04 305
原创 “Nested weights are bad for performance”警告
警告信息“Nested weights are bad for performance”的消除方法 原因分析:在布局进行嵌套使用时,父布局与子布局都使用了android:layout_weight,但不是必须使用时,便会出现如题所示的警告信息。 解决方法:根据实际情况,去除子布局中非必须使用的android:layout_weight。
2014-10-30 10:34:26 2011
原创 “Hardcoded string "xxx", should use @string resource”警告
警告信息“Hardcoded string "xxx", should use @string resource”的消除方法 问题描述:在xml中添加Button控件,控件信息如下。 android:id="@+id/mButton_mc" android:text="mc" android:layout_widt
2014-10-30 10:33:51 2740
原创 “android library projects cannot be launched”错误
编译时提示“android library projects cannot be launched”错误的解决方法 问题描述:编译时提示“android library projects cannot be launched”错误 解决方法:选择菜单栏的“Project”,再选择“Properties”,在弹出的窗口中选择“Android”,将is library选项前面的勾去
2014-10-30 10:33:05 370
原创 “This text field does not specify an inputType or a hint”错误
在xml中添加EditText控件后提示“This text field does not specify an inputType or a hint”错误 问题描述:在xml中添加EditText控件,控件信息如下。 android:id="@+id/editText" android:layout_width="match_pa
2014-10-30 10:32:54 1645
原创 LogCat视窗没有显示
LogCat视窗没有显示 问题描述:在Eclipse的右下方没有显示LogCat视窗。 解决方法:选择菜单栏的“Windows”,再选择“Show View”,最后再选择“LogCat”即可。
2014-10-30 10:31:39 371
原创 R.java不能实时更新
R.java不能实时更新 问题描述:在res文件中新增的变量不能在R.java中实时的显示出来。 解决方法:选择菜单栏的“Project”,勾选“Build Automatically”选项。
2014-10-30 10:30:25 380
转载 ADT后在windows菜单下找不到Android SDK Manager和Android Virtual Device Manager选项的解决办法
打开ADT准备编译android工程的时候,突然发现windows菜单下的Android SDK Manager和Android Virtual Device Manager选项不见了。 在网上搜了一下,找到了解决方案: 在ADT中点击window→Customize Perspective→Command Groups availability→A
2014-10-23 22:09:22 797
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人