首页、实时监控视频

吴爽
px2r39hn8 5 months ago committed by zhangjie
commit 03fb3c3d5c

15
.gitignore vendored

@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties

3
.idea/.gitignore vendored

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="17" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="jbr-17" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>

@ -0,0 +1,5 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
</profile>
</component>

@ -0,0 +1,12 @@
<project version="4">
<component name="CodeInsightWorkspaceSettings">
<option name="optimizeImportsOnTheFly" value="true" />
</component>
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

@ -0,0 +1,2 @@
# test1

1
app/.gitignore vendored

@ -0,0 +1 @@
/build

@ -0,0 +1,47 @@
plugins {
id("com.android.application")
}
android {
namespace = "com.example.final_project_app"
compileSdk = 33
defaultConfig {
applicationId = "com.example.final_project_app"
minSdk = 24
targetSdk = 33
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
dependencies {
//noinspection GradleCompatible,GradleCompatible
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.8.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
//轮播图依赖使用三方开源库youth5201314
implementation("io.github.youth5201314:banner:2.2.2")
//视频播放器依赖
implementation("com.android.support:recyclerview-v7:33.0.0")
//implementation("com.github.bumptech.glide:glide:4.8.0")
}

@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

@ -0,0 +1,26 @@
package com.example.final_project_app;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.final_project_app", appContext.getPackageName());
}
}

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!-- 添加网络权限 -->
<uses-permission android:name="android.permission.INTERNET" /> <!-- 读取权限 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
tools:ignore="ProtectedPermissions" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Final_Project_app"
tools:targetApi="31">
<activity
android:name=".ui.waitActivity5"
android:exported="false" />
<activity
android:name=".ui.waitActivity3"
android:exported="false" />
<activity
android:name=".ui.waitActivity2"
android:exported="false" />
<activity
android:name=".ui.waitActivity"
android:exported="false" />
<activity
android:name=".PlayActivity"
android:exported="false" />
<activity
android:name=".sql.UpdateNoteActivity"
android:exported="true" />
<activity
android:name=".sql.AddNoteActivity"
android:exported="true" />
<activity
android:name=".Helpctivity"
android:exported="true" />
<activity
android:name=".AboutUsActivity"
android:exported="true" />
<activity
android:name=".IntroducttoryActivity"
android:exported="true" />
<activity
android:name=".StartActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LoginActivity"
android:exported="true" />
<activity
android:name=".RegistActivity"
android:exported="true" />
<activity
android:name=".MainActivity"
android:exported="true" />
</application>
</manifest>

