下面给大家说一下ijkplayer这个播放器,也算是一个比较老的播放器了:
先给大家展示一下效果图,这是我做的一个小Demo,看看是不是大家要的结果:
先给大家展示一下效果图,这是我做的一个小Demo,看看是不是大家要的结果:
上面是ijkplayer播放器,我添加的播放控制器比较丑,就不展示了,首页是一个轮播图加双RecyclerView的嵌套进行数据的一个展示,由于首页图片无法上传就不进行展示了。
先发一下首页的xml布局:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="190dp"
android:id="@+id/head_Layout"
android:focusable="true"
android:focusableInTouchMode="true"
>
<com.bigkoo.convenientbanner.ConvenientBanner
android:layout_width="match_parent"
android:layout_height="190dp"
android:id="@+id/banner"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
/>
<EditText
android:layout_width="300dp"
android:layout_height="43dp"
android:id="@+id/select_edit"
android:textColorHint="#ececec"
android:hint="一念天堂"
android:drawableLeft="@drawable/web_select"
android:background="@drawable/edit_sele"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:paddingLeft="5dp"
android:layout_marginTop="19dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/head_Layout"
android:background="#005277"
>
<zhangtao.bwie.com.demo.MyRecy
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/recy_view"
android:background="#005277"
></zhangtao.bwie.com.demo.MyRecy>
</RelativeLayout>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
</RelativeLayout>
接下来是首页的一些数据展示: