我正在制作幻灯片。滑动节目正在工作但是当我用手向前或向后移动图像时,应用程序崩溃并发出错误
"06-09 12:23:45.911: java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.Gallery$LayoutParams"
Got a ClassCastException in onLayout most likely caused by a racecondition in the mRecycle bin "
我正在使用媒体路由器,它总是警告媒体路由器无法启动。 这是我的媒体路由器代码
MenuItem mediaRouteItem = menu.findItem( R.id.menuChromecast );
android.support.v7.app.MediaRouteButton mediaRouteButton = (android.support.v7.app.MediaRouteButton) mediaRouteItem.getActionView();
return true;