@ -0,0 +1,195 @@
package com.example.final_project_app.Fragment;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.final_project_app.R;
import com.example.final_project_app.adpter.BannerViewAdapter;
import com.example.final_project_app.db.CultrualData;
import com.example.final_project_app.db.bannerBean;
import com.youth.banner.Banner;
import com.youth.banner.indicator.CircleIndicator;
import java.util.ArrayList;
import java.util.List;
public class FirstFragment extends Fragment {
//菜单栏按钮
private Button menu_bnt1,menu_btn2,menu_btn3,menu_btn4;
//定义轮播图片
private final ArrayList<bannerBean> banners;
//定义文物列表
private List<CultrualData> CuList = new ArrayList<CultrualData>();
//定义布局
private RecyclerView recyclerView;
//定义文物适配器
CultrualAdapter adapter;
//轮播
public FirstFragment() {
//本地图片
banners = new ArrayList<>();
banners.add(new bannerBean(R.drawable.banner1));
banners.add(new bannerBean(R.drawable.banner2));
banners.add(new bannerBean(R.drawable.banner3));
banners.add(new bannerBean(R.drawable.banner4));
banners.add(new bannerBean(R.drawable.banner5));
banners.add(new bannerBean(R.drawable.banner6));
banners.add(new bannerBean(R.drawable.banner7));
banners.add(new bannerBean(R.drawable.banner8));
banners.add(new bannerBean(R.drawable.banner9));
}
//
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View inflate = inflater.inflate(R.layout.fg_first, container, false); // 通过inflater获取页面
initCrlists();
//获取recyclerview水平可滑动列表
recyclerView = inflate.findViewById(R.id.recyclerview);
adapter = new CultrualAdapter();
recyclerView.setAdapter(adapter);
LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
//设置间隔线
DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL);
recyclerView.addItemDecoration(dividerItemDecoration);
layoutManager.setOrientation(recyclerView.HORIZONTAL);//水平/垂直显示
recyclerView.setLayoutManager(layoutManager);
//获取banner
Banner banner = inflate.findViewById(R.id.banner);
//设置banner
//添加生命周期,回调这个方法
banner.addBannerLifecycleObserver(this)
//为banner设置适配器并将数据传递进去
.setAdapter(new BannerViewAdapter(banners, this))
//添加指示器
.setIndicator(new CircleIndicator(getContext()));
return inflate;
//返回inflate对象
}
//菜单按钮点击事件
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
// //菜单栏点击跳转事件
/* menu_bnt1 = getActivity().findViewById(R.id.btn1);
menu_bnt1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getActivity(), waitActivity.class);
startActivity(intent);
}
});
menu_btn2= getActivity().findViewById(R.id.btn2);
menu_btn2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getActivity(), waitActivity2.class);
startActivity(intent);
}
});
menu_btn3=getActivity().findViewById(R.id.btn3);
menu_btn3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getActivity(), waitActivity3.class);
startActivity(intent);
}
});
menu_btn4 = getActivity().findViewById(R.id.btn4);
menu_btn4.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getActivity(), waitActivity5.class);
startActivity(intent);
}
});*/
}
//文物列表通过add将数据加入列表中
private void initCrlists() {
CultrualData list1 = new CultrualData("物联网IoT技术物联网技术在智能仓库管理系统中扮演着重要的角色" +
"可以实现对仓库设备、货物、运输工具等的实时监控和数据采集,提高仓库运作的效率和透明度。", R.drawable.wulianwang);
CuList.add(list1);
CultrualData list2 = new CultrualData("无人机和无人车:无人机和无人车可以用于仓库内的库存管理和货物分拣," +
"实现自动化的仓库操作和物流管理,有效提高作业效率。", R.drawable.wurenji);
CuList.add(list2);
CultrualData list3 = new CultrualData("人工智能AI和机器学习通过人工智能和机器学习技术智能仓库管" +
"理系统可以对仓库数据进行智能分析和预测,优化仓储布局、库存管理和订单处理等流程,提高仓库运营效率。", R.drawable.jiqiren);
CuList.add(list3);
CultrualData list4 = new CultrualData("大数据分析:利用大数据分析技术对仓库数据进行深入的挖掘和分析,可以" +
"帮助仓库管理系统更好地了解仓库运作情况,发现潜在问题并提出优化建议。", R.drawable.dashuju);
CuList.add(list4);
CultrualData list5 = new CultrualData("无人机自动化技术:是一种重要的创新,它极大地提高了仓库作业的效率、" +
"降低了成本,并实现了仓库的智能化管理。", R.drawable.zidonghua);
CuList.add(list5);
CultrualData list6 = new CultrualData("虚拟现实VR和增强现实AR技术通过虚拟现实和增强现实技术可" +
"以帮助仓库管理人员更直观地了解仓库内部情况,进行培训和模拟操作,提高管理人员和操作人员的工作效率。", R.drawable.xunivr);
CuList.add(list6);
}
class CultrualAdapter extends RecyclerView.Adapter<MyViewHoder> {
@NonNull
@Override
public MyViewHoder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = View.inflate(getContext(), R.layout.cltrua_list, null);
MyViewHoder myViewHoder = new MyViewHoder(view);
// 将View对象传入ViewHolder构造函数创建ViewHolder对象并返回
return myViewHoder;
}
// onBindViewHolder方法用于绑定数据到ViewHolder对象
// 参数holder表示要绑定的ViewHolder对象position表示当前项的位置
@Override
public void onBindViewHolder(@NonNull MyViewHoder holder, @SuppressLint("RecyclerView") int position) {
// 从数据列表中获取当前位置的数据
CultrualData Cul = CuList.get(position);
//第二步
// 将数据设置到ViewHolder对象的textView中
// holder.textView.setText(fruit.getName());//fruit.getImageId()
holder.imageview.setBackgroundResource(Cul.getImageId());
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(getContext(),
""+CuList.get(position),
Toast.LENGTH_LONG).show();
}
});
}
@Override
public int getItemCount() {
return CuList.size();
}
}
class MyViewHoder extends RecyclerView.ViewHolder {
TextView textView;
ImageView imageview;
public MyViewHoder(@NonNull View itemView) {
super(itemView);
textView = itemView.findViewById(R.id.fruit_name);
imageview = itemView.findViewById(R.id.fruit_image);
}
}
}

