当前位置:网站首页>Live app system source code, automatically playing when encountering video dynamically
Live app system source code, automatically playing when encountering video dynamically
2022-06-28 19:10:00 【Yunbao network technology】
live broadcast app System source code , Start automatic playback when dynamic encounters video
One 、layout
1.activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ViewFlipper
android:id="@+id/flipper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:inAnimation="@anim/left_in"
android:outAnimation="@anim/right_out">
<ImageView
android:id="@+id/imageView7"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/hututu" />
<ImageView
android:id="@+id/imageView8"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/makabaka" />
<ImageView
android:id="@+id/imageView9"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/hututu"
/>
<ImageView
android:id="@+id/imageView10"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/hututu" />
</ViewFlipper>
</RelativeLayout>
2.left_in.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="2000"
android:fromXDelta="-100%p"
android:toXDelta="0" />
</set>
3.right_out.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="2000"
android:fromXDelta="-100%p"
android:toXDelta="0" />
</set>
Two 、MainActivity
MainActivity.java
The main methods used are
ViewFlipper flipper = (ViewFlipper) findViewById(R.id.flipper);
flipper.startFlipping();
package com.example.a86153.lunbotu;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ViewFlipper;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ViewFlipper flipper = (ViewFlipper) findViewById(R.id.flipper);
flipper.startFlipping();
}
}
That's all live broadcast app System source code , Start automatic playback when dynamic encounters video , More content welcome to follow the article
边栏推荐
- 180.1.连续登录N天(数据库)
- Get the timestamp of 0:00 and 23:59 of the current date
- 19.2 container classification, array and vector container refinement
- leetcode 1647. Minimum Deletions to Make Character Frequencies Unique(所有字母频率不同的最小删除次数)
- 3D可旋转粒子矩阵
- 让企业数字化砸锅和IT主管背锅的软件供应链安全风险指南
- async-validator. JS data verifier
- postgresql数据库docker
- 牛津大学教授Michael Wooldridge:AI社区近40年如何看待神经网络
- 小白创业做电商,选对商城系统很重要!
猜你喜欢

怎样去除DataFrame字段列名

Enhancing steam and engineering education from theory to practice

3D可旋转粒子矩阵

try except 添加辅助新列

CVPR2022 | 浙大、蚂蚁集团提出基于标签关系树的层级残差多粒度分类网络,建模多粒度标签间的层级知识

牛津大学教授Michael Wooldridge:AI社区近40年如何看待神经网络

Grafana draws the trend chart

rancher增加/删除node节点

Voice network VQA: make the user's subjective experience of unknown video quality in real-time interaction known

C# 41. int与string互转
随机推荐
大火的虚拟人在哪些产业开始发力?
找出连续7天登陆,连续30天登陆的用户
毕业设计-基于Unity的餐厅经营游戏的设计与开发(附源码、开题报告、论文、答辩PPT、演示视频,带数据库)
Windows 64位下载安装My SQL
1 goal, 3 fields, 6 factors and 9 links of digital transformation
About Statistical Distributions
深度学习需要多强的数学基础?
PostgreSQL database docker
Servlet的使用手把手教学(一)
Grafana biaxial graph with your hands
Ffmpeg learning summary
Jenkins Pipeline 对Job参数的处理
Anonymous function this pointing and variable promotion
Graduation project - Design and development of restaurant management game based on unity (with source code, opening report, thesis, defense PPT, demonstration video and database)
Openharmony - detailed source code of Kernel Object Events
CVPR2022 | 浙大、蚂蚁集团提出基于标签关系树的层级残差多粒度分类网络,建模多粒度标签间的层级知识
Show the actual work case of creating intermediate data table with SQL
展示用sql创建中间数据表的实际工作用例
Cross cluster deployment of helm applications using karmada
Advanced - Introduction to business transaction design and development