第一次冲刺结果
代码如下:
androidmanifest:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | package com.hui.weblab; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.MediaController; import android.widget.VideoView; public class androidmanifest extends Activity { private VideoView mVideoView; private Button playBtn, stopBtn; MediaController mMediaController; @Override public void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.androidmanifest); mVideoView = new VideoView( this ); mVideoView = (VideoView) findViewById(R.id.video); mMediaController = new MediaController( this ); playBtn = (Button) findViewById(R.id.playbutton); stopBtn = (Button) findViewById(R.id.stopbutton); playBtn.setOnClickListener( new mClick()); stopBtn.setOnClickListener( new mClick()); } class mClick implements View.OnClickListener { @Override public void onClick(View v) { String uri = "android.resource://" + getPackageName() + "/" + R.raw.b_1; mVideoView.setVideoURI(Uri.parse(uri)); mMediaController.setMediaPlayer(mVideoView); mVideoView.setMediaController(mMediaController); if (v == playBtn) { mVideoView.start(); } else if (v == stopBtn) { mVideoView.stopPlayback(); } } } } |
androidmanifest1:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | package com.hui.weblab; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.MediaController; import android.widget.VideoView; public class androidmanifest1 extends Activity { private VideoView mVideoView; private Button playBtn, stopBtn; MediaController mMediaController; @Override public void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.androidmanifest); mVideoView = new VideoView( this ); mVideoView = (VideoView) findViewById(R.id.video); mMediaController = new MediaController( this ); playBtn = (Button) findViewById(R.id.playbutton); stopBtn = (Button) findViewById(R.id.stopbutton); playBtn.setOnClickListener( new mClick()); stopBtn.setOnClickListener( new mClick()); } class mClick implements View.OnClickListener { @Override public void onClick(View v) { String uri = "android.resource://" + getPackageName() + "/" + R.raw.b_2; mVideoView.setVideoURI(Uri.parse(uri)); mMediaController.setMediaPlayer(mVideoView); mVideoView.setMediaController(mMediaController); if (v == playBtn) { mVideoView.start(); } else if (v == stopBtn) { mVideoView.stopPlayback(); } } } } |
androidmanifest2:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | package com.hui.weblab; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.MediaController; import android.widget.VideoView; public class androidmanifest2 extends Activity { private VideoView mVideoView; private Button playBtn, stopBtn; MediaController mMediaController; @Override public void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.androidmanifest); mVideoView = new VideoView( this ); mVideoView = (VideoView) findViewById(R.id.video); mMediaController = new MediaController( this ); playBtn = (Button) findViewById(R.id.playbutton); stopBtn = (Button) findViewById(R.id.stopbutton); playBtn.setOnClickListener( new mClick()); stopBtn.setOnClickListener( new mClick()); } class mClick implements View.OnClickListener { @Override public void onClick(View v) { String uri = "android.resource://" + getPackageName() + "/" + R.raw.b_3; mVideoView.setVideoURI(Uri.parse(uri)); mMediaController.setMediaPlayer(mVideoView); mVideoView.setMediaController(mMediaController); if (v == playBtn) { mVideoView.start(); } else if (v == stopBtn) { mVideoView.stopPlayback(); } } } } |
androidmanifest3:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | package com.hui.weblab; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.MediaController; import android.widget.VideoView; public class androidmanifest3 extends Activity { private VideoView mVideoView; private Button playBtn, stopBtn; MediaController mMediaController; @Override public void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.androidmanifest); mVideoView = new VideoView( this ); mVideoView = (VideoView) findViewById(R.id.video); mMediaController = new MediaController( this ); playBtn = (Button) findViewById(R.id.playbutton); stopBtn = (Button) findViewById(R.id.stopbutton); playBtn.setOnClickListener( new mClick()); stopBtn.setOnClickListener( new mClick()); } class mClick implements View.OnClickListener { @Override public void onClick(View v) { String uri = "android.resource://" + getPackageName() + "/" + R.raw.b_4; mVideoView.setVideoURI(Uri.parse(uri)); mMediaController.setMediaPlayer(mVideoView); mVideoView.setMediaController(mMediaController); if (v == playBtn) { mVideoView.start(); } else if (v == stopBtn) { mVideoView.stopPlayback(); } } } } |
androidmanifest4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | package com.hui.weblab; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.MediaController; import android.widget.VideoView; public class androidmanifest4 extends Activity { private VideoView mVideoView; private Button playBtn, stopBtn; MediaController mMediaController; @Override public void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.androidmanifest); mVideoView = new VideoView( this ); mVideoView = (VideoView) findViewById(R.id.video); mMediaController = new MediaController( this ); playBtn = (Button) findViewById(R.id.playbutton); stopBtn = (Button) findViewById(R.id.stopbutton); playBtn.setOnClickListener( new mClick()); stopBtn.setOnClickListener( new mClick()); } class mClick implements View.OnClickListener { @Override public void onClick(View v) { String uri = "android.resource://" + getPackageName() + "/" + R.raw.b_6; mVideoView.setVideoURI(Uri.parse(uri)); mMediaController.setMediaPlayer(mVideoView); mVideoView.setMediaController(mMediaController); if (v == playBtn) { mVideoView.start(); } else if (v == stopBtn) { mVideoView.stopPlayback(); } } } } |
BookActivity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class BookActivity extends AppCompatActivity { //声明控件 private Button Btn1; private Button Btn2; private Button Btn3; private Button Btn4; private Button Btn5; private Button Btn6; private Button Btn7; private Button Btn8; private Button Btn9; @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_book); //获取控件 Btn1 = findViewById(R.id.btn_1); Btn2 = findViewById(R.id.btn_2); Btn3 = findViewById(R.id.btn_3); Btn4 = findViewById(R.id.btn_4); Btn5 = findViewById(R.id.btn_5); Btn6 = findViewById(R.id.btn_6); Btn7 = findViewById(R.id.btn_7); Btn8 = findViewById(R.id.btn_8); Btn9 = findViewById(R.id.btn_9); //实现直接跳转 method1 setListener(); } private void setListener(){ //OnCLike 点击事件 BookActivity.OnClick onClick= new BookActivity.OnClick(); //对每一个按钮进行setONclickListener Btn1.setOnClickListener(onClick); Btn2.setOnClickListener(onClick); Btn3.setOnClickListener(onClick); Btn4.setOnClickListener(onClick); Btn5.setOnClickListener(onClick); Btn6.setOnClickListener(onClick); Btn7.setOnClickListener(onClick); Btn8.setOnClickListener(onClick); Btn9.setOnClickListener(onClick); } private class OnClick implements View.OnClickListener{ @Override public void onClick(View v) { Intent intent= null ; switch (v.getId()){ case R.id.btn_1: intent = new Intent(BookActivity. this ,nextActivity1. class ); break ; case R.id.btn_2: intent = new Intent(BookActivity. this ,nextActivity2. class ); break ; case R.id.btn_3: intent = new Intent(BookActivity. this ,nextActivity3. class ); break ; case R.id.btn_4: intent = new Intent(BookActivity. this ,nextActivity4. class ); break ; case R.id.btn_5: intent = new Intent(BookActivity. this ,nextActivity5. class ); break ; case R.id.btn_6: intent = new Intent(BookActivity. this ,nextActivity6. class ); break ; case R.id.btn_7: intent = new Intent(BookActivity. this ,nextActivity7. class ); break ; case R.id.btn_8: intent = new Intent(BookActivity. this ,nextActivity8. class ); break ; case R.id.btn_9: intent = new Intent(BookActivity. this ,nextActivity9. class ); break ; } startActivity(intent); } } } |
MainActivity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { //声明控件 private TextView mTVWebRoom; private TextView mTVBook; private TextView mTVSc; private TextView mTVOur; @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_main); //获取控件 mTVWebRoom = findViewById(R.id.shouye_webroom); mTVBook = findViewById(R.id.shouye_book); mTVSc = findViewById(R.id.shouye_sc); mTVOur = findViewById(R.id.shouye_our); //实现直接跳转 method1 setListener(); } private void setListener(){ //OnCLike 点击事件 OnClick onClick= new OnClick(); //对每一个按钮进行setONclickListener mTVWebRoom.setOnClickListener(onClick); mTVBook.setOnClickListener(onClick); mTVSc.setOnClickListener(onClick); mTVOur.setOnClickListener(onClick); } private class OnClick implements View.OnClickListener{ @Override public void onClick(View v) { Intent intent= null ; switch (v.getId()){ case R.id.shouye_webroom: intent = new Intent(MainActivity. this ,WebRoomActivity. class ); break ; case R.id.shouye_book: intent = new Intent(MainActivity. this ,BookActivity. class ); break ; case R.id.shouye_sc: intent = new Intent(MainActivity. this ,ScActivity. class ); break ; case R.id.shouye_our: intent = new Intent(MainActivity. this ,OurActivity. class ); break ; } startActivity(intent); } } } |
nextActivity1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity1 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next1); } } |
nextActivity2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity2 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next2); } } |
nextActivity3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity3 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next3); } } |
nextActivity4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity4 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next4); } } |
nextActivity5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity5 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next5); } } |
nextActivity6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity6 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next6); } } |
nextActivity7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity7 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next7); } } |
nextActivity8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity8 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next8); } } |
nextActivity9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class nextActivity9 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_next9); } } |
OurActivity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class OurActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_our); } } |
ScActivity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; public class ScActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_sc); ImageButton btn1 = findViewById(R.id.qk_a_1); ImageButton btn2 = findViewById(R.id.qk_a_2); ImageButton btn3 = findViewById(R.id.qk_a_3); ImageButton btn4 = findViewById(R.id.qk_a_4); ImageButton btn5 = findViewById(R.id.qk_a_5); ImageButton btn6 = findViewById(R.id.qk_a_6); ImageButton btn7 = findViewById(R.id.qk_a_7); ImageButton btn8 = findViewById(R.id.qk_a_8); btn1.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setClass(ScActivity. this ,androidmanifest. class ); startActivity(intent); } }); btn2.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setClass(ScActivity. this ,androidmanifest1. class ); startActivity(intent); } }); btn3.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setClass(ScActivity. this ,androidmanifest2. class ); startActivity(intent); } }); btn4.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setClass(ScActivity. this ,androidmanifest3. class ); startActivity(intent); } }); btn5.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setClass(ScActivity. this ,androidmanifest4. class ); startActivity(intent); } }); btn6.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setClass(ScActivity. this ,androidmanifest4. class ); startActivity(intent); } }); btn7.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setClass(ScActivity. this ,androidmanifest1. class ); startActivity(intent); } }); btn8.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setClass(ScActivity. this ,androidmanifest1. class ); startActivity(intent); } }); } } |
WebRoomActivity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.hui.weblab; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class WebRoomActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_web_room); } } |
activity_book
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | <?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= ".BookActivity" > <Button android:id= "@+id/btn_1" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "实验室简介" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.064" /> <Button android:id= "@+id/btn_2" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "组织" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.131" /> <Button android:id= "@+id/btn_3" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "文件控制" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.197" /> <Button android:id= "@+id/btn_4" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "设施与环境条件" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.264" /> <Button android:id= "@+id/btn_5" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "检测方法" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.331" /> <Button android:id= "@+id/btn_6" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "检测样品的处理" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.398" /> <Button android:id= "@+id/btn_7" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "保证公正性、公平性程序" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.465" /> <Button android:id= "@+id/btn_8" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "样品管理程序" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.532" /> <Button android:id= "@+id/btn_9" android:layout_width= "411dp" android:layout_height= "46dp" android:text= "实验室废弃物处理程序" android:textSize= "20sp" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.6" /> </LinearLayout> |
activity_main
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | <?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:background= "@drawable/huaxue2" android:orientation= "vertical" tools:context= ".MainActivity" > <TextView android:id= "@+id/shouye_webroom" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginLeft= "195dp" android:layout_marginTop= "65dp" android:text= " " android:textSize= "30sp" android:textColor= "#000000" /> <TextView android:id= "@+id/shouye_book" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginLeft= "195dp" android:layout_marginTop= "45dp" android:text= " " android:textSize= "30sp" android:textColor= "#000000" /> <TextView android:id= "@+id/shouye_sc" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginLeft= "195dp" android:layout_marginTop= "45dp" android:text= " " android:textSize= "30sp" android:textColor= "#000000" /> <TextView android:id= "@+id/shouye_our" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginLeft= "235dp" android:layout_marginTop= "235dp" android:text= " " android:textSize= "30sp" android:textColor= "#000000" /> </LinearLayout> |
activity_next1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <?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= ".nextActivity1" > <TextView android:id= "@+id/textView1" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text="本实验室 投入使用,面积 30 平方米,主上耍 检测加工产品的微生物、理化检测项目,为工 厂的微生物、理化管理水平开展监测工作。 人员情况:本实验室现有检测人员 2 名,其中大专 1 名,中专 1 名,受过 专业岗前培训,有较K时间实践经验,能够胜任月前的检测工作。 设备状况:本实验室现有电热恒温培养箱、灭菌锅、水浴锅、均质器、分 析天平、电光分析天平、比色计、恒温干燥箱等检测设备。 检测能力;本实验室现在可以开展的检测项月有: 微生物:茵落总数、大肠菌群、大肠忏菌、沙门氏菌、金黄色葡萄球茵 理化:水分、酸价、过氧化值、余氯 " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.118" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_next2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <?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= ".nextActivity2" > <TextView android:id= "@+id/textView2" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text=" 1 口的 阐明实验室的法律地位、公止立场、诚信度要求、活动准则:确立组织结 构;规定从事影响检测质量的管理、执行或验证工作的人员的责任。 2 适用范围 适用于所有影响检测质量的区域和从事影响检测质量的管理、执行或验证 工作的人。 3 职责 3.1 公司经理负贵组织机构的设置、职能的分配和资源的配置,任命关键岗位 的人员。 3 . 2 化验员在各自的职责范圆内具体执行相关职能。 4 要求 4 . I组织机构图 4.2 职责与权限 实验室负贲人全权负责不实验室的日常事务,其它各化验人员各司其职。 4.3 防止不恰当+扰 对于任何削羽实验室技术能力、公正性以及对结果作山独立判析信心和工上 作品德的活动,以保证检测数据的公正性。 " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.122" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_next3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <?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= ".nextActivity3" > <TextView android:id= "@+id/textView3" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text=" 1 目的 对与管理体系有关的文件进行控制,确保各相关场所均能得到和使用文件的 有效版木。 2 适用范围 适用于实验室管理体系文件的编制、审批、发放、修改和管理等各个环节, 包括外来文件的控制。 3 职责 实验室负责人负责组织《质量手册》编制及审核,批准质最记求格式和批 准检验方法细则,以及技术标准,外米与法规的控制。 4 要求 4.1 文件编制 a、《管理手册》的编制应符合相关法律法规的要求; . b、其他文件的编制应与(管理于册》相协调,不得与本《管理于册》的耍 求相抵他; c、文件的文字表达应简明、准确、易備,所有的符号、代号应符合有关规 范,编制格式应统一一。 4.2 文件编号 a、管理体系文件以编号作为唯一-性标识。 b、实验室体系文件的编号方法: 公司代号+实验室代号+文件级别号+版本号+发布年度, 如CJ/HY-T- 2 - 2012 " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.171" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_next4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | <?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= ".nextActivity4" > <TextView android:id= "@+id/textView4" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text=" 1 目的 为了保证检测结果的准确性和有效性,本实验室根据不同的检测要求设置 相应的检测环境并加以控制。必耍时对叮能影响检测工作的环境因索进行有效 的监控。设施与环境条件应满足检测工作正常开展和安全的需婴。 2 适用范围 适用于检测设施及环境条件的配置及其控制。 3 职责 3.1 实验宝负责人提出设施和坏境配置要求、设计和政造方案,并对所配 备的设施和环境进行日常维护。 3.2 公司经理对实验室提山的万案j要求进行中核并批准。 3.3 实验室负责人对实验空设施和环境的符合性和日常维护状况实施监督 并负责各类设施的定期检修。 4 操作要求 4.1 实验室要将测试区城与办公场所分离,防止对检测L作质品产生不利 影响。. 4.2 实验室应布局合理,并采取有效措施,防止相互影响。 4.3 实验室的设计或改造,应根据实验室的功能和用途,允分考虑能源、 采光、采暖、通风等要求,并应考临环境因索对检测 1 作可能造成的不利影响 而采取有效预防措施。 4.4 实验宝各科辅助设施和环境条件应能满足检测需要及仪器设备使用维护对环境的要求。无菌间的紫外线灯实验草的灭菌设施等均满足检测条件的要 求。 " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.211" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_next5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | <?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= ".nextActivity5" > <TextView android:id= "@+id/textView5" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text=" 1 日的 为确保检测数据准确可靠,有必耍对开展检测活动中所采用的方法进行控 制。 2 适用范围 适用于检测活动的的各直接环节的方法选用、判定和确认的全过程。 3 职责 3.1 实验室负责人负责对在用检测方法的有效性和检测方法的批准进行控 制。 4 要求 4.1 方法的选择 本实验室优先采用国标方法、行标方法,并按照国家检验检疫机构的要求 对原料、半成品、成品采用行业标准方法。暂时不使用外来|标准方法进行检 测。 4.2 方法的控制 确保使用的标准、规程、技术规范和校准方法是最有效版本。首次采用或 标准发生变化时,对使用方法的能力进行确认,确保正确运用标准方法。 本实验室的方法属于实验室内部资料,有实验室负责人统- -受控并 负责最 新版本的更新。 " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.145" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_next6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <?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= ".nextActivity6" > <TextView android:id= "@+id/textView6" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text=" 1 目的 检测样品的代表性、有效性和完整性将直接影响检测结果的准确度,因此 必须对抽样过程、样品以及样品的识别等实施有效的控制。 2 适用范围 适用检测样品的存储、保留和清理等各个环节的质量控制。 3 职责 实验室检测人员负责检测过程中样品的管理、检毕样品的留存,实验室负 责人负责留存样品的管理。 4 要求 a.接收样品时应留有记录。检毕样品应立即送入库房制定的位置保存。 b.样品应按需要进行贮存,库存的样品有明确的标识,并按定的规律摆 放,以便于取出。 c.检毕样品保存期不少丁报告发出后 2 天,-般不超过 5 天,特殊情况另 行议定。 d.对于测试样品的性质不适宜保存的,实验卒检测报告出具 5 天以后直接 废弃。 " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.125" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_next7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <?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= ".nextActivity7" > <TextView android:id= "@+id/textView7" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text=" 1 目的 保证本实验室工作的公正性、公平性,不受不良因素十扰,保证科学公正的为 客户服务。 2 范围 适用于实验室所有的检测T.作。 3 职责 3.1 实验室负责人负责保证公正性和公平性的实施: ; 3.2 全体人员要严格执行实验室关于公正、公平及有关保密工作的制度。 4 程序 4.1 实验室作为独立的检测机构,所有部门]均不干预实验室工作,公司其他部 门的领导不得干预实验室检测结果的出具,与实验室有关的部门J和领导,不得 以任何理山十预检测工作; 4.2 保证检测工作的公正性,本实验室郑重承端,由本实验室出具的检测报告 保证客观、公正、准确。 4.3 实验室负责人要加强对工作人员的培训和教育,进行有关法律、法规和职. 业道德的方面的教育,增强法律、法规和公平、公正的意识。做到: a)严格执行国家有关法律、法规、强制性标准等,对所有的检验杆品进行独立、 公正、准确的检测,对所出具的检测结果、报告和证书负责; b)不从事任何影响公正地位的活动,工作人员严格遵守实验室工作纪律和其他规定,不受任何影响检测结果准确性因素的干预: " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.206" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_next8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <?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= ".nextActivity8" > <TextView android:id= "@+id/textView8" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text=" 1 适用范围 本程序适用于实验室各项检测工作中样品的管理。 2 职责 实验室负责人负责样品的接收、检测、处理及存储工作; 3 程序 3.1 样品的分类 检测样品根据检测项目分理化样品、微生物检测样品、 3.2 样品的抽取、接收 3.2 . 1 样品的抽取优先采用检测标准中有关的规定执行,检测标准中没有相关 抽样规定时采用国标6GB2828《逐批检 查计数抽样程序及抽样表》。 3.2 . 2 各检测人员负责公司样品的接收,接收样品时应检查样品的状态、数量 等是否符合要求,不符合要求时不于接收。 3.2 . 3 样品山检验员进行唯一性标识编号,并使样品在实验室的整个期问内予 以保留,确保样品在检测中、在记录或其他文件提及时不致混淆,便于样品的 追踪查找。 3.2 . 4 检测人员应在检查样品后,在样品抽取单上签字,保存交接单,不再填 写样品接收记录。 3.3 样品的检测 3.3 . 1 接收后的样品应及时检测,微生物检测样品如不能及时检测应保存于专 用样品箱内,于 12 小时内给予检测,其他样品不得超过 24 小时。 " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.206" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_next9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <?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= ".nextActivity9" > <TextView android:id= "@+id/textView9" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text=" 1 范围 适用于本实验室检测废弃物的处理。 2 职责 2.1 检测人员负责检测工作中产生的废介物的处理。 2.2 实验室负责人负责废弃物处理过程的监督。 3 稈序 3.1 废弃物分为无毒无害废弃物、有毒有害废弃物。 3.2 无毒无害废弃物如检测样品、包装物、培养基等由检测人员交由垃吸清理 工即可, 3.3 有毒有害废弃物须经过必耍的处理。 3.3 . 1 微生物检测产生的带有有害菌种的培养基、济液、样品等应放入灭茵锅 中在121C的温度下灭菌 15 分钟后处理。 3.3 . 2 检测过程中产生的有毒有害化学废弃物须经过化学处理、转化、反应处 理使之转化为无毒无害的物质后处理。 3.4 实验室负贵人负责废充物处理的监督工作。 " android:textSize= "20sp" android:textStyle= "bold" app:layout_constraintBottom_toBottomOf= "parent" app:layout_constraintEnd_toEndOf= "parent" app:layout_constraintHorizontal_bias= "0.0" app:layout_constraintStart_toStartOf= "parent" app:layout_constraintTop_toTopOf= "parent" app:layout_constraintVertical_bias= "0.152" /> </androidx.constraintlayout.widget.ConstraintLayout> |
activity_our
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | <?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= "wrap_content" android:orientation= "vertical" tools:context= ".WebRoomActivity" > <RelativeLayout android:layout_width= "match_parent" android:layout_height= "50dp" > <ImageView android:id= "@+id/about_iv_back" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:layout_marginLeft= "10dp" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_centerInParent= "true" android:text= "关于我们" android:textSize= "18sp" android:textStyle= "bold" /> </RelativeLayout> <LinearLayout android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "vertical" android:padding= "20dp" > <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "组名" android:layout_marginTop= "10dp" android:textStyle= "bold" android:textSize= "16sp" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:text= "开摆开摆队" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:textStyle= "bold" android:textSize= "16sp" android:text= "组长" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:text= "屈超" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:text= "组员" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:textStyle= "bold" android:textSize= "16sp" android:text= "郝子明 陈嘉程" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:text= "博客园" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:textStyle= "bold" android:textSize= "16sp" android:text= "开摆开摆!" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:text= "团队口号" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:textStyle= "bold" android:textSize= "16sp" android:text= "不为失败找理由,只为成功找方法" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:text= "b站账号" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_marginTop= "10dp" android:textStyle= "bold" android:textSize= "16sp" android:text= " " /> </LinearLayout> </LinearLayout> |
activity_sc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | <?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= ".ScActivity" > <TextView android:layout_width= "match_parent" android:layout_height= "wrap_content" android:text= "趣味科普" android:textSize= "30dp" android:gravity= "center" android:textStyle= "bold" /> <View android:layout_width= "wrap_content" android:layout_height= "30dp" android:background= "@color/grey_EEEEE" /> <androidx.cardview.widget.CardView android:layout_width= "match_parent" android:layout_height= "wrap_content" > <ImageButton android:id= "@+id/qk_a_1" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:src= "@mipmap/a_1" android:layout_marginLeft= "5dp" android:onClick= "onclick" tools:ignore= "OnClick" /> <ImageButton android:id= "@+id/qk_a_2" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:src= "@mipmap/a_2" android:layout_marginLeft= "235dp" android:onClick= "onclick" tools:ignore= "OnClick" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width= "wrap_content" android:layout_height= "wrap_content" > <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "元素周期表青花瓷" android:layout_marginLeft= "40dp" android:textStyle= "bold" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "熊博士看世界" android:layout_marginLeft= "285dp" android:textStyle= "bold" /> </androidx.cardview.widget.CardView> <View android:layout_width= "wrap_content" android:layout_height= "30dp" android:background= "@color/grey_EEEEE" /> <androidx.cardview.widget.CardView android:layout_width= "match_parent" android:layout_height= "wrap_content" > <ImageButton android:id= "@+id/qk_a_3" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:src= "@mipmap/a_3" android:layout_marginLeft= "5dp" android:onClick= "onclick" tools:ignore= "OnClick" /> <ImageButton android:id= "@+id/qk_a_4" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:src= "@mipmap/a_4" android:layout_marginLeft= "235dp" android:onClick= "onclick" tools:ignore= "OnClick" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width= "wrap_content" android:layout_height= "wrap_content" > <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "趣味科普" android:layout_marginLeft= "60dp" android:textStyle= "bold" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "理科生的浪漫黄金雨" android:layout_marginLeft= "260dp" android:textStyle= "bold" /> </androidx.cardview.widget.CardView> <View android:layout_width= "wrap_content" android:layout_height= "30dp" android:background= "@color/grey_EEEEE" /> <androidx.cardview.widget.CardView android:layout_width= "match_parent" android:layout_height= "wrap_content" > <ImageButton android:id= "@+id/qk_a_5" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:src= "@mipmap/a_5" android:layout_marginLeft= "5dp" android:onClick= "onclick" tools:ignore= "OnClick" /> <ImageButton android:id= "@+id/qk_a_6" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:src= "@mipmap/a_6" android:layout_marginLeft= "235dp" android:onClick= "onclick" tools:ignore= "OnClick" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width= "wrap_content" android:layout_height= "wrap_content" > <TextView android:layout_width= "139dp" android:layout_height= "40dp" android:layout_marginLeft= "30dp" android:text= "H2元素实验室:16号硫-“臭”名昭著" android:textStyle= "bold" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "化学大师 趣味科普" android:layout_marginLeft= "260dp" android:textStyle= "bold" /> </androidx.cardview.widget.CardView> <View android:layout_width= "wrap_content" android:layout_height= "30dp" android:background= "@color/grey_EEEEE" /> <androidx.cardview.widget.CardView android:layout_width= "match_parent" android:layout_height= "wrap_content" > <ImageButton android:id= "@+id/qk_a_7" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:src= "@mipmap/a_7" android:layout_marginLeft= "5dp" android:onClick= "onclick" tools:ignore= "OnClick" /> <ImageButton android:id= "@+id/qk_a_8" android:layout_width= "wrap_content" android:layout_height= "match_parent" android:src= "@mipmap/a_8" android:layout_marginLeft= "235dp" android:onClick= "onclick" tools:ignore= "OnClick" /> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:layout_width= "wrap_content" android:layout_height= "wrap_content" > <TextView android:layout_width= "130dp" android:layout_height= "40dp" android:layout_marginLeft= "30dp" android:text= "5分钟100个高能化学反应的视觉盛宴" android:textStyle= "bold" /> <TextView android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "太阳系介绍" android:layout_marginLeft= "285dp" android:textStyle= "bold" /> </androidx.cardview.widget.CardView> </LinearLayout> |
androidmanifest
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <?xml version= "1.0" encoding= "utf-8" ?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" android:layout_width= "fill_parent" android:layout_height= "fill_parent" android:orientation= "vertical" > <TextView android:id= "@+id/TextView01" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_gravity= "center_horizontal" android:text= "媒体播放器" android:textSize= "30sp" /> <VideoView android:id= "@+id/video" android:layout_width= "250dp" android:layout_height= "200dp" android:layout_gravity= "center" android:layout_marginTop= "30sp" /> <LinearLayout android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:layout_gravity= "center" android:layout_marginTop= "30sp" android:orientation= "horizontal" > <Button android:id= "@+id/playbutton" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "开始播放" android:layout_gravity= "center" android:textSize= "25sp" /> <Button android:id= "@+id/stopbutton" android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "停止播放" android:layout_marginLeft= "30sp" android:layout_gravity= "center" android:textSize= "25sp" /> </LinearLayout> </LinearLayout> |
效果图:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律