@ -0,0 +1,51 @@
package com.example.final_project_app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
import com.example.final_project_app.R;
import com.example.final_project_app.adpter.MovieAdapter;
import com.example.final_project_app.db.Movie;
import java.util.ArrayList;
import java.util.List;
public class TwoFragment extends FirstFragment{
RecyclerView recyclerView;
List<Movie> movieList;
MovieAdapter movieAdapter;
private static final String TAG="MovieActivity";
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fg_two,container,false);
return view;
}
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
recyclerView = getActivity().findViewById(R.id.fg_tworecyclerview);
initData();
}
private void initData() {
//建立动态数组存放数据
movieList = new ArrayList<>();
/* //获取本工程中的视频*/
Movie one=new Movie("货物1","android.resource://"+getActivity().getPackageName()+"/"+R.raw.hw1);
movieList.add(one);
Movie two=new Movie("货物2","android.resource://"+ getActivity().getPackageName()+"/"+R.raw.hw2);
movieList.add(two);
//将视频显示在控件上
movieAdapter = new MovieAdapter(movieList);
StaggeredGridLayoutManager layoutManager = new StaggeredGridLayoutManager(1, StaggeredGridLayoutManager.VERTICAL);
recyclerView.setLayoutManager(layoutManager);
recyclerView.setAdapter(movieAdapter);
}
}

@ -0,0 +1,95 @@
package com.example.final_project_app;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import androidx.viewpager.widget.ViewPager;
import com.example.final_project_app.Fragment.FirstFragment;
import com.example.final_project_app.Fragment.TwoFragment;
public class MainActivity extends AppCompatActivity implements ViewPager.OnPageChangeListener{
private FrameLayout fg_main;
private FragmentManager fm;
private ViewPager vp;
public static final int PAGE_ONE = 0;
public static final int PAGE_TWO = 1;
public static final int PAGE_THREE = 2;
public static final int PAGE_FOUR = 3;
public static final int PAGE_Five = 4;
// private MyFragmentPaperAdapter mPaperAdapter;
private TextView tv1;
private TextView tv2;
@SuppressLint("MissingInflatedId")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
fg_main = (FrameLayout) findViewById(R.id.fg_main);
vp = (ViewPager) findViewById(R.id.vp);
tv1 = (TextView) findViewById(R.id.tv_one);
tv2 = (TextView) findViewById(R.id.tv_two);
// mPaperAdapter = new MyFragmentPaperAdapter(getSupportFragmentManager());
// vp.setAdapter(mPaperAdapter);
vp.setCurrentItem(0);
vp.addOnPageChangeListener((ViewPager.OnPageChangeListener) this);
}
//MYClick点击事件
public void MyClick(View view){
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
//创建页面类对象
FirstFragment page1 = new FirstFragment();
TwoFragment page2 = new TwoFragment();
//点击页面替换
if (view.getId()== R.id.tv_one){
// ft.replace(R.id.fg_main,page1);
vp.setCurrentItem(PAGE_ONE);
}else if (view.getId()==R.id.tv_two){
//ft.replace(R.id.fg_main,page2);
vp.setCurrentItem(PAGE_TWO);
}
ft.commit();
}
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
}
@Override
public void onPageSelected(int position) {
}
//滑动切换判断事件
@Override
public void onPageScrollStateChanged(int state) {
if (state==2){
switch (vp.getCurrentItem()){
case PAGE_ONE:
tv1.setSelected(true);
//tv1.setBackgroundColor(R.color.black);
break;
case PAGE_TWO:
tv2.setSelected(true);
break;
}
}
}
}

