zhangqifan1

Results 19 comments of zhangqifan1

getItemType getDefItemType getItem getDefItemCount 这四个嘛?

我把liabray写在项目里可以使用了。。。。

我把``LongPressEventView viewLongPress = findViewById(R.id.surface_container); viewLongPress.setLongPressEventListener(new LongPressEventView.LongPressEventListener() { @Override public void onLongClick(View v) { //震动反馈 v.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING); if (mediaInterface != null) { mediaInterface.setSpeed(2); tvSpeed.setVisibility(View.VISIBLE); } } @Override public void onDisLongClick(View v)...

![图片](https://user-images.githubusercontent.com/29973474/132155382-d4cfd300-d2dd-459e-a0d0-6350baa0dc49.png)

...我这么写的报错了... 是不是这么不对着

![图片](https://user-images.githubusercontent.com/29973474/132155879-f975d56b-728f-41a6-a787-2c379b04f137.png) ![图片](https://user-images.githubusercontent.com/29973474/132155889-1299f5a1-69f0-4638-96c3-a6734e55fdf8.png)

按理说这个继承的FramLayout 应该没问题啊 为啥报类型转换异常...

照抄的jzsdstdspeed 的布局 改了一下FramLayout->LongPressEventView

大佬我得吃饭去了,不能立马回复你了,我吃完就回来