你要是继承了BaseAdapter这样的,必须要调用父类的构造函数。
解决方案 »
- 新手求教!intent.setclass()问题
- ExpandableListview GroupView问题
- 为什么屏幕分辨率不对 !!我用其他的窗口就对 , 是不是窗口问题 求大神了
- 简单程序,自身触发performclick为什么会造成进程终止???
- monkeyrunner 通过id获取控件
- 急!急!急!求大神们指点如果在android平台下开启jbox2d的debugDraw功能
- Serializable通过socket方式发送与接收的问题
- 真机调试出现闪退现象,求大神支招,雪地里跪等
- 用NFC做巡检功能的相关问题
- Androidstudio开发九宫格数字拼图1--8
- android kikat framework的资源添加问题
- android 多线程望高人指点思路
{
public GalleryAdapter(Context ct, String[] texts,float rh){}
public GalleryAdapter(Context ct, Bitmap[] bitmaps,float rh){}
}继承它后,不能改变构造函数吗?
public GalleryAdapter(Context ct, Bitmap[] bitmaps,float rh){}这2个函数里面 要调用父类的构造函数才行。
http://blog.csdn.net/ningbowxj3/article/details/1418939
应该不是这个问题
ad_parent= new GalleryAdapter(this,catalogListNames,0.5);
gr_parent.setAdapter(ad_parent);
Bitmap[] itemListBitmaps=citemList.getListBitmaps(CFile.sProductFile);
ad_child= new GalleryAdapter(this,itemListBitmaps,1);上面代码,提示下面错误:
错误: 对于GalleryAdapter(DesignActivity,String[],double), 找不到合适的构造器
构造器 GalleryAdapter.GalleryAdapter(Context,Bitmap[],float)不适用
(无法通过方法调用转换将实际参数String[]转换为Bitmap[])
构造器 GalleryAdapter.GalleryAdapter(Context,String[],float)不适用
(无法通过方法调用转换将实际参数double转换为float)