View子类调用findViewById()方法报cannot cast 错误 scrollview继承转换 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这跟 xml也有关系?<?xml version="1.0" encoding="utf-8"?><ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" android:paddingBottom="48dip" android:id="@+id/orderlist_scrollview"><!-- 订单列表区域 --><LinearLayout android:id="@+id/orderlist_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="10dip" android:orientation="vertical"></LinearLayout></ScrollView> 布局中你用的ScrollView,强制转换为BorderScrollView 当然报错了。 把xml中的ScrollView改成BorderScrollView吗? <?xml version="1.0" encoding="utf-8"?><net.iwetao.init.BorderScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" android:paddingBottom="48dip" android:id="@+id/orderlist_scrollview"> <!-- 订单列表区域 --><LinearLayout android:id="@+id/orderlist_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="10dip" android:orientation="vertical"></LinearLayout> </net.iwetao.init.BorderScrollView> 非常感谢,Logcat的时候看到了报错信息,找不到android.view.BorderScrollVIew 和新浪微博web一样自动填充邮箱后缀 Android使用Socket通信 如何学习安卓? 发布一个游戏引擎《StroyToolKit》 小妹继续请教TabHost实现问题。 android Menu设定后,点击无反应也无错误提示,求解 抽屉类如何设置在关闭时不全部隐藏 可以显示出一部分内容 模拟GPS功能 安卓 调用webservice安全性 Android Camera类旋转的问题 apk放到自己网站,不能下载? simpleAdapter不刷新是为什么
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:paddingBottom="48dip"
android:id="@+id/orderlist_scrollview"><!-- 订单列表区域 -->
<LinearLayout android:id="@+id/orderlist_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dip"
android:orientation="vertical">
</LinearLayout></ScrollView>
<?xml version="1.0" encoding="utf-8"?>
<net.iwetao.init.BorderScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:paddingBottom="48dip"
android:id="@+id/orderlist_scrollview">
<!-- 订单列表区域 -->
<LinearLayout android:id="@+id/orderlist_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dip"
android:orientation="vertical">
</LinearLayout>
</net.iwetao.init.BorderScrollView>