自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 7316 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 719

转载 深入理解Adapter

一般是针对包含多个元素的View,如ListView,GridView,ExpandableListview,的时候我们是给其设置一个Adapter。Adapter是与View之间提供数据的桥梁,也是提供每个Item的视图桥梁。以ListView为例,其工作原理为:● ListView针对List中每个item, adapter都会调用一个getView的方法获

2014-08-27 19:10:25 476

转载 自定义圆形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 6013

原创 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 1532

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除