- 博客(5)
- 收藏
- 关注
原创 the environment variable java_home (with the value of ) does not point to a valid jvm installation
大概有一下几种可能:1.ava_home里面只有一个值,但你在后面加了分号。运行Java程序的时候不会报错。但是Android studio会认为不是一个正确的地址。2.有可能你写地址的时候如路径是"C:Program/java/jdk/jdk1.7.0"。你写成"c:Program/java/jdk/jdk1.7.0"。把小写的盘符c改成大写的C就行了
2015-05-01 11:52:56 7703 2
原创 listview addHeaderView()报错:ClassCastException
今天写listview的addHeaderView()的时候报了:java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams想了好久都没有想出来。后来发现自己导入header布局错了headV
2014-12-18 23:02:37 726
转载 深入理解Adapter
一般是针对包含多个元素的View,如ListView,GridView,ExpandableListview,的时候我们是给其设置一个Adapter。Adapter是与View之间提供数据的桥梁,也是提供每个Item的视图桥梁。以ListView为例,其工作原理为:● ListView针对List中每个item, adapter都会调用一个getView的方法获
2014-08-27 19:10:25 486
转载 自定义圆形ImageButton
主要的类import android.content.Context;import android.content.res.TypedArray;import android.graphics.Bitmap;import android.graphics.BitmapShader;import android.graphics.Canvas;import android.graphi
2014-08-23 11:30:46 6043
原创 error: No resource identifier found for attribute 'backgroud' in package 'android'
xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingBottom="@dimen/activity_vertical_margin" androi
2014-04-09 15:02:54 1541
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人