@ -0,0 +1,50 @@
package com.example.final_project_app;
import static com.example.final_project_app.db.PermissionUtiils.verifyStoragePermissions;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.TextView;
import android.widget.VideoView;
import androidx.appcompat.app.AppCompatActivity;
public class PlayActivity extends AppCompatActivity {
private TextView tvvedioname;
private VideoView videoView;
//媒体控制器
private MediaController mediaController;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_play);
tvvedioname= findViewById(R.id.tvmovename);
videoView=findViewById(R.id.vvmovie);
mediaController=new MediaController(this);
initData();
verifyStoragePermissions(this);
}
private void initData() {
//获取从列表传过来的视频名称和地址
String videoname=getIntent().getStringExtra("my");
String videouri=getIntent().getStringExtra("movieurl");
//String videourl= Environment.getExternalStorageDirectory().getAbsolutePath()+"/jay.mp4";
//Log.i("PlayActivity","videourl="+videourl);
//将视频名称显示在文本框中,将视频地址关联到播放器中
tvvedioname.setText(videoname);
videoView.setVideoPath(videouri);
//videoView.setVideoPath(videourl);
//将视频播放器和媒体控制柄关联起来
videoView.setMediaController(mediaController);
//媒体控制柄和视频播放器关联起来
mediaController.setMediaPlayer(videoView);
//启动视频播放器播放视频
videoView.start();
}
}

@ -0,0 +1,38 @@
package com.example.final_project_app;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
public class StartActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_start);
//初始化
initView();
}
private void initView() {
//使用sharedpreferences存储
SharedPreferences sp=getSharedPreferences("name",MODE_PRIVATE);
boolean is=sp.getBoolean("ok",true);
//判断是否为第一次打开软件
if (is){
SharedPreferences.Editor editor=sp.edit();
editor.putBoolean("ok",false);
editor.apply();
//跳转到引导页
// startActivity(new Intent(StartActivity.this,IntroducttoryActivity.class));
finish();
}else {
//直接进入首页
startActivity(new Intent(StartActivity.this,MainActivity.class));
finish();
}
}
}

@ -0,0 +1,48 @@
package com.example.final_project_app.adpter;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import com.example.final_project_app.db.bannerBean;
import com.youth.banner.adapter.BannerAdapter;
import java.util.List;
public class BannerViewAdapter extends BannerAdapter<bannerBean, BannerViewAdapter.BannerViewHodler>{
private Fragment fragment;
public BannerViewAdapter(List<bannerBean> datas,Fragment fragment) {
super(datas);
this.fragment = fragment;
}
@Override
public BannerViewAdapter.BannerViewHodler onCreateHolder(ViewGroup parent, int viewType) {
ImageView imageView = new ImageView(parent.getContext());
imageView.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
));
//setScaleType对图片进行大小处理 CENTER_CROP对原图居中显示后进行等比放缩处理使最小边等于ImageView的相应边
imageView.setScaleType(ImageView.ScaleType.CENTER);
return new BannerViewHodler(imageView);
}
//绑定图片资源文件
@Override
public void onBindView(BannerViewAdapter.BannerViewHodler holder, bannerBean data, int position, int size) {
holder.imageView.setImageResource(data.picture);
}
//ViewHolder主要用于容纳view视图
public class BannerViewHodler extends RecyclerView.ViewHolder {
ImageView imageView;
public BannerViewHodler(@NonNull ImageView itemView) {
super(itemView);
this.imageView = itemView;
}
}
}

@ -0,0 +1,40 @@
package com.example.final_project_app.adpter;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.viewpager.widget.PagerAdapter;
import java.util.List;
public class IntroductoryAdapter extends PagerAdapter {
//声明
private List<View> list;
public IntroductoryAdapter(List<View> list) {
this.list = list;
}
@Override
public int getCount() {
return list.size();
}
@Override
public boolean isViewFromObject(@NonNull View view, @NonNull Object object) {
return view==object;
}
@NonNull
@Override
public Object instantiateItem(@NonNull ViewGroup container, int position) {
View view=list.get(position);
container.addView(view);
return view;
}
@Override
public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) {
container.removeView(list.get(position));
}
}

