我正在尝试实现一个RecylerView,它一次在屏幕上显示一个CardView,并通过两个左右箭头ImageButtons进行控制。我不想让用户自己在RecyclerView中滚动。如何禁用RecylerView的滚动和抛出功能?
下面是我用LinearLayoutManager初始化视图的地方
final LinearLayoutManager llm = new LinearLayoutManager(this);
llm.setOrientation(LinearLayoutManager.HORIZONTAL);
final RecyclerView re
我最近开始使用Chromecast API。我正在加载一个m3u8文件,运行得很好。唯一的问题是视频没有拉伸。
这就是我如何构建MediaInfo的:
MediaInfo m =
new MediaInfo.Builder("http://selevision9877-i.akamaihd.net/hls/live/219121/98773/1.m3u8")
.setContentType("video/mp4")