b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

视频播放器java版 Android 安卓RecyclerView显示本地视频并播放(2)

电脑杂谈  发布时间:2017-12-21 05:01:03  来源:网络整理

?? ?? ?? ?? android:text="内容部分"/>

?? ?? <TextView

?? ?? ?? ?? android:id="@+id/item_tv_time"

?? ?? ?? ?? android:layout_width="wrap_content"

?? ?? ?? ?? android:layout_height="wrap_content"

?? ?? ?? ?? android:layout_below="@+id/item_surface"

?? ?? ?? ?? android:textSize="18sp"

?? ?? ?? ?? android:text="播放时长:60min"/>

?? ?? <TextView

?? ?? ?? ?? android:id="@+id/item_tv_size"

?? ?? ?? ?? android:layout_width="match_parent"

?? ?? ?? ?? android:layout_height="wrap_content"

?? ?? ?? ?? android:layout_below="@+id/item_tv_time"

?? ?? ?? ?? android:textSize="18sp"

?? ?? ?? ?? android:text="视频大小:1000M"/>

?? ?? <ImageView

?? ?? ?? ?? android:layout_width="match_parent"

?? ?? ?? ?? android:layout_height="1dp"

?? ?? ?? ?? android:background="@color/colorAccent"

?? ?? ?? ?? android:layout_below="@+id/item_tv_size"

?? ?? ?? ?? android:layout_marginTop="10dp"/>

</RelativeLayout>

MainActivity

import android.content.ContentResolver;

import android.database.Cursor;

import android.net.Uri;

import android.os.Bundle;

import android.provider.MediaStore;

import android.support.v7.app.AppCompatActivity;

import android.support.v7.widget.LinearLayoutManager;

import android.support.v7.widget.RecyclerView;

import java.util.ArrayList;

import java.util.List;

public class MainActivity extends AppCompatActivity {

?? ?? private RecyclerView rv;

?? ?? private List<LocalVideoInfo>mDatas;

?? ?? LocalVideoAdapter adapter;

?? ?? @Override

?? ?? protected void onCreate(Bundle savedInstanceState) {


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-54866-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...