|
@@ -20,38 +20,157 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:gravity="center"
|
|
|
- android:text="个人中心"
|
|
|
+ android:text="播放视频的案例展示"
|
|
|
android:textSize="18sp"
|
|
|
android:textColor="@color/blackText"/>
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_1"
|
|
|
+ <ScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:padding="10dp"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:background="@color/gray3"
|
|
|
- android:text="我的视频缓存"/>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_2"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:padding="10dp"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:background="@color/gray3"
|
|
|
- android:text="我的音频缓存"/>
|
|
|
-
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="10dp">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_0"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="0.所有api说明"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="1.最简单的播放视频"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_2"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="2.竖屏全屏播放/横屏全屏播放"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_3"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="3.小窗口播放视频"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_4"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="4.页面悬浮可拖动小窗口播放视频"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_5"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="5.全屏播放可以切换视频清晰度"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_6"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="6.在fragment中播放"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_7"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="7.在列表中播放,滑动停止播放"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_8"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="8.在activity中处理播放时按下home处理视频逻辑"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_9"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="9.在fragment中处理播放时按下home处理视频逻辑"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_10"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="10.显示视频top顶部分享,下载,更多等按钮"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_11"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="11.仿抖音可上下滑动播放视频"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_12"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="12."/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_13"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="13."/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_14"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="14."/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_15"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="15."/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_16"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:text="16."/>
|
|
|
+ </LinearLayout>
|
|
|
+ </ScrollView>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_3"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:padding="10dp"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:background="@color/gray3"
|
|
|
- android:text="关于我的说明"/>
|
|
|
|
|
|
</LinearLayout>
|