0.前情提要 简略学习elasticsearch - 简书 并增加mapping字段timestamp PUT /danmaku/_mapping { "properties": { "timestamp": { "type": "date", "index": false } } } 1.添加maven依赖 <dependency>
android:layout_height=“match_parent” android:layout_centerInParent=“true” /> <master.flame.danmaku.ui.widget.DanmakuView android:id="@+id/danmaku_view" android:layout_width=“match_parent” android:layout_height=“match_parent” /> <Line
android:id="@+id/edit_text" android:layout_width=“0dp” android:layout_height=“match_parent” android:layout_weight=“1” /> <Button android:id="@+id/send" android:layout_width=“wrap_content” android:layout_height=“match_parent” andr
3.核心代码就要来了。在这里有几点是需要说明的。 (1)首先播放视频的话这里用到的是VideoView,使用起来也非常简单,先要设置一个视频文件的路径:String uri = “android.resource://” + getPackageName() + “/” + R.raw.danmu;然后调用start方法即可播放视频了。 (2)关于弹幕