@ -0,0 +1,69 @@
package com.example.final_project_app.adpter;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.final_project_app.PlayActivity;
import com.example.final_project_app.R;
import com.example.final_project_app.db.Movie;
import java.util.List;
public class MovieAdapter extends RecyclerView.Adapter<MovieAdapter.ViewHolder> {
List<Movie> mymovieList;
public class ViewHolder extends RecyclerView.ViewHolder {
View movieview;
TextView moviename;
public ViewHolder(@NonNull View view) {
super(view);
moviename = itemView.findViewById(R.id.moviename);
movieview = view;
}
}
//利用适配器的构造函数传入要展示的数据
public MovieAdapter(List<Movie> mymovieList){
this.mymovieList=mymovieList;
}
//创建实例把每一行的布局加载进来创建一个ViewHolder实例将布局传入到构造函数中最后将实例返回
public MovieAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType){
View view= LayoutInflater.from(parent.getContext()).inflate(R.layout.movie_item,parent,false);
final ViewHolder holder=new ViewHolder(view);
//单击任意视频跳转到播放界面
holder.movieview.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//获取位置
int position=holder.getAdapterPosition();
Movie movie=mymovieList.get(position);
//获取movie中的名字
String mymoviename=movie.getMoviename();
//获取视频播放地址
String mymovievideo=movie.getMovieuri();
//获取播放视频的位置后跳转到播放页
Intent intent=new Intent(view.getContext(),PlayActivity.class);
//然后根据位置传递信息
intent.putExtra("my",mymoviename);
intent.putExtra("movieurl",mymovievideo);
view.getContext().startActivity(intent);
}
});
return holder;
}
//对recyclerview中子项目进行赋值通过位置得到当前的实例然后电影名和视频显示在控件上
public void onBindViewHolder(@NonNull MovieAdapter.ViewHolder holder,int position){
Movie movie=mymovieList.get(position);
holder.moviename.setText(movie.getMoviename());
}
public int getItemCount(){
return mymovieList.size();
}
}

@ -0,0 +1,30 @@
package com.example.final_project_app.db;
public class CultrualData {
private String name;
private int image;
public CultrualData() {
}
public CultrualData(String name, int imageId) {
this.name = name;
this.image = imageId;
}
@Override
public String toString() {
return "简介:" + name ;
}
public String getName() {
return name;
}
public int getImageId() {
return image;
}
public void setName(String name) {
this.name = name;
}
}

@ -0,0 +1,16 @@
package com.example.final_project_app.db;
public class Movie {
private String moviename;
private String movieuri;
public Movie(String moviename,String movieuri){
this.moviename=moviename;
this.movieuri=movieuri;
}
public String getMoviename(){
return moviename;
}
public String getMovieuri(){
return movieuri;
}
}

@ -0,0 +1,27 @@
package com.example.final_project_app.db;
import android.Manifest;
import android.app.Activity;
import android.content.pm.PackageManager;
import androidx.core.app.ActivityCompat;
public class PermissionUtiils {
//请求权限类
// Storage Permissions
private static final int REQUEST_EXTERNAL_STORAGE = 1;
private static String[] PERMISSIONS_STORAGE = {
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE};
public static void verifyStoragePermissions(Activity activity) {
// Check if we have write permission
int permission = ActivityCompat.checkSelfPermission(activity,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (permission != PackageManager.PERMISSION_GRANTED) {
// We don't have permission so prompt the user
ActivityCompat.requestPermissions(activity, PERMISSIONS_STORAGE,
REQUEST_EXTERNAL_STORAGE);
}
}
}

@ -0,0 +1,27 @@
package com.example.final_project_app.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.Nullable;
//先键db类RegistMysql继承SQLiteOpenHelper(这里面写数据库语句创建表logins)
public class RegistMysql extends SQLiteOpenHelper {
public RegistMysql(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
super(context, name, factory, version);
}
@Override
public void onCreate(SQLiteDatabase sqLiteDatabase) {
//创建一个logins表id字段自增并且为主键usename字段、密码字段
String sql = "create table logins(id integer primary key autoincrement,usname text,uspwd text)";
//操作SQLite数据库的类
sqLiteDatabase.execSQL(sql); //执行execSQL方法执行上面这个sql语句
}
@Override
public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {
}
}

@ -0,0 +1,17 @@
package com.example.final_project_app.db;
public class bannerBean {
public int picture;
public bannerBean(int picture) {
this.picture = picture;
}
public int getPicture() {
return picture;
}
public void setPicture(int picture) {
this.picture = picture;
}
}

@ -0,0 +1,16 @@
package com.example.final_project_app.ui;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.example.final_project_app.R;
public class waitActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_wait);
}
}

@ -0,0 +1,16 @@
package com.example.final_project_app.ui;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.example.final_project_app.R;
public class waitActivity2 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_wait2);
}
}

@ -0,0 +1,16 @@
package com.example.final_project_app.ui;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.example.final_project_app.R;
public class waitActivity3 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_wait3);
}
}

