12 2012 档案
Listview嵌套ListView 及包含button onItemClic失效问题
摘要:1,在主Listview Item XML中最顶层这里我用的是LinearLayout 设置android:descendantFocusability="blocksDescendants"并设置主Listviewandroid:focusable="false"子ListView事件和button事件//listview事件viewHolder.listView.setOnItemClickListener(new listv_Goods());private class listv_Goods implements OnItemClickListe 阅读全文
posted @ 2012-12-31 16:01 freexiaoyu 阅读(1549) 评论(0) 推荐(0)
EditText setError 图片不显示问题
摘要:txtUserpwd.setCompoundDrawablesWithIntrinsicBounds(null, null, getResources().getDrawable(R.drawable.indicator_input_error), null); txtUserpwd.setError(getResources().getString(R.string.input_userpwd)); txtUserpwd.requestFocus();这么做图片是显示的手机默认图片而不是你自定义图片,原因为没有给图片设置大小Drawable errorIcon = getRes... 阅读全文
posted @ 2012-12-24 09:30 freexiaoyu 阅读(1288) 评论(0) 推荐(0)
PANIC: Could not open AVD config file:
摘要:昨天刚从win7转换成win8系统,安装win8的时候提示要求输入email我就把我的msn当作用户输入,因为我的msn信息中是用我的名字,在安装系统完成后也就自动创建如:c:\用户(user)\我的名字(中文)在创建模拟器后,启动模拟器提示:PANIC: Could not open AVD config file:c:\user\乱码\....搜索发现原因是中文乱码问题解决方法:在我的电脑右键属性配置系统环境变量名称:ANDROID_SDK_HOME路径:D:\androidDevice 这个路径你可以随便但不要有中文然后找到eclipse安装路径找到比如我的:E:\JAVA\eclip. 阅读全文
posted @ 2012-12-14 10:12 freexiaoyu 阅读(1551) 评论(0) 推荐(0)
case expressions must be constant expressions
摘要:adnroid项目之间引用刚被引用项目设置成is library后R文件中的变量fianl全部丢失具体什么原因不清楚,项目设置成is library后switch() 判断控件提示:case expressions must be constant expressions得知 case 必须要常量,不能是变量。把项目中的switch改为if else正常,如果不解决这个问题主项目转子项目的时候控件返回是NULL 阅读全文
posted @ 2012-12-03 11:36 freexiaoyu 阅读(2721) 评论(0) 推荐(0)