ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

安全知识普及系统4

2022-06-14 20:33:27  阅读:143  来源: 互联网

标签:视频 普及 第二阶段 知识 安全 mysql 跳转 搭建 页面


第二阶段刚开始,在使用mysql并没有成功后,先行搭建了视频跳转的页面。

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".activity.MainPageActivity">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="674dp"
        >
        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <TextView
                android:id="@+id/xiaofangprc"
                android:layout_width="386dp"
                android:layout_height="196dp"
                android:layout_marginLeft="20dp"
                android:layout_marginTop="10dp"
                android:background="@drawable/xiaofang" />
            <TextView
                android:id="@+id/xiaofangtext"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/xiaofangprc"
                android:layout_marginLeft="170dp"
                android:layout_marginTop="0dp"
                android:text="消防安全"
                android:textSize="20sp" />

            <TextView
                android:id="@+id/yongdianprc"
                android:layout_width="386dp"
                android:layout_height="196dp"
                android:layout_below="@id/xiaofangtext"
                android:layout_marginLeft="20dp"
                android:layout_marginTop="10dp"
                android:background="@drawable/yongdian" />
            <TextView
                android:id="@+id/yongdiantext"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/yongdianprc"
                android:layout_marginLeft="170dp"
                android:layout_marginTop="0dp"
                android:text="用电安全"
                android:textSize="20sp" />

            <TextView
                android:id="@+id/anquanprc"
                android:layout_width="386dp"
                android:layout_height="184dp"
                android:layout_below="@id/yongdiantext"
                android:layout_marginLeft="20dp"
                android:layout_marginTop="10dp"
                android:background="@drawable/anquan" />

            <TextView
                android:id="@+id/xiaoyuantext"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/yongdianprc"
                android:layout_marginLeft="170dp"
                android:layout_marginTop="0dp"
                android:text="校园安全"
                android:textSize="20sp" />

            <TextView
                android:id="@+id/wangluoprc"
                android:layout_width="386dp"
                android:layout_height="184dp"
                android:layout_below="@id/xiaoyuantext"
                android:layout_marginLeft="20dp"
                android:layout_marginTop="10dp"
                android:background="@drawable/netsq" />

            <TextView
                android:id="@+id/wangluotext"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/wangluoprc"
                android:layout_marginLeft="170dp"
                android:layout_marginTop="0dp"
                android:text="网络安全"
                android:textSize="20sp" />

        </LinearLayout>

    </ScrollView>



    <RadioGroup
        android:id="@+id/rg_tab"
        android:layout_width="fill_parent"
        android:layout_height="55dp"
        android:gravity="center_vertical"
        android:layout_alignParentBottom="true"
        android:orientation="horizontal"
        android:background="@drawable/backgroundcolor"
        >

        <RadioButton
            android:id="@+id/rb_msg"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:button="@null"
            android:checked="true"
            android:gravity="center"
            android:paddingLeft="0dp"
            android:text="收藏" />

        <RadioButton
            android:id="@+id/rb_find"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:button="@null"
            android:gravity="center"
            android:paddingLeft="0dp"
            android:text="主页" />
        <RadioButton
            android:id="@+id/rb_me"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:button="@null"
            android:gravity="center"
            android:paddingLeft="0dp"
            android:text="我" />
    </RadioGroup>
</RelativeLayout>
<?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"
    android:orientation="vertical"
    android:padding="20dp"
    >

    <TextView
        android:id="@+id/title_elect"
        android:text="用电安全教育视频"
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:gravity="center"
        android:textSize="30dp"
        />

    <VideoView
        android:id="@+id/vdelect"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        android:layout_below="@+id/title_elect" />

    <Button
        android:id="@+id/play_ele"
        android:layout_width="160dp"
        android:layout_height="80dp"
        android:layout_below="@+id/vdelect"
        android:layout_marginTop="20dp"
        android:text="播放" />
    <Button
        android:id="@+id/stop_ele"
        android:layout_width="160dp"
        android:layout_height="80dp"
        android:text="终止播放"
        android:layout_below="@+id/vdelect"
        android:layout_marginTop="20dp"
        android:layout_alignParentRight="true"
        />

</RelativeLayout>
<?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"
    android:orientation="vertical"
    android:padding="20dp"
    >

    <TextView
        android:id="@+id/tx_0"
        android:text="校园安全教育视频"
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:gravity="center"
        android:textSize="30dp"
        />
    <VideoView
        android:id="@+id/vd_school"
        android:layout_below="@+id/tx_0"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        />
    <Button
        android:id="@+id/play"
        android:layout_width="160dp"
        android:layout_height="80dp"
        android:text="播放"
        android:layout_below="@+id/vd_school"
        android:layout_marginTop="20dp"
        />
    <Button
        android:id="@+id/stop"
        android:layout_width="160dp"
        android:layout_height="80dp"
        android:text="终止播放"
        android:layout_below="@+id/vd_school"
        android:layout_marginTop="20dp"
        android:layout_alignParentRight="true"
        />

</RelativeLayout>

 

标签:视频,普及,第二阶段,知识,安全,mysql,跳转,搭建,页面
来源: https://www.cnblogs.com/shiwuzu/p/16376229.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有