@ -0,0 +1,16 @@
package com.example.final_project_app.ui;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.example.final_project_app.R;
public class waitActivity5 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_wait5);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 867 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>

@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

@ -0,0 +1,74 @@
<?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=".MainActivity"
android:orientation="vertical"
tools:ignore="MissingClass">
<!-- 主页界面-->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fg_main"
android:layout_above="@id/ll_bottow" >
<androidx.viewpager.widget.ViewPager
android:id="@+id/vp"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="70dp"
android:id="@+id/ll_bottow"
android:background="#EDEBEB"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginLeft="30dp"
android:layout_weight="1">
<TextView
android:layout_width="30dp"
android:layout_height="25dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="15dp"
android:onClick="MyClick"
android:id="@+id/tv_one"
android:background="@drawable/page_back1"/>
<TextView
android:layout_width="60dp"
android:layout_height="20dp"
android:text="管理主页"
android:gravity="center"
android:textSize="13sp" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_weight="1">
<TextView
android:id="@+id/tv_two"
android:layout_width="27dp"
android:layout_height="31dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="15dp"
android:background="@drawable/page_back2"
android:onClick="MyClick" />
<TextView
android:layout_width="60dp"
android:layout_height="20dp"
android:text="实时监视"
android:gravity="center"
android:textSize="13sp" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".PlayActivity">
<!-- 货物监控-->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tvmovename"
android:text="name"
android:layout_marginTop="30dp"
android:textSize="40sp"
android:gravity="center"
android:textStyle="bold"/>
<VideoView
android:layout_width="match_parent"
android:layout_height="400dp"
android:id="@+id/vvmovie"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="实时监控中"
android:layout_marginTop="80dp"
android:textSize="40sp"
android:gravity="center"
android:textStyle="bold"/>
</LinearLayout>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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=".StartActivity">
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".ui.waitActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="待开发页面1"
android:background="#C8B886"
android:textSize="40sp"
android:gravity="center"/>
</LinearLayout>

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".ui.waitActivity2">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="待开发页面2"
android:background="#7AB1CA"
android:textSize="40sp"
android:gravity="center"/>
</LinearLayout>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".ui.waitActivity3">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="待开发页面3"
android:background="#FF5722"
android:textSize="40sp"
android:gravity="center"/>
</LinearLayout>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".ui.waitActivity5">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="待开发页面4"
android:background="#673AB7"
android:textSize="40sp"
android:gravity="center"/>
</LinearLayout>

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- 用户中心布局-->
<ImageView
android:id="@+id/fruit_image"
android:layout_width="150dp"
android:layout_height="180dp"
android:layout_marginLeft="10dp"/>
<TextView
android:id="@+id/fruit_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textSize="20sp"
android:layout_marginLeft="10dip" />
</LinearLayout>

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_height="match_parent"
>
<!-- 主页布局设计-->
<!--主页banner轮播-->
<com.youth.banner.Banner
android:layout_width="wrap_content"
android:layout_height="240dp"
android:id="@+id/banner"
app:banner_radius="8dp"
app:banner_indicator_normal_color="@color/white"
app:banner_indicator_selected_color="@color/red"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_marginTop="20dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="60dp"
android:gravity="center"
android:textSize="28sp"
android:text="欢迎使用智能仓库管理系统App" />
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginTop="10dp"
android:text="采用的新技术"
android:textSize="20sp"
android:textColor="@color/white"
android:gravity="center"
android:background="@drawable/newbj"/>
<!--recyview水平显示文物列表-->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="180dp"
android:backgroundTint="@color/white"
android:layout_marginTop="20dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="115dp"
android:background="@drawable/minbj"/>
</LinearLayout>
</LinearLayout>

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_height="match_parent">
<!-- 实时监控列表-->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="实时监控"
android:textSize="30sp"
android:gravity="center"
android:textStyle="bold"
android:background="#CDB5BE"
android:textColor="@color/white"/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fg_tworecyclerview"/>
</LinearLayout>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="80dp"
android:layout_height="80dp"
android:background="@drawable/jiqiren"
android:id="@+id/movievideo"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/moviename"
android:text="实时监控"
android:textSize="25sp"
android:layout_marginLeft="10dp"
android:layout_gravity="center_vertical"/>
</LinearLayout>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save