diff --git a/LoveVegetable/.gitignore b/LoveVegetable/.gitignore new file mode 100644 index 0000000..e76c77c --- /dev/null +++ b/LoveVegetable/.gitignore @@ -0,0 +1,13 @@ +*.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 diff --git a/LoveVegetable/.idea/.gitignore b/LoveVegetable/.idea/.gitignore new file mode 100644 index 0000000..eaf91e2 --- /dev/null +++ b/LoveVegetable/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/LoveVegetable/.idea/compiler.xml b/LoveVegetable/.idea/compiler.xml new file mode 100644 index 0000000..7d7ec2e --- /dev/null +++ b/LoveVegetable/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/LoveVegetable/.idea/dbnavigator.xml b/LoveVegetable/.idea/dbnavigator.xml new file mode 100644 index 0000000..d66c246 --- /dev/null +++ b/LoveVegetable/.idea/dbnavigator.xml @@ -0,0 +1,519 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/LoveVegetable/.idea/encodings.xml b/LoveVegetable/.idea/encodings.xml new file mode 100644 index 0000000..f13fa33 --- /dev/null +++ b/LoveVegetable/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/LoveVegetable/.idea/gradle.xml b/LoveVegetable/.idea/gradle.xml new file mode 100644 index 0000000..f848e49 --- /dev/null +++ b/LoveVegetable/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/.idea/jarRepositories.xml b/LoveVegetable/.idea/jarRepositories.xml new file mode 100644 index 0000000..17c8136 --- /dev/null +++ b/LoveVegetable/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/.idea/misc.xml b/LoveVegetable/.idea/misc.xml new file mode 100644 index 0000000..3b0a0d9 --- /dev/null +++ b/LoveVegetable/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/.idea/modules/app/app.plantuml b/LoveVegetable/.idea/modules/app/app.plantuml new file mode 100644 index 0000000..c9996fd --- /dev/null +++ b/LoveVegetable/.idea/modules/app/app.plantuml @@ -0,0 +1,314 @@ +@startuml + +title __GUOSHU34.APP's Class Diagram__\n + + namespace com.example.lib { + class com.example.lib.TCPServer { + } + } + + + namespace com.example.lib { + class com.example.lib.TCPServer { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.BuildConfig { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.CustomVideoView { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Data { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.DatabaseHelper { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.DescriptionActivity { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentFive { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentOne { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentThree { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentTwo { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FrgmentFour { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Infor { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Main2Activity { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Main3Activity { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Main4Activity { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivity { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityorder { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt1 { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt1t { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt2 { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt2t { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt3 { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt3t { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt4 { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt4t { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt5 { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt5t { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt6t { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivitytxqym1 { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivitytxqym2 { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivitytxqym3 { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivitytypede { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityxqym { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityxzzffs { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityzfcg { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MianActivityset { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MianActivityxx { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MyPagerAdapter { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MyScrollView { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.UnScrollListView { + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.WebActivity { + } + } + + + com.example.myapplication.CustomVideoView -up-|> android.widget.VideoView + com.example.myapplication.DatabaseHelper -up-|> android.database.sqlite.SQLiteOpenHelper + com.example.myapplication.DescriptionActivity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.FragmentFive -up-|> androidx.fragment.app.Fragment + com.example.myapplication.FragmentOne -up-|> androidx.fragment.app.Fragment + com.example.myapplication.FragmentThree -up-|> androidx.fragment.app.Fragment + com.example.myapplication.FragmentTwo -up-|> androidx.fragment.app.Fragment + com.example.myapplication.FrgmentFour .up.|> android.view.GestureDetector.OnGestureListener + com.example.myapplication.FrgmentFour -up-|> androidx.fragment.app.Fragment + com.example.myapplication.Main2Activity .up.|> android.view.View.OnClickListener + com.example.myapplication.Main2Activity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.Main3Activity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.Main4Activity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivity .up.|> android.view.View.OnClickListener + com.example.myapplication.MainActivity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityorder -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityorder o-- com.example.myapplication.FragmentOne : oneFragment + com.example.myapplication.MainActivityorder o-- com.example.myapplication.FragmentTwo : twoFragment + com.example.myapplication.MainActivityt1 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt1t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt2 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt2t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt3 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt3t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt4 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt4t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt5 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt5t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt6t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivitytxqym1 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivitytxqym2 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivitytxqym3 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivitytypede -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivitytypede o-- com.example.myapplication.FragmentOne : oneFragment + com.example.myapplication.MainActivitytypede o-- com.example.myapplication.FragmentTwo : twoFragment + com.example.myapplication.MainActivityxqym -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityxzzffs -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityxzzffs o-- com.example.myapplication.FragmentOne : oneFragment + com.example.myapplication.MainActivityxzzffs o-- com.example.myapplication.FragmentTwo : twoFragment + com.example.myapplication.MainActivityzfcg -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityzfcg o-- com.example.myapplication.FragmentOne : oneFragment + com.example.myapplication.MainActivityzfcg o-- com.example.myapplication.FragmentTwo : twoFragment + com.example.myapplication.MianActivityset -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MianActivityxx -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MyPagerAdapter -up-|> androidx.viewpager.widget.PagerAdapter + com.example.myapplication.MyScrollView -up-|> android.widget.ScrollView + com.example.myapplication.UnScrollListView -up-|> android.widget.ListView + com.example.myapplication.WebActivity -up-|> androidx.appcompat.app.AppCompatActivity + + +right footer + + +PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it) +For more information about this tool, please contact philippe.mesmeur@gmail.com +endfooter + +@enduml diff --git a/LoveVegetable/app/.gitignore b/LoveVegetable/app/.gitignore new file mode 100644 index 0000000..3543521 --- /dev/null +++ b/LoveVegetable/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/LoveVegetable/app/build.gradle b/LoveVegetable/app/build.gradle new file mode 100644 index 0000000..25b3ab7 --- /dev/null +++ b/LoveVegetable/app/build.gradle @@ -0,0 +1,37 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.2" + defaultConfig { + applicationId "com.example.myapplicationloign" + minSdkVersion 15 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'androidx.test:runner:1.2.0' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + implementation 'com.google.android.material:material:1.0.0' + implementation 'com.google.code.gson:gson:2.8.6' + implementation 'com.github.bumptech.glide:glide:4.3.1' + annotationProcessor 'com.github.bumptech.glide:compiler:4.3.1' + implementation 'net.lingala.zip4j:zip4j:1.3.2' + implementation 'net.qiujuer.genius:ui:2.0.0-beta4' + + +} diff --git a/LoveVegetable/app/lib/.gitignore b/LoveVegetable/app/lib/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/LoveVegetable/app/lib/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/LoveVegetable/app/lib/build.gradle b/LoveVegetable/app/lib/build.gradle new file mode 100644 index 0000000..0abb137 --- /dev/null +++ b/LoveVegetable/app/lib/build.gradle @@ -0,0 +1,8 @@ +plugins { + id 'java-library' +} + +java { + sourceCompatibility = JavaVersion.VERSION_1_7 + targetCompatibility = JavaVersion.VERSION_1_7 +} \ No newline at end of file diff --git a/LoveVegetable/app/lib/src/main/java/com/example/lib/TCPServer.java b/LoveVegetable/app/lib/src/main/java/com/example/lib/TCPServer.java new file mode 100644 index 0000000..425aada --- /dev/null +++ b/LoveVegetable/app/lib/src/main/java/com/example/lib/TCPServer.java @@ -0,0 +1,108 @@ +package com.example.lib; + +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.io.PrintWriter; +import java.net.ServerSocket; +import java.net.Socket; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +class TCPServer { + private static final int PORT = 6666; + private List mList = new ArrayList<>(); + private ServerSocket server = null; + private ExecutorService mExecutorService = null; // 创建一个线程池 + + public static void main(String[] args) { + new TCPServer(); + } + + public TCPServer() { + try { + server = new ServerSocket(PORT); + mExecutorService = Executors.newCachedThreadPool(); // 实例化一个线程池 + System.out.println("服务器已启动,等待加入..."); + Socket client = null; + while (true) { + client = server.accept(); + // 把客户端放入客户端集合中 + mList.add(client); + mExecutorService.execute(new Service(client)); // 开启一个新线程 + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + /// 扩展Runnable接口 + class Service implements Runnable { + private Socket socket; + private BufferedReader in = null; + private String msg = " "; + + public Service(Socket socket) { + this.socket = socket; + try { + in = new BufferedReader(new InputStreamReader(socket.getInputStream())); + // 客户端只要一连到服务器,便向客户端发送下面的信息。 + msg = "服务器" + this.socket.getInetAddress() + "加入;此时总连接:" + mList.size() + "(服务器发送)"; + this.sendmsg(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Override + public void run() { + try { + while (true) { + if ((msg = in.readLine()) != null) { + // 当客户端发送的信息为:exit时,关闭连接 + if (msg.trim().equals("exit")) { + System.out.println("GAME OVER"); + mList.remove(socket); + in.close(); + msg = "服务器" + socket.getInetAddress() + "退出;此时总连接:" + mList.size() + "(服务器发送)"; + socket.close(); + this.sendmsg(); + break; + } else { + // 接收客户端发过来的信息msg,然后发送给客户端。 + msg = socket.getInetAddress() + ":" + msg + "(服务器发送)"; + this.sendmsg(); + } + } + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * 循环遍历客户端集合,给每个客户端都发送信息。 + */ + public void sendmsg() { + // 在服务器上打印 + System.out.println(msg); + // 遍历打印到每个客户端上 + int num = mList.size(); + for (int i = 0; i < num; i++) { + Socket mSocket = mList.get(i); + + PrintWriter out = null; + try { + out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(mSocket.getOutputStream())), true); + out.println(msg); + } catch (IOException e) { + e.printStackTrace(); + } + } + } + } +} \ No newline at end of file diff --git a/LoveVegetable/app/lib/src/main/java/com/example/lib/lib.plantuml b/LoveVegetable/app/lib/src/main/java/com/example/lib/lib.plantuml new file mode 100644 index 0000000..5dde85b --- /dev/null +++ b/LoveVegetable/app/lib/src/main/java/com/example/lib/lib.plantuml @@ -0,0 +1,40 @@ +@startuml + +title __LIB's Class Diagram__\n + + namespace com.example.lib { + class com.example.lib.TCPServer { + {static} - PORT : int + - mExecutorService : ExecutorService + - mList : List + - server : ServerSocket + + TCPServer() + {static} + main() + } + } + + + namespace com.example.lib { + class com.example.lib.TCPServer.Service { + - in : BufferedReader + - msg : String + - socket : Socket + + Service() + + run() + + sendmsg() + } + } + + + com.example.lib.TCPServer +-down- com.example.lib.TCPServer.Service + com.example.lib.TCPServer.Service .up.|> Runnable + + +right footer + + +PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it) +For more information about this tool, please contact philippe.mesmeur@gmail.com +endfooter + +@enduml diff --git a/LoveVegetable/app/proguard-rules.pro b/LoveVegetable/app/proguard-rules.pro new file mode 100644 index 0000000..6e7ffa9 --- /dev/null +++ b/LoveVegetable/app/proguard-rules.pro @@ -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 diff --git a/LoveVegetable/app/release/app-release.apk b/LoveVegetable/app/release/app-release.apk new file mode 100644 index 0000000..22541e8 Binary files /dev/null and b/LoveVegetable/app/release/app-release.apk differ diff --git a/LoveVegetable/app/release/output-metadata.json b/LoveVegetable/app/release/output-metadata.json new file mode 100644 index 0000000..5ab982d --- /dev/null +++ b/LoveVegetable/app/release/output-metadata.json @@ -0,0 +1,18 @@ +{ + "version": 2, + "artifactType": { + "type": "APK", + "kind": "Directory" + }, + "applicationId": "com.example.myapplicationloign", + "variantName": "processReleaseResources", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "versionCode": 1, + "versionName": "1.0", + "outputFile": "app-release.apk" + } + ] +} \ No newline at end of file diff --git a/LoveVegetable/app/release/output.json b/LoveVegetable/app/release/output.json new file mode 100644 index 0000000..c429e31 --- /dev/null +++ b/LoveVegetable/app/release/output.json @@ -0,0 +1 @@ +[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] \ No newline at end of file diff --git a/LoveVegetable/app/src/androidTest/java/com/example/myapplicationloign/ExampleInstrumentedTest.java b/LoveVegetable/app/src/androidTest/java/com/example/myapplicationloign/ExampleInstrumentedTest.java new file mode 100644 index 0000000..3a7548c --- /dev/null +++ b/LoveVegetable/app/src/androidTest/java/com/example/myapplicationloign/ExampleInstrumentedTest.java @@ -0,0 +1,27 @@ +package com.example.myapplicationloign; + +import android.content.Context; + +import androidx.test.InstrumentationRegistry; +import androidx.test.runner.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 Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.example.myapplicationloign", appContext.getPackageName()); + } +} diff --git a/LoveVegetable/app/src/androidTest/java/com/example/myapplicationloign/myapplicationloign.plantuml b/LoveVegetable/app/src/androidTest/java/com/example/myapplicationloign/myapplicationloign.plantuml new file mode 100644 index 0000000..c3b355a --- /dev/null +++ b/LoveVegetable/app/src/androidTest/java/com/example/myapplicationloign/myapplicationloign.plantuml @@ -0,0 +1,14 @@ +@startuml + +title __MYAPPLICATIONLOIGN's Class Diagram__\n + + + +right footer + + +PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it) +For more information about this tool, please contact philippe.mesmeur@gmail.com +endfooter + +@enduml diff --git a/LoveVegetable/app/src/main/AndroidManifest.xml b/LoveVegetable/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..ba251d0 --- /dev/null +++ b/LoveVegetable/app/src/main/AndroidManifest.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/CustomVideoView.java b/LoveVegetable/app/src/main/java/com/example/myapplication/CustomVideoView.java new file mode 100644 index 0000000..cba9b48 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/CustomVideoView.java @@ -0,0 +1,42 @@ +package com.example.myapplication; + +import android.content.Context; +import android.media.MediaPlayer; +import android.util.AttributeSet; +import android.view.KeyEvent; +import android.widget.VideoView; + +/** + * Created by DaQiE on 2017/2/20 0020. + */ + +public class CustomVideoView extends VideoView { + public CustomVideoView(Context context) { + super(context); + } + + public CustomVideoView(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public CustomVideoView(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + } + + @Override + protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { + //我们重新计算高度 + int width = getDefaultSize(0, widthMeasureSpec); + int height = getDefaultSize(0, heightMeasureSpec); + setMeasuredDimension(width, height); + } + @Override + public void setOnPreparedListener(MediaPlayer.OnPreparedListener l) { + super.setOnPreparedListener(l); + } + + @Override + public boolean onKeyDown(int keyCode, KeyEvent event) { + return super.onKeyDown(keyCode, event); + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/Data.java b/LoveVegetable/app/src/main/java/com/example/myapplication/Data.java new file mode 100644 index 0000000..e1cd123 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/Data.java @@ -0,0 +1,113 @@ +package com.example.myapplication; + +public class Data{ + private static int a; + private static int b; + private static int c; + private static int f; + private static int g; + + public static String getUsername() { + return username; + } + + public static void setUsername(String username) { + Data.username = username; + } + + private static String username; + public static int getK() { + return K; + } + + public static void setK(int k) { + K = k; + } + + private static int K; + + public static int getF() { + return f; + } + + public static void setF(int f) { + Data.f = f; + } + + public static int getG() { + return g; + } + + public static void setG(int g) { + Data.g = g; + } + + public static int getH() { + return h; + } + + public static void setH(int h) { + Data.h = h; + } + + public static int getI() { + return i; + } + + public static void setI(int i) { + Data.i = i; + } + + public static int getJ() { + return j; + } + + public static void setJ(int j) { + Data.j = j; + } + + private static int h; + private static int i; + private static int j; + public static int getB() { + return b; + } + + public static void setB(int b) { + Data.b = b; + } + + public static int getC() { + return c; + } + + public static void setC(int c) { + Data.c = c; + } + + public static int getD() { + return d; + } + + public static void setD(int d) { + Data.d = d; + } + + public static int getE() { + return e; + } + + public static void setE(int e) { + Data.e = e; + } + + private static int d; + private static int e; + public static int getA() { + return a; + } + + public static void setA(int a) { + Data.a = a; + } +} \ No newline at end of file diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/DatabaseHelper.java b/LoveVegetable/app/src/main/java/com/example/myapplication/DatabaseHelper.java new file mode 100644 index 0000000..8f03d25 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/DatabaseHelper.java @@ -0,0 +1,66 @@ +package com.example.myapplication; + +import android.content.ContentValues; +import android.content.Context; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteOpenHelper; +/** + * Created by Administrator on 2019/10/30 0030. + */ + +public class DatabaseHelper extends SQLiteOpenHelper { + private static final String DB_NAME="flowerDB2";//定义数据库名 + private static final String TABLE_NAME="tb_flower";//定义表名 + private static final String CREATE_TABLE="create table "+TABLE_NAME+"( _id integer primary key autoincrement,fname text,type text,info text)";//创建表 + //创建SQLiteDatabase实例 + private SQLiteDatabase db; + //构造方法 + public DatabaseHelper(Context context){ + super(context,DB_NAME,null,1); + } + @Override + public void onCreate(SQLiteDatabase sqLiteDatabase) { + //实例化SQLiteDatabase + db=sqLiteDatabase; + //创建表 + db.execSQL(CREATE_TABLE); + } + + @Override + public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) { + + } + //添加数据 + public void insert(ContentValues values){ + //将数据库设置为可读写的 + db=getWritableDatabase(); + db.insert(TABLE_NAME,null,values); + db.close(); + } + //修改数据 + public void update(Infor infor){ + db=getWritableDatabase(); + //获得对象的属性 + ContentValues values=new ContentValues(); + values.put("type",infor.getContent()); + db.update(TABLE_NAME,values,"_id=?",new String[]{infor.getId()+""}); + db.close(); + } + //删除数据 + public void del(int id){ + db=getWritableDatabase(); + db.delete(TABLE_NAME,"_id=?",new String[]{String.valueOf(id)}); + db.close(); + } + //查询数据 + public Cursor query(){ + db=getWritableDatabase(); + Cursor cursor=db.query(TABLE_NAME,null,null,null,null,null,"_id desc"); + //db.close(); + return cursor; + } + + +} + diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/DescriptionActivity.java b/LoveVegetable/app/src/main/java/com/example/myapplication/DescriptionActivity.java new file mode 100644 index 0000000..5fdab6f --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/DescriptionActivity.java @@ -0,0 +1,162 @@ +package com.example.myapplication; + +import android.content.ContentValues; +import android.content.DialogInterface; +import android.content.Intent; +import android.database.Cursor; +import android.os.Build; +import android.os.Bundle; +import android.view.KeyEvent; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.ListView; +import android.widget.SimpleCursorAdapter; +import android.widget.TextView; +import android.widget.Toast; +import android.os.AsyncTask; + +import android.os.Bundle; +import android.widget.ArrayAdapter; +import android.widget.ListView; + + +import java.lang.reflect.Array; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; + +import androidx.appcompat.app.AlertDialog; +import androidx.appcompat.app.AppCompatActivity; + +public class DescriptionActivity extends AppCompatActivity { + ImageView iv_flowerB,fhj; + TextView tv_flowerB,t_price; + EditText et_name,et_type,et_info; +ImageView t_sc,t_fx; +Button jrgwc; +int n; + + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_desc); + iv_flowerB=(ImageView)findViewById(R.id.iv_flowerB); + tv_flowerB=(TextView)findViewById(R.id.tv_descB); + t_price=(TextView)findViewById(R.id.t_price); + fhj=findViewById( R.id.fhj ); + Intent intent=getIntent(); + final int num=intent.getIntExtra("num",0); + //声明数据 + int[] imageB={R.drawable.ta,R.drawable.t5,R.drawable.t3,R.drawable.t7,R.drawable.t6,R.drawable.v14,R.drawable.v13,R.drawable.v11,R.drawable.v5,R.drawable.v4,R.drawable.v7}; + String[] descB={"正宗极品李子","新鲜优质橘子","甘甜硬实草莓","进口速运菠萝","盆地川派西瓜","优质水生莴苣","绿色新鲜菠菜","新鲜速运茄子","优良种胡萝卜","极品丝瓜","完美蔬菜搭配"}; + String[] descM={"3.0","3.0","8.5","2.5","1.5","3.0","3.5","3.5","2.5","6.5","9.5"}; + iv_flowerB.setImageResource(imageB[num]); + tv_flowerB.setText(descB[num]); + t_price.setText( descM[num] ); + //查询所有的花信息 + DatabaseHelper helper=new DatabaseHelper(this); + Cursor cursor=helper.query(); + //定义SimpleCursorAdapter + // Collections.reverse(); + SimpleCursorAdapter simpleCursorAdapter=new SimpleCursorAdapter(this,R.layout.layouta,cursor,new String[]{"_id","info"},new int[]{R.id.infor_name,R.id.infor_content},0); + +fhj.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v){ + finish(); + } +} ); + t_sc=findViewById( R.id.t_sc ); + t_fx=findViewById( R.id.t_fx ); + jrgwc=findViewById( R.id.jrgwc ); + t_sc.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + n++; + if (n % 2 == 1) { + t_sc.setBackgroundResource( R.drawable.sctbd ); + Toast.makeText( getBaseContext(), "已收藏!", Toast.LENGTH_SHORT ).show(); + }else{ + t_sc.setBackgroundResource( R.drawable.sctb ); + Toast.makeText( getBaseContext(), "取消收藏!", Toast.LENGTH_SHORT ).show(); + } + } + } ); + t_fx.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Toast.makeText( getBaseContext(),"已分享!",Toast.LENGTH_SHORT ).show(); + } + } ); + jrgwc.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + if(num==0) + Data.setA( 11 ); + if(num==1) + Data.setB(num); + if (num==2) + Data.setC( num ); + if (num==3) + Data.setD( num ); + if (num==4) + Data.setE( num ); + if (num==5) + Data.setF( num ); + if (num==6) + Data.setG( num ); + if (num==7) + Data.setH( num ); + if (num==8) + Data.setI( num ); + if (num==9) + Data.setJ( num ); + if (num==10) + Data.setK( num ); + Toast.makeText( getBaseContext(),"已加入购物车!",Toast.LENGTH_SHORT ).show(); + } + } ); + } + + + public boolean onKeyDown(int keyCode, KeyEvent event) { + if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0){ + +//这里重写返回键 + + return true; + + } + + return false; + } + public void showdialog(View view) { +//Toast.makeText(this,"clickme",Toast.LENGTH_LONG).show(); + AlertDialog.Builder alertdialogbuilder=new AlertDialog.Builder(this); + alertdialogbuilder.setIcon( R.drawable.tubiao); + alertdialogbuilder.setTitle( "提示:" ); + alertdialogbuilder.setMessage("您已选择该商品,是否购买?"); + alertdialogbuilder.setPositiveButton("确定", click1); + alertdialogbuilder.setNegativeButton("取消", click2); + AlertDialog alertdialog1=alertdialogbuilder.create(); + alertdialog1.show(); + } + private DialogInterface.OnClickListener click1= new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent intent=new Intent(DescriptionActivity.this,MainActivityxzzffs.class); + startActivity( intent ); + dialog.cancel(); + } + }; + private DialogInterface.OnClickListener click2= new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + dialog.cancel(); + } + }; + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentFive.java b/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentFive.java new file mode 100644 index 0000000..f8b7668 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentFive.java @@ -0,0 +1,305 @@ +package com.example.myapplication; + +import android.app.UiModeManager; +import android.content.Intent; +import android.graphics.Color; +import android.net.Uri; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.CheckBox; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.RadioButton; +import android.widget.Switch; +import android.widget.TextView; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; + + + +public class FragmentFive extends Fragment{ + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view=inflater.inflate( R.layout.activity_mainshopcar,container,false); + return view; + } + ImageButton ibu1,ibu2,plus,minus,plus1,minus1; + ImageView img; + CheckBox rb,rb1,rb2,rb3,rb4,rb5,rb6,rb7,rb8,rb9,rb10; + Switch switch1,switch2; + boolean blFlag=false; + Button qq,wx; + TextView tv_sz,number,number1; + private int count,count1; + private UiModeManager mUiModeManager = null; + Button surebuy; + TextView bj; + LinearLayout layx,gwc1,gwc2,gwc3,gwc4,gwc5,gwc6,gwc7,gwc8,gwc9,gwc10,gwc11; + int n; + @Override + public void onActivityCreated(Bundle savedInstanceState) { + super.onActivityCreated( savedInstanceState ); + number = getActivity().findViewById(R.id.number); + plus = getActivity().findViewById(R.id.plus); + minus = getActivity().findViewById(R.id.minus); + number1 = getActivity().findViewById(R.id.number1); + plus1 = getActivity().findViewById(R.id.plus1); + minus1= getActivity().findViewById(R.id.minus1); + ButtonPlus buttonlistener = new ButtonPlus(); + plus.setOnClickListener(buttonlistener); + ButtonMinus buttonMinus = new ButtonMinus(); + minus.setOnClickListener(buttonMinus); + ButtonPlus1 buttonlistener1 = new ButtonPlus1(); + plus1.setOnClickListener(buttonlistener1); + ButtonMinus1 buttonMinus1 = new ButtonMinus1(); + minus1.setOnClickListener(buttonMinus1); + surebuy=getActivity().findViewById( R.id.surebuy ); + layx=getActivity().findViewById( R.id.layx ); + gwc1=getActivity().findViewById( R.id.gwc1 ); + gwc2=getActivity().findViewById( R.id.gwc2 ); + gwc3=getActivity().findViewById( R.id.gwc3 ); + gwc4=getActivity().findViewById( R.id.gwc4 ); + gwc5=getActivity().findViewById( R.id.gwc5 ); + gwc6=getActivity().findViewById( R.id.gwc6 ); + gwc7=getActivity().findViewById( R.id.gwc7 ); + gwc8=getActivity().findViewById( R.id.gwc8 ); + gwc9=getActivity().findViewById( R.id.gwc9 ); + gwc10=getActivity().findViewById( R.id.gwc10 ); + gwc11=getActivity().findViewById( R.id.gwc11 ); + bj=getActivity().findViewById( R.id.bj ); + rb=getActivity().findViewById( R.id.rb ); + rb1=getActivity().findViewById( R.id.rb1 ); + rb2=getActivity().findViewById( R.id.rb2 ); + rb3=getActivity().findViewById( R.id.rb3 ); + rb4=getActivity().findViewById( R.id.rb4 ); + rb5=getActivity().findViewById( R.id.rb5 ); + rb6=getActivity().findViewById( R.id.rb6 ); + rb7=getActivity().findViewById( R.id.rb7 ); + rb8=getActivity().findViewById( R.id.rb8 ); + rb9=getActivity().findViewById( R.id.rb9 ); + rb10=getActivity().findViewById( R.id.rb10 ); + + + bj.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + n++; + if (n % 2==1) { + surebuy.setVisibility( View.VISIBLE ); + rb.setVisibility( View.VISIBLE ); + rb1.setVisibility( View.VISIBLE ); + rb2.setVisibility( View.VISIBLE ); + rb3.setVisibility( View.VISIBLE ); + rb4.setVisibility( View.VISIBLE ); + rb5.setVisibility( View.VISIBLE ); + rb6.setVisibility( View.VISIBLE ); + rb7.setVisibility( View.VISIBLE ); + rb8.setVisibility( View.VISIBLE ); + rb9.setVisibility( View.VISIBLE ); + rb10.setVisibility( View.VISIBLE ); + bj.setText( "取消" ); + } + else { + surebuy.setVisibility( View.INVISIBLE ); + rb.setVisibility( View.INVISIBLE ); + rb1.setVisibility( View.INVISIBLE ); + rb2.setVisibility( View.INVISIBLE ); + rb3.setVisibility( View.INVISIBLE ); + rb4.setVisibility( View.INVISIBLE ); + rb5.setVisibility( View.INVISIBLE ); + rb6.setVisibility( View.INVISIBLE ); + rb7.setVisibility( View.INVISIBLE ); + rb8.setVisibility( View.INVISIBLE ); + rb9.setVisibility( View.INVISIBLE ); + rb10.setVisibility( View.INVISIBLE ); + rb.setChecked( false ); + rb1.setChecked( false ); + rb2.setChecked( false ); + rb3.setChecked( false ); + rb4.setChecked( false ); + rb5.setChecked( false ); + rb6.setChecked( false ); + rb7.setChecked( false ); + rb8.setChecked( false ); + rb9.setChecked( false ); + rb10.setChecked( false ); + bj.setText( "编辑" ); + } + + } + } ); + int b=Data.getB(); + if(b!=1){ + gwc2.setVisibility( View.GONE ); + } + int a=Data.getA(); + if(a!=11){ + gwc1.setVisibility( View.GONE ); + } + int c=Data.getC(); + if(c!=2){ + gwc3.setVisibility( View.GONE ); + } + + int d=Data.getD(); + if(d!=3){ + gwc4.setVisibility( View.GONE ); + } + int e=Data.getE(); + if(e!=4){ + gwc5.setVisibility( View.GONE ); + } + int f=Data.getF(); + if(f!=5){ + gwc6.setVisibility( View.GONE ); + } + int g=Data.getG(); + if(g!=6){ + gwc7.setVisibility( View.GONE ); + } + int h=Data.getH(); + if(h!=7){ + gwc8.setVisibility( View.GONE ); + } + final int i=Data.getI(); + if(i!=8){ + gwc9.setVisibility( View.GONE ); + } + int j=Data.getJ(); + if(j!=9){ + gwc10.setVisibility( View.GONE ); + } + int k=Data.getK(); + if(k!=10){ + gwc11.setVisibility( View.GONE ); + } +surebuy.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + if(rb.isChecked()||rb1.isChecked()||rb2.isChecked()||rb3.isChecked()||rb4.isChecked()||rb5.isChecked()||rb6.isChecked()||rb7.isChecked()||rb8.isChecked()||rb9.isChecked()||rb10.isChecked()){ + if(rb.isChecked()==true){ + gwc2.setVisibility( View.GONE ); + Data.setB( 0 );} + if(rb1.isChecked()==true){ + gwc1.setVisibility( View.GONE ); + Data.setA( 0 );} + if(rb2.isChecked()==true){ + gwc3.setVisibility( View.GONE ); + Data.setC( 0 );} + if(rb3.isChecked()==true){ + gwc4.setVisibility( View.GONE ); + Data.setD( 0 );} + if(rb4.isChecked()==true){ + gwc5.setVisibility( View.GONE ); + Data.setE( 0 );} + if(rb5.isChecked()==true){ + gwc6.setVisibility( View.GONE ); + Data.setF( 0 );} + if(rb6.isChecked()==true){ + gwc7.setVisibility( View.GONE ); + Data.setG( 0 );} + if(rb7.isChecked()==true){ + gwc8.setVisibility( View.GONE ); + Data.setH( 0 );} + if(rb8.isChecked()==true){ + gwc9.setVisibility( View.GONE ); + Data.setI( 0 );} + if(rb9.isChecked()==true){ + gwc10.setVisibility( View.GONE ); + Data.setJ( 0 );} + if(rb10.isChecked()==true){ + gwc11.setVisibility( View.GONE ); + Data.setK( 0 );} + Intent intent=new Intent(getActivity(),MainActivityxzzffs.class); + startActivity( intent ); + } + else{ + Toast.makeText(getActivity(), "请选择需要购买的物品!", Toast.LENGTH_SHORT ).show(); + } + } +} ); + } + + + + + + class ButtonMinus implements View.OnClickListener { + @Override + public void onClick(View view){ + //得到输入框里的数字{ + String numString = number.getText().toString(); + //进行判断为空或是没文字设置为0 + if (numString == null || numString.equals("")) { + count = 0; + } else { + int numInt = Integer.parseInt(numString); + //判断,当小于1时提示输入一个大于0的数 + if (numInt < 2) { + Toast.makeText(getActivity(), "您选择的数量已经是最小", Toast.LENGTH_SHORT).show(); + } else { + //设置EditText光标位置为文本末端 + + //为numInt进行减的操作 + numInt--; + count = numInt; + number.setText(count + ""); + } + } + + } +} + +class ButtonPlus implements View.OnClickListener { + @Override + public void onClick(View view) { + //为numInt进行加的操作 + count++; + number.setText(count + ""); + } +} + class ButtonMinus1 implements View.OnClickListener { + @Override + public void onClick(View view){ + //得到输入框里的数字{ + String numString = number1.getText().toString(); + //进行判断为空或是没文字设置为0 + if (numString == null || numString.equals("")) { + count1 = 0; + } else { + int numInt = Integer.parseInt(numString); + //判断,当小于1时提示输入一个大于0的数 + if (numInt < 2) { + Toast.makeText(getActivity(), "您选择的数量已经是最小", Toast.LENGTH_SHORT).show(); + } else { + //设置EditText光标位置为文本末端 + + //为numInt进行减的操作 + numInt--; + count1 = numInt; + number1.setText(count1 + ""); + } + } + + } + } + + class ButtonPlus1 implements View.OnClickListener { + @Override + public void onClick(View view) { + //为numInt进行加的操作 + count1++; + number1.setText(count1 + ""); + } + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentOne.java b/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentOne.java new file mode 100644 index 0000000..56d1c73 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentOne.java @@ -0,0 +1,63 @@ +package com.example.myapplication; + +import android.content.Intent; +import android.os.Bundle; +import android.text.Layout; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.AdapterView; +import android.widget.LinearLayout; +import android.widget.ListView; +import android.widget.TextView; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentActivity; +import androidx.fragment.app.FragmentTransaction; + + + +import java.util.ArrayList; +import java.util.List; + +/** + * + * @author yihuanxing + * + */ +/** + * + * @author yihuanxing + * + */ +public class FragmentOne extends Fragment { + LinearLayout layout1,layout2; + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_main22, container, false ); + return view; + + } + public void onActivityCreated(Bundle savedInstanceState) { + super.onActivityCreated( savedInstanceState ); + layout1 = getActivity().findViewById( R.id.layout1 ); + layout2 = getActivity().findViewById( R.id.layout2 ); + layout1.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent= new Intent(getActivity(), MainActivitytypede.class); + startActivity( intent ); + } + } ); + layout2.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent= new Intent(getActivity(), MainActivitytypede.class); + startActivity( intent ); + } + } ); + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentThree.java b/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentThree.java new file mode 100644 index 0000000..52981e0 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentThree.java @@ -0,0 +1,108 @@ +package com.example.myapplication; + +import android.app.UiModeManager; +import android.content.Intent; +import android.graphics.Color; +import android.net.Uri; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.Switch; +import android.widget.TextView; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; + + + +public class FragmentThree extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view=inflater.inflate( R.layout.activity_main2,container,false); + return view; + } + ImageButton ibu1,ibu2; + ImageView imgtx,i_sz,i_xx; + Switch switch1,switch2; + boolean blFlag=false; + Button qq,wx; + TextView t_username,t_ljlq; + LinearLayout lay; + private UiModeManager mUiModeManager = null; + @Override + public void onActivityCreated(Bundle savedInstanceState) { + super.onActivityCreated( savedInstanceState ); + imgtx = getActivity().findViewById( R.id.imgtx ); + t_username = getActivity().findViewById( R.id.t_username ); + lay = getActivity().findViewById( R.id.lay1 ); + t_ljlq = getActivity().findViewById( R.id.t_ljlq ); + i_sz = getActivity().findViewById( R.id.i_sz ); + i_xx = getActivity().findViewById( R.id.i_xx ); + + if (Data.getUsername() == null){ + t_username.setText( "请登录!" ); + }else { + t_username.setText( Data.getUsername() ); + } + i_xx.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent( getActivity(),MianActivityxx.class ); + startActivity( intent ); + } + } ); + i_sz.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent( getActivity(),MianActivityset.class ); + Bundle bundle = new Bundle(); + String s = getActivity().getIntent().getStringExtra("username"); + bundle.putString("username", s); + intent.putExtras(bundle); + startActivity( intent ); + } + } ); + t_ljlq.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Toast.makeText( getContext(),"领取成功",Toast.LENGTH_SHORT ).show(); + } + } ); + lay.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent( getActivity(),MainActivityorder.class ); + startActivity( intent ); + } + } ); + imgtx.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent( getActivity(),MainActivity.class ); + startActivity( intent ); + } + } ); + t_username.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent( getActivity(),MainActivity.class ); + startActivity( intent ); + } + } ); + + } + + @Override + public void onResume() { + super.onResume(); + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentTwo.java b/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentTwo.java new file mode 100644 index 0000000..025b9a0 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/FragmentTwo.java @@ -0,0 +1,323 @@ +package com.example.myapplication; + +import android.content.Intent; +import android.os.Bundle; +import android.os.Handler; +import android.os.Message; +import android.util.Log; +import android.view.LayoutInflater; +import android.view.MotionEvent; +import android.view.View; +import android.view.ViewGroup; +import android.view.ViewParent; +import android.widget.AdapterView; +import android.widget.FrameLayout; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.ListView; +import android.widget.SimpleAdapter; +import android.widget.TextView; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; +import androidx.viewpager.widget.PagerAdapter; +import androidx.viewpager.widget.ViewPager; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FragmentTwo extends Fragment { + + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view=inflater.inflate( R.layout.activity_loginok,container,false); + return view; + } + ListView list; + TextView tv_login; + ImageView iM_liz,i_tb; + ImageButton ibu1,ibu3; + private LinearLayout ll_dots; + private TextView viewpager_tv; + + // 将ViewPager定义为全局变量,方便使用. + private ViewPager viewpager_vp; + + // 建立一个ArrayList集合.泛型指定为ImageView. + ArrayList imageViews = new ArrayList(); + public void onActivityCreated(Bundle savedlnstanceState){ + super.onActivityCreated( savedlnstanceState ); + init(); + ibu1=getActivity().findViewById( R.id.ibu1 ); + ibu3=getActivity().findViewById( R.id.ibu3 ); + list=getActivity().findViewById( R.id.list ); + iM_liz=getActivity().findViewById( R.id.iM_liz ); + i_tb=getActivity().findViewById( R.id.i_tb ); + i_tb.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent( getActivity(),MianActivityset.class ); + startActivity( intent ); + } + } ); + + iM_liz.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent( getActivity(),MainActivityxqym.class ); + startActivity( intent ); + } + } ); + //构建SimpleAdapter + + String []title={"正宗极品李子","新鲜优质橘子","甘甜硬实草莓","进口速运菠萝","盆地川派西瓜","优质水生莴苣","绿色新鲜菠菜","新鲜速运茄子","优良种胡萝卜","极品丝瓜","完美蔬菜搭配"}; + String []desc={"¥3.0元/斤","¥3.0元/斤","¥8.5元/斤","¥2.5元/斤","¥1.5元/斤","¥3.0元/斤","¥3.5元/斤","¥3.5元/斤","¥2.5元/斤","¥6.5元/斤","¥9.0元/斤"}; + String []num={"已售1.5万件","已售1.6万件","已售1.3万件","已售1.9万件","已售2.1万件","已售1.8万件","已售3.5万件","已售0.5万件","已售3.3万件","已售2.6万件","已售1.3万件"}; + int [] img={R.drawable.ta,R.drawable.t5,R.drawable.t3,R.drawable.t7,R.drawable.t6,R.drawable.v14,R.drawable.v13,R.drawable.v11,R.drawable.v5,R.drawable.v4,R.drawable.v7}; + List> listltems=new ArrayList>(); + for (int i=0;iitem=new HashMap( ); + item.put( "title",title[i] ); + item.put( "desc",desc[i]); + item.put( "num",num[i] ); + item.put("img",img[i]); + listltems.add( item ); + } + SimpleAdapter simpleAdapter=new SimpleAdapter( getContext(),listltems,R.layout.layout,new String[]{"title","desc","num","img"},new int[]{R.id.tv_title,R.id.tv_desc,R.id.tv_num,R.id.iv_flower} ); + //设置适配器 + list.setAdapter( simpleAdapter ); + //给ListView添加事件处理 + list.setOnItemClickListener(new AdapterView.OnItemClickListener() { + @Override + public void onItemClick(AdapterView adapterView, View view, int i, long l) { + Intent intent=new Intent(getContext(), DescriptionActivity.class); + intent.putExtra("num",i); + startActivity(intent); + } + }); + list.setFocusable(false); + } + //创建一个handler对象,复写handlerMessage方法,用switch方法,通过msg.what得到标识.333 + private Handler handler = new Handler() { + public void handleMessage(Message msg) { + switch (msg.what) { + case 1: + //得到当前VIewPager和用户交互的item条目.VIewPager对象.getCurrentItem 333 + int currentItem = viewpager_vp.getCurrentItem(); + //设置ViewPager当前显示的界面,得到的ITem+1 + viewpager_vp.setCurrentItem(currentItem + 1); + //通过静态方法sendEmptyMessageDelayed,延时重复执行命令.注意不是sendEmptyMessageAtTime 333 + sendEmptyMessageDelayed(1, 3000); + break; + default: + break; + } + + } + }; + + //图片int数组资源 + private int[] imageResIds = {R.drawable.a, R.drawable.b, R.drawable.c, R.drawable.d, R.drawable.e, R.drawable.f}; + + //图片字符串数组String[]资源. + private String[] descs = { + "爱果蔬初次营业线上特价", + "无污染的水果蔬菜等着你来", + "新鲜丰富的种类任你挑选", + "APP内所有商品一律正品 全程监督", + "从下种到收获再到你家一路绿灯", + "丰收的果实全天候紧急配送" + }; + + + + /** + * 对VIewPager进行初始化. + */ + private void init() { + //找到可以设置点的容器LinearLayout的对象,进行点的添加 + ll_dots = (LinearLayout) getActivity().findViewById(R.id.ll_dots); + //找到文本的对象. + viewpager_tv = (TextView) getActivity().findViewById(R.id.viewpager_tv); + //找到VIewPager对象. + viewpager_vp = (ViewPager) getActivity().findViewById( R.id.viewpager_vp ); + + //更加图片int数组资源的数量,动态的创建ImageView控件.就是有几张图片,创建几个ImageView,for循环 + for (int x = 0; x < imageResIds.length; x++) { + //创建ImageView对象 + ImageView imageView = new ImageView(getActivity()); + //通过该对象添加图片资源.setBackgroundResource方法. + imageView.setBackgroundResource(imageResIds[x]); + //把控件添加到集合ImageViews中去,以方便在VIewPager的适配器里instantiateItem方法获取. + imageViews.add(imageView); + //进行点的添加,其个数和图片的个数一致,因此放到该循环中.222 + dot(); + } + + //设置适配器.setAdapter + viewpager_vp.setAdapter(new Myadapter()); + //设置ViewPager的滑动监听器,addOnPageChangeListener,set的方法因为名字的原因被淘汰了,在onPageScrolled中.222 + viewpager_vp.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { + + + @Override + public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { + //同过getCurrentItem方法拿到当前用户所交互ViewPager的item位置. + int currentItem = viewpager_vp.getCurrentItem(); + //通过得到的这个item,给text和点进行选中的设置. + changeTextAndDot(currentItem % imageResIds.length); + Log.d("aaa", "onPageScrolled: Position-" + position + " positionOffset-" + positionOffset + " positionOffsetPixels-" + positionOffsetPixels); + + } + + @Override + public void onPageSelected(int position) { + Log.d("aaa", "onPageSelected: position" + position); + } + + @Override + public void onPageScrollStateChanged(int state) { + Log.d("aaa", "onPageScrollStateChanged: state" + state); + } + }); + //指定VIewPager默认跳转到某页.一般是最大数的一般.setCurrentItem就是设置VIewPager跳到哪页,get是获取.333 + viewpager_vp.setCurrentItem(Integer.MAX_VALUE / 2 - 3); + + //通过handler,3秒后开始循环ViwePager的item.sendEmptyMessageDelayed,333 + handler.sendEmptyMessageDelayed(1, 3000); + //设置VIewPager的触摸事件.最后抽成方法.333 + ViewPagerTouchEvent(); + } + + /** + * 注意:看一个方法或类的信息快捷键:Ctrl+Q; + * 像ListVIew一样,创建一个ViewPager的适配器,自定义一个类继承PagerAdapter + */ + private class Myadapter extends PagerAdapter { + //getContent,设置ViewPager的条目个数.一般就是集合或者资源数组的长度. + @Override + public int getCount() { + //把返回的条目设置为无限大.333 + //注意:一般和获取ViewPager当前选中的是第几页有关的都要改为position(当前页数)%list.size()(取余数),你就看哪报错,根据报错改333 + return Integer.MAX_VALUE; + } + + //isViewFromObject,判断ViewPager的条目View对象和InstantiateItem返回的Object对象是否一致,固定格式:return view==object; + @Override + public boolean isViewFromObject(View view, Object object) { + return view == object; + } + + //Ctrl+H:看到一个类的基础结构图 ctrl+h+l:快速格式化. + //instantiateItem,ViewPager添加条目的操作.container:VIewPager的化身,控件都是添加到他身上,position:代表用户滑动条目的位置 + @Override + public Object instantiateItem(ViewGroup container, int position) { + //根据条目所在位置(利用Position),从ImageViews集合里获取相对应的ImageVIew图片. + ImageView imageView = imageViews.get(position % imageResIds.length); + //把得到ImageView对象,添加给VIewPager对象,也就是container,使用addView + container.addView(imageView); + //注意:你添加给VIewPager什么控件,就要返回该控件,给isViewFromObject进行比较判断,这里添加的是ImageView,返回的就是ImageView + return imageView; + } + + //防止内存泄漏.相当于ListView的复用container,销毁一个page,该方法的实际就是将instantiateItem返回的VIew对象从ViewPager中移除, + //container:还是ViewPager控件自身 position: object:则代表了View控件,使用时要强转成View一下 + //补充:为什么参数是Object,而不直接是View,因为虽然99%是view,但也有可能是Fragment,所以用Object,提高了可扩展性. + @Override + public void destroyItem(ViewGroup container, int position, Object object) { + //构造方法删除后,也是固定格式:container.removeView((View) object); + container.removeView((View) object); + } + } + + + /** + * 更加图片资源的数量,动态的创建点222 + */ + public void dot() { + //创建一个View对象; + View view = new View(getActivity()); + //为这个View对象设置背景setBackgroundResource + view.setBackgroundResource(R.drawable.dot_normal); + //为View对象设置宽高参数,使用参数对象LayoutParams(int,int),给哪个容器,就用哪个容器创建 + LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(8, 8); + //使用参数对象LayoutParams.leftMargin=int,相当于布局里的padding. + layoutParams.leftMargin = 8; + //把准备好的layoutParams参数对象,设置给View对象.setLayoutParams + view.setLayoutParams(layoutParams); + //最后容器对象.addView(VIwe); + ll_dots.addView(view); + } + + + /** + * 根据ViewPager的item的变化,也就是图片切换的操作,设置对应的点和文本.222 + * + * @param position int ViewPager的item,也是图片的位置 + */ + public void changeTextAndDot(int position) { + //根据ViewPager的item的变化,设置对应的文本.setText(descs[position]); + viewpager_tv.setText(descs[position]); + //对点进行判断是否是当前页的点,用for循环,拿到所有点的位置,然后和position对比 + for (int x = 0; x < imageResIds.length; x++) { + //.getChildAt(x);拿到容器的子控件.得到VIew对象 + View childAt = ll_dots.getChildAt(x); + //为View设置背景图片,,使用三元运算符. + childAt.setBackgroundResource(x == position ? R.drawable.dot_focus : R.drawable.dot_normal); + } + } + + /** + * 该方法主要设置VIewPager的触摸事件,实现用户的触摸时,不再自动播放.switch中motionEvent.getActivity.333 + * 另一种实现的思路,是在ViewPager监听事件里面,对ViewPager的状态进行判断.闲置-滑动,和用户交互中-移除滑动. + * public void onPageScrollStateChanged(int state) { + * //当滑动状态发生改变的时候,手动滑动的时候,不能进行界面切换操作 + * //SCROLL_STATE_IDLE : 空闲状态 + * if (state == ViewPager.SCROLL_STATE_IDLE) { + * //自动切换界面 + * handler.sendEmptyMessageDelayed(VIEWPAGER_SWITCH_PAGE, 3000); + * }else{ + * //停止自动切换 + * //停止界面切换操作 + * handler.removeMessages(VIEWPAGER_SWITCH_PAGE); + * } + * } + */ + public void ViewPagerTouchEvent() { + viewpager_vp.setOnTouchListener(new View.OnTouchListener() { + @Override + public boolean onTouch(View view, MotionEvent motionEvent) { + switch (motionEvent.getAction()) { + case MotionEvent.ACTION_DOWN: + //当时MotionEvent.ACTION_DOWN和ACTION_MOVE,就移除handler发送的message.removeMessages.333 + handler.removeMessages(1); + break; + case MotionEvent.ACTION_MOVE: + handler.removeMessages(1); + break; + //当用户手松开时ACTION_UP,就继续使用sendEmptyMessageDelayed发送handler的消息.333 + case MotionEvent.ACTION_UP: + handler.sendEmptyMessageDelayed(1, 3000); + default: + break; + } + return false; + } + }); + } + + + @Override + public void onDestroy() { + super.onDestroy(); + handler.removeMessages(1); + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/FrgmentFour.java b/LoveVegetable/app/src/main/java/com/example/myapplication/FrgmentFour.java new file mode 100644 index 0000000..899e5d1 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/FrgmentFour.java @@ -0,0 +1,161 @@ +package com.example.myapplication; + +import android.content.Context; +import android.content.Intent; +import android.graphics.Bitmap; +import android.media.MediaMetadataRetriever; +import android.net.Uri; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.MotionEvent; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.MediaController; +import android.widget.TextView; +import android.widget.VideoView; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; + +import com.bumptech.glide.Glide; +import com.bumptech.glide.request.RequestOptions; + +import java.text.SimpleDateFormat; +import java.util.Formatter; +import java.util.Locale; + + +public class FrgmentFour extends Fragment implements android.view.GestureDetector.OnGestureListener { + private VideoView videoView,videoView1,videoView2; + private Button btn_start,btn_end; + private MediaController mediaController; + private ImageView img; + private TextView t_gd; + int n; + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view=inflater.inflate( R.layout.activity_maindynamic,container,false); + return view; + } + + public void onActivityCreated(Bundle savedlnstanceState) { + super.onActivityCreated( savedlnstanceState ); + t_gd=getActivity().findViewById( R.id.t_gd ); + videoView = (VideoView) getActivity().findViewById( R.id.videoView ); + videoView1 = (VideoView) getActivity().findViewById( R.id.videoView1 ); + videoView2 = (VideoView) getActivity().findViewById( R.id.videoView2 ); + init(); + init1(); + init2(); + t_gd.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent(); + intent.setAction("android.intent.action.VIEW"); + Uri content_url = Uri.parse("http://www.cnblogs.com"); + intent.setData(content_url); + intent.setClass(getActivity(),WebActivity.class); + startActivity( intent ); + } + } ); + + + /** + * MediaMetadataRetriever class provides a unified interface for retrieving + * frame and meta data from an input media file. + */ + videoView.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + init(); + } + } ); + videoView1.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + init1(); + } + } ); + videoView2.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + init2(); + } + } ); + SimpleDateFormat simpleDateFormat=new SimpleDateFormat( "ss" ); + + } + + private void init() { + videoView = (VideoView) getActivity().findViewById(R.id.videoView); + mediaController = new MediaController(getContext()); + String uri = "android.resource://" + getActivity().getPackageName() + "/" + R.raw.ass; + videoView.setVideoURI(Uri.parse(uri)); + videoView.setMediaController(mediaController); + mediaController.setMediaPlayer(videoView); + videoView.requestFocus(); + videoView.start(); + } + private void init1() { + videoView1 = (VideoView) getActivity().findViewById(R.id.videoView1); + mediaController = new MediaController(getContext()); + String uri = "android.resource://" + getActivity().getPackageName() + "/" + R.raw.ass1; + videoView1.setVideoURI(Uri.parse(uri)); + videoView1.setMediaController(mediaController); + mediaController.setMediaPlayer(videoView1); + videoView1.requestFocus(); + videoView1.start(); + } + private void init2() { + videoView2 = (VideoView) getActivity().findViewById(R.id.videoView2); + + mediaController = new MediaController(getContext()); + String uri = "android.resource://" + getActivity().getPackageName() + "/" + R.raw.ass2; + videoView2.setVideoURI(Uri.parse(uri)); + videoView2.setMediaController(mediaController); + mediaController.setMediaPlayer(videoView2); + videoView2.requestFocus(); + videoView2.start(); + } + + + @Override + public boolean onDown(MotionEvent e) { + videoView.pause(); + videoView1.pause(); + videoView2.pause(); + return false; + } + + @Override + public void onShowPress(MotionEvent e) { + + } + + @Override + public boolean onSingleTapUp(MotionEvent e) { + return false; + } + + @Override + public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { + videoView.pause(); + videoView1.pause(); + videoView2.pause(); + return false; + } + + @Override + public void onLongPress(MotionEvent e) { + + } + + @Override + public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { + return false; + } +} \ No newline at end of file diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/Infor.java b/LoveVegetable/app/src/main/java/com/example/myapplication/Infor.java new file mode 100644 index 0000000..e4319eb --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/Infor.java @@ -0,0 +1,33 @@ +package com.example.myapplication; + +public class Infor { + int id; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + String name; + String content; + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/Main2Activity.java b/LoveVegetable/app/src/main/java/com/example/myapplication/Main2Activity.java new file mode 100644 index 0000000..249df41 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/Main2Activity.java @@ -0,0 +1,79 @@ +package com.example.myapplication; + +import android.app.Activity; +import android.content.Context; +import android.content.Intent; +import android.content.SharedPreferences; +import android.os.Build; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.TextView; +import android.widget.Toast; + +import androidx.annotation.RequiresApi; +import androidx.appcompat.app.AppCompatActivity; + +public class Main2Activity extends AppCompatActivity implements View.OnClickListener { + Button b3; + TextView et3,et4,et5; + boolean t; + ImageView qxzc; + + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + //设置当前页面的布局 + setContentView(R.layout.activity_event_detail); + //初始化组件 + b3 = (Button) findViewById(R.id.bt3); + et3 = (EditText)findViewById(R.id.et3); + et4 = (EditText)findViewById(R.id.et4); + et5 = (EditText)findViewById(R.id.et5); + qxzc=findViewById( R.id.qxzc ); + qxzc.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + b3.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + String res3=et3.getText().toString(); + String res4=et4.getText().toString(); + String res5=et5.getText().toString(); + SharedPreferences sp=getSharedPreferences("loginInfo", MODE_PRIVATE); + t=sp.contains(res3); + if (res3.equals("")) { + Toast.makeText( Main2Activity.this, "注册失败!用户名不能为空", Toast.LENGTH_SHORT).show(); + } + else if(res4.equals("")&&res5.equals("")) { + Toast.makeText(getApplicationContext(), "注册失败!密码不能为空!", Toast.LENGTH_SHORT).show(); + + }else if (!res4.equals(res5)) { + Toast.makeText(getApplicationContext(), "注册失败!密码不一致!", Toast.LENGTH_SHORT).show(); + } + else if (t==true) { + Toast.makeText(getApplicationContext(), "注册失败!用户名已存在!", Toast.LENGTH_SHORT).show(); + } else { + Toast.makeText(getApplicationContext(), "注册成功", Toast.LENGTH_SHORT).show(); + SharedPreferences.Editor editor=sp.edit(); + editor.putString(res3, res4); + editor.commit(); + Intent intent = new Intent(); + intent.setClass(Main2Activity.this, MainActivity.class); + startActivity(intent); + finish(); + } + } + }); + } + + @Override + public void onClick(View view) { + + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/Main3Activity.java b/LoveVegetable/app/src/main/java/com/example/myapplication/Main3Activity.java new file mode 100644 index 0000000..2ed1739 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/Main3Activity.java @@ -0,0 +1,171 @@ +package com.example.myapplication; + +import android.graphics.Color; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageButton; +import android.widget.RadioGroup; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentActivity; +import androidx.fragment.app.FragmentManager; +import androidx.fragment.app.FragmentPagerAdapter; +import androidx.fragment.app.FragmentTransaction; +import androidx.viewpager.widget.ViewPager; + +import java.util.ArrayList; +import java.util.List; + +public class Main3Activity extends AppCompatActivity { + ImageButton home,type,me,dynamic,shopcar; + private RadioGroup radioGroup; + ViewPager pager; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main3); + home=findViewById(R.id.ibu1); + type=findViewById(R.id.ibu2); + me=findViewById(R.id.ibu5); + dynamic=findViewById( R.id.ibu3 ); + shopcar=findViewById( R.id.ibu4 ); + + String s = Data.getUsername(); + if (s==null) { + Fragment two = new FragmentTwo(); + //实例化管理器 + FragmentManager fm = getSupportFragmentManager(); + //定义事务 + FragmentTransaction ft = fm.beginTransaction(); + //将当前的fragment替换为第二个 + ft.add(R.id.fag6,two); + //提交事务 + ft.commit(); + me.setBackgroundResource(R.drawable.wd); + home.setBackgroundResource(R.drawable.syd); + type.setBackgroundResource(R.drawable.gd); + dynamic.setBackgroundResource(R.drawable.fx); + shopcar.setBackgroundResource( R.drawable.gwc ); + } + else { + Fragment three = new FragmentThree(); + //实例化管理器 + FragmentManager fm = getSupportFragmentManager(); + //定义事务 + FragmentTransaction ft = fm.beginTransaction(); + //将当前的fragment替换为第二个 + ft.replace(R.id.fag6, three); + //提交事务 + ft.commit(); + home.setBackgroundResource(R.drawable.sy); + type.setBackgroundResource(R.drawable.gd); + dynamic.setBackgroundResource( R.drawable.fx ); + shopcar.setBackgroundResource( R.drawable.gwc ); + me.setBackgroundResource(R.drawable.wdd); + } + + + home.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + //实例化fragment + Fragment two = new FragmentTwo(); + //实例化管理器 + FragmentManager fm = getSupportFragmentManager(); + //定义事务 + FragmentTransaction ft = fm.beginTransaction(); + //添加fragment + ft.replace(R.id.fag6, two); + //提交事务 + ft.commit(); + type.setBackgroundResource(R.drawable.gd); + me.setBackgroundResource(R.drawable.wd); + dynamic.setBackgroundResource( R.drawable.fx); + shopcar.setBackgroundResource( R.drawable.gwc ); + home.setBackgroundResource(R.drawable.syd); + + } + }); + + type.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Fragment one = new FragmentOne(); + //实例化管理器 + FragmentManager fm = getSupportFragmentManager(); + //定义事务 + FragmentTransaction ft = fm.beginTransaction(); + //将当前的fragment替换为第二个 + ft.replace(R.id.fag6, one); + //提交事务 + ft.commit(); + me.setBackgroundResource(R.drawable.wd); + home.setBackgroundResource(R.drawable.sy); + dynamic.setBackgroundResource( R.drawable.fx); + shopcar.setBackgroundResource( R.drawable.gwc ); + type.setBackgroundResource(R.drawable.gdd); + } + }); + me.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + //实例化fragment + Fragment three = new FragmentThree(); + //实例化管理器 + FragmentManager fm = getSupportFragmentManager(); + //定义事务 + FragmentTransaction ft = fm.beginTransaction(); + //将当前的fragment替换为第二个 + ft.replace(R.id.fag6, three); + //提交事务 + ft.commit(); + home.setBackgroundResource(R.drawable.sy); + type.setBackgroundResource(R.drawable.gd); + dynamic.setBackgroundResource( R.drawable.fx ); + shopcar.setBackgroundResource( R.drawable.gwc ); + me.setBackgroundResource(R.drawable.wdd); + } + }); + dynamic.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + //实例化fragment + Fragment four = new FrgmentFour(); + //实例化管理器 + FragmentManager fm = getSupportFragmentManager(); + //定义事务 + FragmentTransaction ft = fm.beginTransaction(); + //将当前的fragment替换为第二个 + ft.replace(R.id.fag6, four); + //提交事务 + ft.commit(); + home.setBackgroundResource(R.drawable.sy); + type.setBackgroundResource(R.drawable.gd); + me.setBackgroundResource(R.drawable.wd); + shopcar.setBackgroundResource( R.drawable.gwc ); + dynamic.setBackgroundResource( R.drawable.fxd ); + } + }); + shopcar.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + //实例化fragment + Fragment five = new FragmentFive(); + //实例化管理器 + FragmentManager fm = getSupportFragmentManager(); + //定义事务 + FragmentTransaction ft = fm.beginTransaction(); + //将当前的fragment替换为第二个 + ft.replace(R.id.fag6, five); + //提交事务 + ft.commit(); + home.setBackgroundResource(R.drawable.sy); + type.setBackgroundResource(R.drawable.gd); + me.setBackgroundResource(R.drawable.wd); + dynamic.setBackgroundResource( R.drawable.fx ); + shopcar.setBackgroundResource( R.drawable.gwcd ); + } + }); + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/Main4Activity.java b/LoveVegetable/app/src/main/java/com/example/myapplication/Main4Activity.java new file mode 100644 index 0000000..59c9ecf --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/Main4Activity.java @@ -0,0 +1,105 @@ +package com.example.myapplication; + +import androidx.appcompat.app.AppCompatActivity; + +import android.content.Intent; +import android.net.Uri; +import android.os.Build; +import android.os.Bundle; +import android.provider.MediaStore; +import android.view.MotionEvent; +import android.view.View; +import android.view.Window; +import android.view.WindowManager; +import android.widget.MediaController; +import android.widget.TextView; +import android.widget.VideoView; + +import java.util.Timer; +import java.util.TimerTask; +import android.annotation.TargetApi; +import android.content.Context; +import android.util.AttributeSet; +import android.widget.VideoView; + +public class Main4Activity extends AppCompatActivity { + TextView m_text; + VideoView videoViewq; + private MediaController mediaController; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate( savedInstanceState ); + setContentView( R.layout.activity_main4 ); + videoViewq=findViewById( R.id.videoViewq ); + m_text=findViewById( R.id.m_text ); + init2(); + final Intent intent = new Intent(this, Main3Activity.class); + + final Timer timer = new Timer(); + + TimerTask task = new TimerTask() { + + @Override + public void run() { + startActivity(intent); + finish(); //执行 + } + + }; + + timer.schedule(task, 1000 * 15); //15秒后 + m_text.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + startActivity(intent); + timer.cancel(); + finish(); + } + } ); + getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); + + } + private void init2() { + videoViewq = (VideoView) findViewById(R.id.videoViewq); + + mediaController = new MediaController(this); + String uri = "android.resource://" + getPackageName() + "/" + R.raw.qdy; + videoViewq.setVideoURI( Uri.parse(uri)); + videoViewq.requestFocus(); + videoViewq.start(); + + } + + + public boolean onDown(MotionEvent e) { + videoViewq.pause(); + return false; + } + + + public void onShowPress(MotionEvent e) { + + } + + + public boolean onSingleTapUp(MotionEvent e) { + return false; + } + + + public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { + videoViewq.pause(); + return false; + } + + + public void onLongPress(MotionEvent e) { + + } + + + public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { + return false; + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivity.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivity.java new file mode 100644 index 0000000..826c9b7 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivity.java @@ -0,0 +1,123 @@ +package com.example.myapplication; +import android.annotation.SuppressLint; +import android.content.Intent; +import android.content.SharedPreferences; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.CheckBox; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.TextView; +import android.widget.Toast; +import androidx.appcompat.app.AppCompatActivity; + +public class MainActivity extends AppCompatActivity implements View.OnClickListener { + //声明组件 + + Button b1,b2; + EditText et1,et2,et3,t1,t2; + EditText et_name; + CheckBox cb; + boolean a; + ImageView qxdl; + private String res1,res2,res3,res4, res6,res7; + + @SuppressLint("ResourceType") + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + //设置当前页面的布局 + setContentView(R.layout.activity_main); + //初始化组件 + b1 = (Button) findViewById(R.id.b1); + b2 = (Button) findViewById(R.id.b2); + et_name=findViewById(R.id.et1); + et1=(EditText)findViewById(R.id.et1); + et2=(EditText)findViewById(R.id.et2); + cb=(CheckBox)findViewById(R.id.cb); + qxdl=findViewById( R.id.qxdl ); + qxdl.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + b1.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + res1=et1.getText().toString(); + res2=et2.getText().toString(); + SharedPreferences sp=getSharedPreferences("loginInfo", MODE_PRIVATE); + a=sp.contains(res1); + String psw= sp.getString(res1, null); + if(res1.equals("")) { + Toast.makeText(getApplicationContext(), "用户名为空", Toast.LENGTH_SHORT).show(); + } + if(res2.equals("")) { + Toast.makeText(getApplicationContext(), "密码为空", Toast.LENGTH_SHORT).show(); + } + else if(a==false) { + Toast.makeText(getApplicationContext(), "登陆失败,用户名不存在", Toast.LENGTH_SHORT).show(); + } + else if(psw.equals(res2)) { + Toast.makeText(getApplicationContext(), "登陆成功", Toast.LENGTH_SHORT).show(); + String name=et_name.getText().toString(); + Data.setUsername( name ); + Intent intent=new Intent(MainActivity.this,Main3Activity.class); + startActivity(intent); + finish(); + }else{ + Toast.makeText(getApplicationContext(), "登陆失败", Toast.LENGTH_SHORT).show(); + } + } + }); + b2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent=new Intent(); + intent.setClass(MainActivity.this,Main2Activity.class); + startActivity(intent); + } + }); + et2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + String na=et1.getText().toString(); + if(isExN(na)==true){ + SharedPreferences sp=getSharedPreferences("save",MODE_PRIVATE); + String b=sp.getString(na,null); + et2.setText(b); + } + } + }); + cb.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + if(cb.isChecked()){ + SharedPreferences sp=getSharedPreferences("save",MODE_PRIVATE); + SharedPreferences.Editor editor=sp.edit(); + String a=et1.getText().toString(); + String b=et2.getText().toString(); + editor.putString(a,b); + editor.putString("name",a); + editor.commit(); + } + else if(!cb.isChecked()){ + SharedPreferences sp=getSharedPreferences("save",MODE_PRIVATE); + sp.edit().remove(String.valueOf(a)).commit(); + } + } + + }); + } + + private boolean isExN(String name) { + SharedPreferences sp=getSharedPreferences("save",MODE_PRIVATE); + return sp.contains(name); + } + + @Override + public void onClick(View view) { + } + +} \ No newline at end of file diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityorder.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityorder.java new file mode 100644 index 0000000..5a5b39e --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityorder.java @@ -0,0 +1,210 @@ +package com.example.myapplication; + +import android.annotation.SuppressLint; +import android.graphics.Color; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.RadioGroup; +import android.widget.TextView; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import androidx.fragment.app.FragmentPagerAdapter; +import androidx.fragment.app.FragmentTransaction; +import androidx.viewpager.widget.ViewPager; + +import java.util.ArrayList; +import java.util.List; + +public class MainActivityorder extends AppCompatActivity { + ImageButton home,type,me,dynamic,shopcar; + ImageView fhj1; + TextView t1,t2,t3,t4,t5; + private TextView item_detail, item_category_report; + private ViewPager vp; + private FragmentOne oneFragment; + private FragmentTwo twoFragment; + private ViewPager pager; + private RadioGroup radioGroup; + @SuppressLint("WrongViewCast") + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_mainorder); + t1=findViewById(R.id.t1); + t2=findViewById(R.id.t2); + t3=findViewById(R.id.t3); + t4=findViewById( R.id.t4 ); + t5=findViewById( R.id.t5 ); + fhj1=findViewById( R.id.fhj1 ); + pager = findViewById(R.id.fag2); + radioGroup = findViewById(R.id.radioGroup); + +//选中第一个 + + radioGroup.check(radioGroup.getChildAt(0).getId()); + +//添加fragment页 + + final ArrayList list = new ArrayList<>(); + list.add(new MainActivityt1()); + list.add(new MainActivityt2()); + list.add(new MainActivityt3()); + list.add(new MainActivityt4()); + list.add(new MainActivityt5()); + +//内部类adapter + + pager.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) { + @Override + public Fragment getItem(int i) { + return list.get(i); + } + + @Override + public int getCount() { + return list.size(); + } + }); + +//viewpage切换 + + pager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { + @Override + public void onPageScrolled(int i, float v, int i1) { + + } + + @Override + public void onPageSelected(int i) { + radioGroup.check(radioGroup.getChildAt(i).getId()); + } + + @Override + public void onPageScrollStateChanged(int i) { + + } + }); + +//滑动选中相应的下标 + + radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { + @Override + public void onCheckedChanged(RadioGroup radioGroup, int i) { + switch (i){ + case R.id.t1: + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#FF0000") ); + pager.setCurrentItem(0); + break; + case R.id.t2: + t2.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(1); + break; + case R.id.t3: + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#FF0000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(2); + break; + case R.id.t4: + t4.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t2.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(3); + break; + case R.id.t5: + t5.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t2.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(4); + break; + } + } + }); + fhj1.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#FF0000") ); + t1.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + //实例化fragment + pager.setCurrentItem(0); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#FF0000") ); + } + }); + + t2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(1); + t2.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + } + }); + t5.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(4); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#FF0000") ); + t1.setTextColor( Color.parseColor("#000000") ); + } + }); + t3.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(2); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#FF0000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + } + }); + t4.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(3); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#FF0000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + } + }); + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt1.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt1.java new file mode 100644 index 0000000..2f7bf1c --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt1.java @@ -0,0 +1,32 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt1 extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint1, container, false ); + return view; + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt1t.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt1t.java new file mode 100644 index 0000000..cd72cef --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt1t.java @@ -0,0 +1,32 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt1t extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint1t, container, false ); + return view; + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt2.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt2.java new file mode 100644 index 0000000..d35f316 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt2.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt2 extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint2, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt2t.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt2t.java new file mode 100644 index 0000000..0ac0086 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt2t.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt2t extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint2t, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt3.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt3.java new file mode 100644 index 0000000..a697cc1 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt3.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt3 extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint3, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt3t.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt3t.java new file mode 100644 index 0000000..04baacd --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt3t.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt3t extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint3t, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt4.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt4.java new file mode 100644 index 0000000..e5d2018 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt4.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt4 extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint4, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt4t.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt4t.java new file mode 100644 index 0000000..570752b --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt4t.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt4t extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint4t, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt5.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt5.java new file mode 100644 index 0000000..4bb5ad1 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt5.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt5 extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint5, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt5t.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt5t.java new file mode 100644 index 0000000..1404662 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt5t.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt5t extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint5t, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt6t.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt6t.java new file mode 100644 index 0000000..3f527c8 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityt6t.java @@ -0,0 +1,31 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivityt6t extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_maint6t, container, false ); + return view; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym1.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym1.java new file mode 100644 index 0000000..522b5cc --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym1.java @@ -0,0 +1,32 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivitytxqym1 extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_mainxq1, container, false ); + return view; + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym2.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym2.java new file mode 100644 index 0000000..51970da --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym2.java @@ -0,0 +1,32 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivitytxqym2 extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_mainxq2, container, false ); + return view; + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym3.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym3.java new file mode 100644 index 0000000..9a54e99 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytxqym3.java @@ -0,0 +1,32 @@ +package com.example.myapplication; + +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.fragment.app.Fragment; + +/** + * + * @author yihuanxing + * + */ + +/** + * + * @author yihuanxing + * + */ +public class MainActivitytxqym3 extends Fragment { + + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate( R.layout.activity_mainxq3, container, false ); + return view; + } + +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytypede.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytypede.java new file mode 100644 index 0000000..f25c6f5 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivitytypede.java @@ -0,0 +1,321 @@ +package com.example.myapplication; + +import android.annotation.SuppressLint; +import android.graphics.Color; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.RadioGroup; +import android.widget.TextView; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import androidx.fragment.app.FragmentPagerAdapter; +import androidx.fragment.app.FragmentTransaction; +import androidx.viewpager.widget.ViewPager; + +import java.util.ArrayList; +import java.util.List; + +public class MainActivitytypede extends AppCompatActivity { + ImageButton home,type,me,dynamic,shopcar; + ImageView fhj1; + TextView t1,t2,t3,t4,t5,t6; + private TextView item_detail, item_category_report; + private ViewPager vp; + private FragmentOne oneFragment; + private FragmentTwo twoFragment; + private ViewPager pager; + private RadioGroup radioGroup; + @SuppressLint({"WrongViewCast", "ResourceType"}) + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_maintypede); + t1=findViewById(R.id.t1d); + t2=findViewById(R.id.t2d); + t3=findViewById(R.id.t3d); + t4=findViewById( R.id.t4d ); + t5=findViewById( R.id.t5d ); + t6=findViewById( R.id.t6d ); + fhj1=findViewById( R.id.fhj1 ); + pager = findViewById(R.id.fag3); + radioGroup = findViewById(R.id.radioGroup1); + +//选中第一个 + + radioGroup.check(radioGroup.getChildAt(0).getId()); + +//添加fragment页 + + final ArrayList list = new ArrayList<>(); + list.add(new MainActivityt1t()); + list.add(new MainActivityt2t()); + list.add(new MainActivityt3t()); + list.add(new MainActivityt4t()); + list.add(new MainActivityt5t()); + list.add(new MainActivityt6t()); + +//内部类adapter + + pager.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) { + @Override + public Fragment getItem(int i) { + return list.get(i); + } + + @Override + public int getCount() { + return list.size(); + } + }); + +//viewpage切换 + + pager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { + @Override + public void onPageScrolled(int i, float v, int i1) { + + } + + @Override + public void onPageSelected(int i) { + radioGroup.check(radioGroup.getChildAt(i).getId()); + } + + @Override + public void onPageScrollStateChanged(int i) { + + } + }); + +//滑动选中相应的下标 + + radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { + @SuppressLint("ResourceType") + @Override + public void onCheckedChanged(RadioGroup radioGroup, int i) { + switch (i){ + case R.id.t1d: + t1.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t6.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#FF0000") ); + pager.setCurrentItem(0); + break; + case R.id.t2d: + t2.setBackgroundResource( R.drawable.borderflxq ); + t1.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t6.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(1); + break; + case R.id.t3d: + t3.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t1.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t6.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#FF0000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(2); + break; + case R.id.t4d: + t4.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t1.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t6.setBackgroundResource( R.drawable.borderflxqf ); + t4.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t2.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(3); + break; + case R.id.t5d: + t5.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t6.setBackgroundResource( R.drawable.borderflxqf); + t1.setBackgroundResource( R.drawable.borderflxqf ); + t5.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t2.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(4); + break; + case R.id.t6d: + t6.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf); + t1.setBackgroundResource( R.drawable.borderflxqf ); + t6.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t2.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + pager.setCurrentItem(5); + } + } + }); + fhj1.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + t1.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#FF0000") ); + t1.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + //实例化fragment + pager.setCurrentItem(0); + t1.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t6.setBackgroundResource( R.drawable.borderflxqf ); + t6.setTextColor( Color.parseColor("#000000") ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#FF0000") ); + } + }); + + t2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(1); + t2.setBackgroundResource( R.drawable.borderflxq ); + t1.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t6.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#FF0000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + } + }); + t5.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(4); + t5.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t6.setBackgroundResource( R.drawable.borderflxqf); + t1.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#FF0000") ); + t1.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + + } + }); + t3.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(2); + t3.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t1.setBackgroundResource( R.drawable.borderflxqf); + t4.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t6.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#FF0000") ); + t4.setTextColor( Color.parseColor("#000000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + } + }); + t4.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(3); + t4.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t1.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t6.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#FF0000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#000000") ); + } + }); + t6.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(5); + t6.setBackgroundResource( R.drawable.borderflxq ); + t2.setBackgroundResource( R.drawable.borderflxqf ); + t3.setBackgroundResource( R.drawable.borderflxqf); + t1.setBackgroundResource( R.drawable.borderflxqf); + t5.setBackgroundResource( R.drawable.borderflxqf ); + t4.setBackgroundResource( R.drawable.borderflxqf ); + t2.setTextColor( Color.parseColor("#000000") ); + t3.setTextColor( Color.parseColor("#000000") ); + t6.setTextColor( Color.parseColor("#FF0000") ); + t5.setTextColor( Color.parseColor("#000000") ); + t1.setTextColor( Color.parseColor("#000000") ); + t4.setTextColor( Color.parseColor("#000000") ); + } + }); + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityxqym.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityxqym.java new file mode 100644 index 0000000..6e3e29a --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityxqym.java @@ -0,0 +1,210 @@ +package com.example.myapplication; + + +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; +import android.view.MotionEvent; +import android.view.View; +import android.widget.Button; +import android.widget.Toast; +import android.annotation.SuppressLint; +import android.widget.ImageView; +import android.widget.RadioGroup; +import android.widget.TextView; + +import androidx.appcompat.app.AlertDialog; +import androidx.appcompat.app.AppCompatActivity; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentPagerAdapter; +import androidx.viewpager.widget.ViewPager; + +import java.util.ArrayList; + +public class MainActivityxqym extends AppCompatActivity { + ImageView fhj1; + TextView t1,t2,t3; + ImageView t_sc,t_fx; + Button jrgwc; + int n=0; + private ViewPager pager; + private RadioGroup radioGroup; + @SuppressLint("WrongViewCast") + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_mainxqym); + t1=findViewById(R.id.t1x); + t2=findViewById(R.id.t2x); + t3=findViewById(R.id.t3x); + fhj1=findViewById( R.id.fhj1 ); + pager = findViewById(R.id.fag3); + radioGroup = findViewById(R.id.radioGroup); + t_sc=findViewById( R.id.t_sc ); + t_fx=findViewById( R.id.t_fx ); + jrgwc=findViewById( R.id.jrgwc ); + t_sc.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + n++; + if (n % 2 == 1) { + t_sc.setBackgroundResource( R.drawable.sctbd ); + Toast.makeText( getBaseContext(), "已收藏!", Toast.LENGTH_SHORT ).show(); + }else{ + t_sc.setBackgroundResource( R.drawable.sctb ); + Toast.makeText( getBaseContext(), "取消收藏!", Toast.LENGTH_SHORT ).show(); + } + } + } ); + t_fx.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Toast.makeText( getBaseContext(),"已分享!",Toast.LENGTH_SHORT ).show(); + } + } ); + jrgwc.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Data.setA( 11 ); + Toast.makeText( getBaseContext(),"已加入购物车!",Toast.LENGTH_SHORT ).show(); + } + } ); +//选中第一个 + + radioGroup.check(radioGroup.getChildAt(0).getId()); + +//添加fragment页 + + final ArrayList list = new ArrayList<>(); + list.add(new MainActivitytxqym1()); + list.add(new MainActivitytxqym2()); + list.add(new MainActivitytxqym3()); + +//内部类adapter + + pager.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) { + @Override + public Fragment getItem(int i) { + return list.get(i); + } + + @Override + public int getCount() { + return list.size(); + } + }); + +//viewpage切换 + + pager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { + @Override + public void onPageScrolled(int i, float v, int i1) { + + } + + @Override + public void onPageSelected(int i) { + radioGroup.check(radioGroup.getChildAt(i).getId()); + } + + @Override + public void onPageScrollStateChanged(int i) { + + } + }); + +//滑动选中相应的下标 + + radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { + @Override + public void onCheckedChanged(RadioGroup radioGroup, int i) { + switch (i){ + case R.id.t1x: + t2.setBackgroundResource( R.drawable.borderflxqy ); + t3.setBackgroundResource( R.drawable.borderflxqy); + t1.setBackgroundResource( R.drawable.borderflxqyd); + pager.setCurrentItem(0); + break; + case R.id.t2x: + t1.setBackgroundResource( R.drawable.borderflxqy ); + t3.setBackgroundResource( R.drawable.borderflxqy); + t2.setBackgroundResource( R.drawable.borderflxqyd); + pager.setCurrentItem(1); + break; + case R.id.t3x: + t2.setBackgroundResource( R.drawable.borderflxqy ); + t1.setBackgroundResource( R.drawable.borderflxqy); + t3.setBackgroundResource( R.drawable.borderflxqyd); + pager.setCurrentItem(2); + break; + + } + } + }); + fhj1.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + t2.setBackgroundResource( R.drawable.borderflxqy ); + t3.setBackgroundResource( R.drawable.borderflxqy); + t1.setBackgroundResource( R.drawable.borderflxqyd); + t1.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + //实例化fragment + pager.setCurrentItem(0); + t2.setBackgroundResource( R.drawable.borderflxqy ); + t3.setBackgroundResource( R.drawable.borderflxqy); + t1.setBackgroundResource( R.drawable.borderflxqyd); + } + }); + + t2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(1); + t1.setBackgroundResource( R.drawable.borderflxqy ); + t3.setBackgroundResource( R.drawable.borderflxqy); + t2.setBackgroundResource( R.drawable.borderflxqyd); + } + }); + + t3.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + pager.setCurrentItem(2); + t2.setBackgroundResource( R.drawable.borderflxqy ); + t1.setBackgroundResource( R.drawable.borderflxqy); + t3.setBackgroundResource( R.drawable.borderflxqyd); + } + }); + + } + public void showdialog(View view) { +//Toast.makeText(this,"clickme",Toast.LENGTH_LONG).show(); + AlertDialog.Builder alertdialogbuilder=new AlertDialog.Builder(this); + alertdialogbuilder.setIcon( R.drawable.tubiao); + alertdialogbuilder.setTitle( "提示:" ); + alertdialogbuilder.setMessage("您已选择该商品,是否购买?"); + alertdialogbuilder.setPositiveButton("确定", click1); + alertdialogbuilder.setNegativeButton("取消", click2); + AlertDialog alertdialog1=alertdialogbuilder.create(); + alertdialog1.show(); + } + private DialogInterface.OnClickListener click1= new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent intent=new Intent(MainActivityxqym.this,MainActivityxzzffs.class); + startActivity( intent ); + dialog.cancel(); + } + }; + private DialogInterface.OnClickListener click2= new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + dialog.cancel(); + } + }; +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityxzzffs.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityxzzffs.java new file mode 100644 index 0000000..1019296 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityxzzffs.java @@ -0,0 +1,55 @@ +package com.example.myapplication; + +import android.annotation.SuppressLint; +import android.content.Intent; +import android.graphics.Color; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.RadioGroup; +import android.widget.TextView; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentPagerAdapter; +import androidx.viewpager.widget.ViewPager; + +import java.util.ArrayList; + +public class MainActivityxzzffs extends AppCompatActivity { + ImageButton home,type,me,dynamic,shopcar; + ImageView fhj1; + Button qdzf; + TextView t1,t2,t3,t4,t5,t6; + private TextView item_detail, item_category_report; + private ViewPager vp; + private FragmentOne oneFragment; + private FragmentTwo twoFragment; + private ViewPager pager; + private RadioGroup radioGroup; + @SuppressLint({"WrongViewCast", "ResourceType"}) + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main_xzzffs); + fhj1=findViewById( R.id.fhj ); + qdzf=findViewById( R.id.qdzf ); + qdzf.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent(MainActivityxzzffs.this,MainActivityzfcg.class); + finish(); + startActivity( intent ); + } + } ); + fhj1.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityzfcg.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityzfcg.java new file mode 100644 index 0000000..7d11c16 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MainActivityzfcg.java @@ -0,0 +1,39 @@ +package com.example.myapplication; + +import android.annotation.SuppressLint; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.RadioGroup; +import android.widget.TextView; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.viewpager.widget.ViewPager; + +public class MainActivityzfcg extends AppCompatActivity { + ImageButton home,type,me,dynamic,shopcar; + Button fhj1; + TextView t1,t2,t3,t4,t5,t6; + private TextView item_detail, item_category_report; + private ViewPager vp; + private FragmentOne oneFragment; + private FragmentTwo twoFragment; + private ViewPager pager; + private RadioGroup radioGroup; + @SuppressLint({"WrongViewCast", "ResourceType"}) + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main_zfcg); + fhj1=findViewById( R.id.qd ); + fhj1.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MianActivityset.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MianActivityset.java new file mode 100644 index 0000000..4404c8d --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MianActivityset.java @@ -0,0 +1,38 @@ +package com.example.myapplication; + +import android.annotation.SuppressLint; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.ImageView; +import android.widget.RadioGroup; +import android.widget.TextView; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.viewpager.widget.ViewPager; + +public class MianActivityset extends AppCompatActivity { + TextView t_yhm; + ImageView fhj; + @SuppressLint("WrongViewCast") + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate( savedInstanceState ); + setContentView( R.layout.activity_mainset ); + t_yhm=findViewById( R.id.t_yhm ); + fhj=findViewById( R.id.fhj1 ); + fhj.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + String s = Data.getUsername(); + if (s==null) { + t_yhm.setText( "请登录!" ); + } + else { + t_yhm.setText( "用户名:"+s ); + } + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MianActivityxx.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MianActivityxx.java new file mode 100644 index 0000000..32ea3eb --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MianActivityxx.java @@ -0,0 +1,28 @@ +package com.example.myapplication; + +import android.annotation.SuppressLint; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; + +import androidx.appcompat.app.AppCompatActivity; + +public class MianActivityxx extends AppCompatActivity { + TextView t_yhm; + ImageView fhj; + @SuppressLint("WrongViewCast") + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate( savedInstanceState ); + setContentView( R.layout.activity_mainxx); + fhj=findViewById( R.id.fhj1 ); + fhj.setOnClickListener( new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + } ); + + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MyPagerAdapter.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MyPagerAdapter.java new file mode 100644 index 0000000..4965a67 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MyPagerAdapter.java @@ -0,0 +1,51 @@ +package com.example.myapplication; + +import android.view.View; +import android.view.ViewGroup; + +import androidx.annotation.NonNull; +import androidx.viewpager.widget.PagerAdapter; + +import java.util.ArrayList; +import java.util.List; + +/* +ViewPager的适配器,提供视图数据 + */ +public class MyPagerAdapter extends PagerAdapter { + + //视图列表 + private List viewList=new ArrayList( ); + //构造方法 + + public MyPagerAdapter() { + + } + + public MyPagerAdapter(List viewList) { + this.viewList = viewList; + } +//显示多少个页面 + @Override + public int getCount() { + return viewList.size(); + } +//初始化指定位置的页面 + @NonNull + @Override + public Object instantiateItem(@NonNull ViewGroup container, int position) { + //将页面加入容器中 + container.addView( viewList.get( position ) ); + return viewList.get( position ); + } +//销毁指定位置的页面 + @Override + public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) { + container.removeView( viewList.get( position ) ); + } + + @Override + public boolean isViewFromObject(@NonNull View view, @NonNull Object object) { + return view==object; + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/MyScrollView.java b/LoveVegetable/app/src/main/java/com/example/myapplication/MyScrollView.java new file mode 100644 index 0000000..851ce7e --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/MyScrollView.java @@ -0,0 +1,47 @@ +package com.example.myapplication; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.MotionEvent; +import android.widget.ScrollView; + +public class MyScrollView extends ScrollView { + OnTouchListener mGestureListener; + // 滑动距离及坐标 + private float xDistance, yDistance, xLast, yLast; + public MyScrollView(Context context) { + super(context); + } + + public MyScrollView(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public MyScrollView(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + } + + @Override + public boolean onInterceptTouchEvent(MotionEvent ev) { + switch (ev.getAction()){ + case MotionEvent.ACTION_DOWN: + xDistance = yDistance = 0f; + xLast = ev.getX(); + yLast = ev.getY(); + break; + case MotionEvent.ACTION_MOVE: + final float curX = ev.getX(); + final float curY = ev.getY(); + xDistance += Math.abs(curX - xLast); + yDistance += Math.abs(curY - yLast); + xLast = curX; + yLast = curY; + if(xDistance > yDistance){ + return false; + } + break; + + } + return super.onInterceptTouchEvent(ev); + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/UnScrollListView.java b/LoveVegetable/app/src/main/java/com/example/myapplication/UnScrollListView.java new file mode 100644 index 0000000..132c3c7 --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/UnScrollListView.java @@ -0,0 +1,27 @@ +package com.example.myapplication; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.ListView; + +public class UnScrollListView extends ListView { + public UnScrollListView(Context context) { + super(context); + } + + public UnScrollListView(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public UnScrollListView(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + } + + @Override + protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { + int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, + MeasureSpec.AT_MOST); + super.onMeasure(widthMeasureSpec, expandSpec);//这里返回的是刚写好的expandSpec + + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/WebActivity.java b/LoveVegetable/app/src/main/java/com/example/myapplication/WebActivity.java new file mode 100644 index 0000000..a45bdff --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/WebActivity.java @@ -0,0 +1,83 @@ +package com.example.myapplication; + +import android.annotation.SuppressLint; +import android.graphics.Bitmap; +import android.os.Build; +import android.os.Bundle; +import android.view.KeyEvent; +import android.webkit.WebChromeClient; +import android.webkit.WebResourceRequest; +import android.webkit.WebView; +import android.webkit.WebViewClient; + +import androidx.annotation.RequiresApi; +import androidx.appcompat.app.AppCompatActivity; + +import com.example.myapplication.R; + +@SuppressLint("Registered") +public class WebActivity extends AppCompatActivity { + private WebView mWebview; + private static int account=1;//避免重复弹出alert + @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN) + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_maingdwy); + mWebview= (WebView) findViewById( R.id.wv_web); + //使用JAvascript语言 + mWebview.getSettings().setJavaScriptEnabled(true); + + //使用app打开网页 + mWebview.setWebViewClient(new MyWebViewClient()); + //设置网页组件功能 + mWebview.setWebChromeClient(new MyWebChromeClient()); +// mWebview.loadUrl("http://psy.yangtzeu.edu.cn/psym/SelfHelp/ArticleList.aspx"); + //设置链接 + mWebview.loadUrl("https://www.baidu.com/"); + + } + + class MyWebViewClient extends WebViewClient { + @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) + @Override + public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) { + view.loadUrl(request.getUrl().toString()); + return true; + } + //在进入页面前的操作,这里为弹出alert框口。 + @Override + public void onPageStarted(WebView view, String url, Bitmap favicon) { + super.onPageStarted(view, url, favicon); + + if(account++ == 1){ + mWebview.loadUrl("javascript:alert('友情提示:此网页来源于网络,本APP产品不承担任何责任')"); + }} + //页面结束后发生的操作 + @Override + public void onPageFinished(WebView view, String url) { + super.onPageFinished(view, url); + } + } + class MyWebChromeClient extends WebChromeClient { + @Override + public void onProgressChanged(WebView view, int newProgress) { + super.onProgressChanged(view, newProgress); + } + //更改页面标题 + @Override + public void onReceivedTitle(WebView view, String title) { + super.onReceivedTitle(view, title); + setTitle(title); + } + } + //设置后退键为返回上一步的操作 + @Override + public boolean onKeyDown(int keyCode, KeyEvent event) { + if(keyCode==KeyEvent.KEYCODE_BACK &&mWebview.canGoBack()){ + mWebview.goBack(); + return true; + } + return super.onKeyDown(keyCode, event); + } +} diff --git a/LoveVegetable/app/src/main/java/com/example/myapplication/myapplication.plantuml b/LoveVegetable/app/src/main/java/com/example/myapplication/myapplication.plantuml new file mode 100644 index 0000000..eb0592d --- /dev/null +++ b/LoveVegetable/app/src/main/java/com/example/myapplication/myapplication.plantuml @@ -0,0 +1,727 @@ +@startuml + +title __MYAPPLICATION's Class Diagram__\n + + namespace com.example.myapplication { + class com.example.myapplication.CustomVideoView { + + CustomVideoView() + + CustomVideoView() + + CustomVideoView() + + onKeyDown() + + setOnPreparedListener() + # onMeasure() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Data { + {static} - K : int + {static} - a : int + {static} - b : int + {static} - c : int + {static} - d : int + {static} - e : int + {static} - f : int + {static} - g : int + {static} - h : int + {static} - i : int + {static} - j : int + {static} - username : String + {static} + getA() + {static} + getB() + {static} + getC() + {static} + getD() + {static} + getE() + {static} + getF() + {static} + getG() + {static} + getH() + {static} + getI() + {static} + getJ() + {static} + getK() + {static} + getUsername() + {static} + setA() + {static} + setB() + {static} + setC() + {static} + setD() + {static} + setE() + {static} + setF() + {static} + setG() + {static} + setH() + {static} + setI() + {static} + setJ() + {static} + setK() + {static} + setUsername() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.DatabaseHelper { + {static} - CREATE_TABLE : String + {static} - DB_NAME : String + {static} - TABLE_NAME : String + - db : SQLiteDatabase + + DatabaseHelper() + + del() + + insert() + + onCreate() + + onUpgrade() + + query() + + update() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.DescriptionActivity { + ~ et_info : EditText + ~ et_name : EditText + ~ et_type : EditText + ~ fhj : ImageView + ~ iv_flowerB : ImageView + ~ jrgwc : Button + ~ n : int + ~ t_fx : ImageView + ~ t_price : TextView + ~ t_sc : ImageView + ~ tv_flowerB : TextView + - click1 : OnClickListener + - click2 : OnClickListener + + onKeyDown() + + showdialog() + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentFive { + ~ bj : TextView + ~ blFlag : boolean + ~ gwc1 : LinearLayout + ~ gwc10 : LinearLayout + ~ gwc11 : LinearLayout + ~ gwc2 : LinearLayout + ~ gwc3 : LinearLayout + ~ gwc4 : LinearLayout + ~ gwc5 : LinearLayout + ~ gwc6 : LinearLayout + ~ gwc7 : LinearLayout + ~ gwc8 : LinearLayout + ~ gwc9 : LinearLayout + ~ ibu1 : ImageButton + ~ ibu2 : ImageButton + ~ img : ImageView + ~ layx : LinearLayout + ~ minus : ImageButton + ~ minus1 : ImageButton + ~ n : int + ~ number : TextView + ~ number1 : TextView + ~ plus : ImageButton + ~ plus1 : ImageButton + ~ qq : Button + ~ rb : CheckBox + ~ rb1 : CheckBox + ~ rb10 : CheckBox + ~ rb2 : CheckBox + ~ rb3 : CheckBox + ~ rb4 : CheckBox + ~ rb5 : CheckBox + ~ rb6 : CheckBox + ~ rb7 : CheckBox + ~ rb8 : CheckBox + ~ rb9 : CheckBox + ~ surebuy : Button + ~ switch1 : Switch + ~ switch2 : Switch + ~ tv_sz : TextView + ~ wx : Button + - count : int + - count1 : int + - mUiModeManager : UiModeManager + + onActivityCreated() + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentFive.ButtonMinus { + + onClick() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentFive.ButtonMinus1 { + + onClick() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentFive.ButtonPlus { + + onClick() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentFive.ButtonPlus1 { + + onClick() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentOne { + ~ layout1 : LinearLayout + ~ layout2 : LinearLayout + + onActivityCreated() + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentThree { + ~ blFlag : boolean + ~ i_sz : ImageView + ~ i_xx : ImageView + ~ ibu1 : ImageButton + ~ ibu2 : ImageButton + ~ imgtx : ImageView + ~ lay : LinearLayout + ~ qq : Button + ~ switch1 : Switch + ~ switch2 : Switch + ~ t_ljlq : TextView + ~ t_username : TextView + ~ wx : Button + - mUiModeManager : UiModeManager + + onActivityCreated() + + onCreateView() + + onResume() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentTwo { + ~ iM_liz : ImageView + ~ i_tb : ImageView + ~ ibu1 : ImageButton + ~ ibu3 : ImageButton + ~ imageViews : ArrayList + ~ list : ListView + ~ tv_login : TextView + - descs : String[] + - handler : Handler + - imageResIds : int[] + - ll_dots : LinearLayout + - viewpager_tv : TextView + - viewpager_vp : ViewPager + + ViewPagerTouchEvent() + + changeTextAndDot() + + dot() + + onActivityCreated() + + onCreateView() + + onDestroy() + - init() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FragmentTwo.Myadapter { + + destroyItem() + + getCount() + + instantiateItem() + + isViewFromObject() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.FrgmentFour { + ~ n : int + - btn_end : Button + - btn_start : Button + - img : ImageView + - mediaController : MediaController + - t_gd : TextView + - videoView : VideoView + - videoView1 : VideoView + - videoView2 : VideoView + + onActivityCreated() + + onCreateView() + + onDown() + + onFling() + + onLongPress() + + onScroll() + + onShowPress() + + onSingleTapUp() + - init() + - init1() + - init2() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Infor { + ~ content : String + ~ id : int + ~ name : String + + getContent() + + getId() + + getName() + + setContent() + + setId() + + setName() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Main2Activity { + ~ b3 : Button + ~ et3 : TextView + ~ et4 : TextView + ~ et5 : TextView + ~ qxzc : ImageView + ~ t : boolean + + onClick() + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Main3Activity { + ~ dynamic : ImageButton + ~ home : ImageButton + ~ me : ImageButton + ~ pager : ViewPager + ~ shopcar : ImageButton + ~ type : ImageButton + - radioGroup : RadioGroup + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.Main4Activity { + ~ m_text : TextView + ~ videoViewq : VideoView + - mediaController : MediaController + + onDown() + + onFling() + + onLongPress() + + onScroll() + + onShowPress() + + onSingleTapUp() + # onCreate() + - init2() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivity { + ~ a : boolean + ~ b1 : Button + ~ b2 : Button + ~ cb : CheckBox + ~ et1 : EditText + ~ et2 : EditText + ~ et3 : EditText + ~ et_name : EditText + ~ qxdl : ImageView + ~ t1 : EditText + ~ t2 : EditText + - res1 : String + - res2 : String + - res3 : String + - res4 : String + - res6 : String + - res7 : String + + onClick() + # onCreate() + - isExN() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityorder { + ~ dynamic : ImageButton + ~ fhj1 : ImageView + ~ home : ImageButton + ~ me : ImageButton + ~ shopcar : ImageButton + ~ t1 : TextView + ~ t2 : TextView + ~ t3 : TextView + ~ t4 : TextView + ~ t5 : TextView + ~ type : ImageButton + - item_category_report : TextView + - item_detail : TextView + - pager : ViewPager + - radioGroup : RadioGroup + - vp : ViewPager + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt1 { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt1t { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt2 { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt2t { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt3 { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt3t { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt4 { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt4t { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt5 { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt5t { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityt6t { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivitytxqym1 { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivitytxqym2 { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivitytxqym3 { + + onCreateView() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivitytypede { + ~ dynamic : ImageButton + ~ fhj1 : ImageView + ~ home : ImageButton + ~ me : ImageButton + ~ shopcar : ImageButton + ~ t1 : TextView + ~ t2 : TextView + ~ t3 : TextView + ~ t4 : TextView + ~ t5 : TextView + ~ t6 : TextView + ~ type : ImageButton + - item_category_report : TextView + - item_detail : TextView + - pager : ViewPager + - radioGroup : RadioGroup + - vp : ViewPager + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityxqym { + ~ fhj1 : ImageView + ~ jrgwc : Button + ~ n : int + ~ t1 : TextView + ~ t2 : TextView + ~ t3 : TextView + ~ t_fx : ImageView + ~ t_sc : ImageView + - click1 : OnClickListener + - click2 : OnClickListener + - pager : ViewPager + - radioGroup : RadioGroup + + showdialog() + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityxzzffs { + ~ dynamic : ImageButton + ~ fhj1 : ImageView + ~ home : ImageButton + ~ me : ImageButton + ~ qdzf : Button + ~ shopcar : ImageButton + ~ t1 : TextView + ~ t2 : TextView + ~ t3 : TextView + ~ t4 : TextView + ~ t5 : TextView + ~ t6 : TextView + ~ type : ImageButton + - item_category_report : TextView + - item_detail : TextView + - pager : ViewPager + - radioGroup : RadioGroup + - vp : ViewPager + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MainActivityzfcg { + ~ dynamic : ImageButton + ~ fhj1 : Button + ~ home : ImageButton + ~ me : ImageButton + ~ shopcar : ImageButton + ~ t1 : TextView + ~ t2 : TextView + ~ t3 : TextView + ~ t4 : TextView + ~ t5 : TextView + ~ t6 : TextView + ~ type : ImageButton + - item_category_report : TextView + - item_detail : TextView + - pager : ViewPager + - radioGroup : RadioGroup + - vp : ViewPager + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MianActivityset { + ~ fhj : ImageView + ~ t_yhm : TextView + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MianActivityxx { + ~ fhj : ImageView + ~ t_yhm : TextView + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MyPagerAdapter { + - viewList : List + + MyPagerAdapter() + + MyPagerAdapter() + + destroyItem() + + getCount() + + instantiateItem() + + isViewFromObject() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.MyScrollView { + ~ mGestureListener : OnTouchListener + - xDistance : float + - xLast : float + - yDistance : float + - yLast : float + + MyScrollView() + + MyScrollView() + + MyScrollView() + + onInterceptTouchEvent() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.UnScrollListView { + + UnScrollListView() + + UnScrollListView() + + UnScrollListView() + # onMeasure() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.WebActivity { + {static} - account : int + - mWebview : WebView + + onKeyDown() + # onCreate() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.WebActivity.MyWebChromeClient { + + onProgressChanged() + + onReceivedTitle() + } + } + + + namespace com.example.myapplication { + class com.example.myapplication.WebActivity.MyWebViewClient { + + onPageFinished() + + onPageStarted() + + shouldOverrideUrlLoading() + } + } + + + com.example.myapplication.CustomVideoView -up-|> android.widget.VideoView + com.example.myapplication.DatabaseHelper -up-|> android.database.sqlite.SQLiteOpenHelper + com.example.myapplication.DescriptionActivity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.FragmentFive -up-|> androidx.fragment.app.Fragment + com.example.myapplication.FragmentFive +-down- com.example.myapplication.FragmentFive.ButtonMinus + com.example.myapplication.FragmentFive +-down- com.example.myapplication.FragmentFive.ButtonMinus1 + com.example.myapplication.FragmentFive +-down- com.example.myapplication.FragmentFive.ButtonPlus + com.example.myapplication.FragmentFive +-down- com.example.myapplication.FragmentFive.ButtonPlus1 + com.example.myapplication.FragmentFive.ButtonMinus .up.|> android.view.View.OnClickListener + com.example.myapplication.FragmentFive.ButtonMinus1 .up.|> android.view.View.OnClickListener + com.example.myapplication.FragmentFive.ButtonPlus .up.|> android.view.View.OnClickListener + com.example.myapplication.FragmentFive.ButtonPlus1 .up.|> android.view.View.OnClickListener + com.example.myapplication.FragmentOne -up-|> androidx.fragment.app.Fragment + com.example.myapplication.FragmentThree -up-|> androidx.fragment.app.Fragment + com.example.myapplication.FragmentTwo -up-|> androidx.fragment.app.Fragment + com.example.myapplication.FragmentTwo +-down- com.example.myapplication.FragmentTwo.Myadapter + com.example.myapplication.FragmentTwo.Myadapter -up-|> androidx.viewpager.widget.PagerAdapter + com.example.myapplication.FrgmentFour .up.|> android.view.GestureDetector.OnGestureListener + com.example.myapplication.FrgmentFour -up-|> androidx.fragment.app.Fragment + com.example.myapplication.Main2Activity .up.|> android.view.View.OnClickListener + com.example.myapplication.Main2Activity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.Main3Activity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.Main4Activity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivity .up.|> android.view.View.OnClickListener + com.example.myapplication.MainActivity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityorder -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityorder o-- com.example.myapplication.FragmentOne : oneFragment + com.example.myapplication.MainActivityorder o-- com.example.myapplication.FragmentTwo : twoFragment + com.example.myapplication.MainActivityt1 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt1t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt2 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt2t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt3 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt3t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt4 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt4t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt5 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt5t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivityt6t -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivitytxqym1 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivitytxqym2 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivitytxqym3 -up-|> androidx.fragment.app.Fragment + com.example.myapplication.MainActivitytypede -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivitytypede o-- com.example.myapplication.FragmentOne : oneFragment + com.example.myapplication.MainActivitytypede o-- com.example.myapplication.FragmentTwo : twoFragment + com.example.myapplication.MainActivityxqym -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityxzzffs -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityxzzffs o-- com.example.myapplication.FragmentOne : oneFragment + com.example.myapplication.MainActivityxzzffs o-- com.example.myapplication.FragmentTwo : twoFragment + com.example.myapplication.MainActivityzfcg -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MainActivityzfcg o-- com.example.myapplication.FragmentOne : oneFragment + com.example.myapplication.MainActivityzfcg o-- com.example.myapplication.FragmentTwo : twoFragment + com.example.myapplication.MianActivityset -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MianActivityxx -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.MyPagerAdapter -up-|> androidx.viewpager.widget.PagerAdapter + com.example.myapplication.MyScrollView -up-|> android.widget.ScrollView + com.example.myapplication.UnScrollListView -up-|> android.widget.ListView + com.example.myapplication.WebActivity -up-|> androidx.appcompat.app.AppCompatActivity + com.example.myapplication.WebActivity +-down- com.example.myapplication.WebActivity.MyWebChromeClient + com.example.myapplication.WebActivity +-down- com.example.myapplication.WebActivity.MyWebViewClient + com.example.myapplication.WebActivity.MyWebChromeClient -up-|> android.webkit.WebChromeClient + com.example.myapplication.WebActivity.MyWebViewClient -up-|> android.webkit.WebViewClient + + +right footer + + +PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it) +For more information about this tool, please contact philippe.mesmeur@gmail.com +endfooter + +@enduml diff --git a/LoveVegetable/app/src/main/res/drawable-v24/bordera.xml b/LoveVegetable/app/src/main/res/drawable-v24/bordera.xml new file mode 100644 index 0000000..6380718 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/bordera.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderau.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderau.xml new file mode 100644 index 0000000..d9dc897 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderau.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderb.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderb.xml new file mode 100644 index 0000000..889ad2f --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderb.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderdd.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderdd.xml new file mode 100644 index 0000000..ee73c51 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderdd.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderf.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderf.xml new file mode 100644 index 0000000..26ff97d --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderf.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderflx.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderflx.xml new file mode 100644 index 0000000..efc70a5 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderflx.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderflxq.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderflxq.xml new file mode 100644 index 0000000..8eaac89 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderflxq.xml @@ -0,0 +1,17 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderflxqf.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderflxqf.xml new file mode 100644 index 0000000..3f25f99 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderflxqf.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderssdd.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderssdd.xml new file mode 100644 index 0000000..e2e917b --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderssdd.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/bordert.xml b/LoveVegetable/app/src/main/res/drawable-v24/bordert.xml new file mode 100644 index 0000000..9f022fc --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/bordert.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderxzzffs.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderxzzffs.xml new file mode 100644 index 0000000..c5ece6b --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderxzzffs.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/borderyh.xml b/LoveVegetable/app/src/main/res/drawable-v24/borderyh.xml new file mode 100644 index 0000000..d5eab3f --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/borderyh.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/button_circle_shape.xml b/LoveVegetable/app/src/main/res/drawable-v24/button_circle_shape.xml new file mode 100644 index 0000000..6af1491 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/button_circle_shape.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + **设置文字padding** + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/button_shape.xml b/LoveVegetable/app/src/main/res/drawable-v24/button_shape.xml new file mode 100644 index 0000000..d37adbe --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/button_shape.xml @@ -0,0 +1,20 @@ + + + + + + + + **设置文字padding** + + + + diff --git a/LoveVegetable/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/LoveVegetable/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..971add5 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/a.jpg b/LoveVegetable/app/src/main/res/drawable/a.jpg new file mode 100644 index 0000000..7a283db Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a1.jpg b/LoveVegetable/app/src/main/res/drawable/a1.jpg new file mode 100644 index 0000000..87b9d76 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a1.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a10.jpg b/LoveVegetable/app/src/main/res/drawable/a10.jpg new file mode 100644 index 0000000..7d793b7 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a10.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a11.jpg b/LoveVegetable/app/src/main/res/drawable/a11.jpg new file mode 100644 index 0000000..7f01a66 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a11.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a12.jpg b/LoveVegetable/app/src/main/res/drawable/a12.jpg new file mode 100644 index 0000000..320b01f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a12.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a13.jpg b/LoveVegetable/app/src/main/res/drawable/a13.jpg new file mode 100644 index 0000000..1634aab Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a13.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a14.jpg b/LoveVegetable/app/src/main/res/drawable/a14.jpg new file mode 100644 index 0000000..e559359 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a14.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a15.jpg b/LoveVegetable/app/src/main/res/drawable/a15.jpg new file mode 100644 index 0000000..668596d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a15.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a16.jpg b/LoveVegetable/app/src/main/res/drawable/a16.jpg new file mode 100644 index 0000000..65ba1bc Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a16.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a17.jpg b/LoveVegetable/app/src/main/res/drawable/a17.jpg new file mode 100644 index 0000000..d0d1db0 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a17.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a18.jpg b/LoveVegetable/app/src/main/res/drawable/a18.jpg new file mode 100644 index 0000000..81382b9 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a18.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a19.jpg b/LoveVegetable/app/src/main/res/drawable/a19.jpg new file mode 100644 index 0000000..5dc8458 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a19.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a2.jpg b/LoveVegetable/app/src/main/res/drawable/a2.jpg new file mode 100644 index 0000000..f8095b6 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a2.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a20.jpg b/LoveVegetable/app/src/main/res/drawable/a20.jpg new file mode 100644 index 0000000..9757221 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a20.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a21.jpg b/LoveVegetable/app/src/main/res/drawable/a21.jpg new file mode 100644 index 0000000..fae4a28 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a21.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a22.jpg b/LoveVegetable/app/src/main/res/drawable/a22.jpg new file mode 100644 index 0000000..3004c4e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a22.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a23.jpg b/LoveVegetable/app/src/main/res/drawable/a23.jpg new file mode 100644 index 0000000..6b45145 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a23.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a24.jpg b/LoveVegetable/app/src/main/res/drawable/a24.jpg new file mode 100644 index 0000000..c8bd189 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a24.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a25.jpg b/LoveVegetable/app/src/main/res/drawable/a25.jpg new file mode 100644 index 0000000..8d2fc99 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a25.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a26.jpg b/LoveVegetable/app/src/main/res/drawable/a26.jpg new file mode 100644 index 0000000..be5ba12 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a26.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a27.jpg b/LoveVegetable/app/src/main/res/drawable/a27.jpg new file mode 100644 index 0000000..010c28a Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a27.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a3.jpg b/LoveVegetable/app/src/main/res/drawable/a3.jpg new file mode 100644 index 0000000..39d189e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a3.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a4.jpg b/LoveVegetable/app/src/main/res/drawable/a4.jpg new file mode 100644 index 0000000..526bee6 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a4.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a5.jpg b/LoveVegetable/app/src/main/res/drawable/a5.jpg new file mode 100644 index 0000000..3312177 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a5.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a6.jpg b/LoveVegetable/app/src/main/res/drawable/a6.jpg new file mode 100644 index 0000000..505f146 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a6.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a7.jpg b/LoveVegetable/app/src/main/res/drawable/a7.jpg new file mode 100644 index 0000000..9b78fb8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a7.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a8.jpg b/LoveVegetable/app/src/main/res/drawable/a8.jpg new file mode 100644 index 0000000..2319feb Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a8.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/a9.jpg b/LoveVegetable/app/src/main/res/drawable/a9.jpg new file mode 100644 index 0000000..298fbcd Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/a9.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/aq.jpeg b/LoveVegetable/app/src/main/res/drawable/aq.jpeg new file mode 100644 index 0000000..b7ba850 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/aq.jpeg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b.jpg b/LoveVegetable/app/src/main/res/drawable/b.jpg new file mode 100644 index 0000000..8afb1a4 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b1.jpg b/LoveVegetable/app/src/main/res/drawable/b1.jpg new file mode 100644 index 0000000..4906caa Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b1.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b10.jpg b/LoveVegetable/app/src/main/res/drawable/b10.jpg new file mode 100644 index 0000000..1f2af0e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b10.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b11.jpg b/LoveVegetable/app/src/main/res/drawable/b11.jpg new file mode 100644 index 0000000..0505a89 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b11.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b12.png b/LoveVegetable/app/src/main/res/drawable/b12.png new file mode 100644 index 0000000..73fd0ae Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b12.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/b13.jpg b/LoveVegetable/app/src/main/res/drawable/b13.jpg new file mode 100644 index 0000000..cd0b467 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b13.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b14.jpg b/LoveVegetable/app/src/main/res/drawable/b14.jpg new file mode 100644 index 0000000..5cfcacb Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b14.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b15.jpg b/LoveVegetable/app/src/main/res/drawable/b15.jpg new file mode 100644 index 0000000..521b1da Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b15.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b16.jpg b/LoveVegetable/app/src/main/res/drawable/b16.jpg new file mode 100644 index 0000000..7a63675 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b16.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b17.jpg b/LoveVegetable/app/src/main/res/drawable/b17.jpg new file mode 100644 index 0000000..78439fc Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b17.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b18.png b/LoveVegetable/app/src/main/res/drawable/b18.png new file mode 100644 index 0000000..1c3d630 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b18.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/b19.png b/LoveVegetable/app/src/main/res/drawable/b19.png new file mode 100644 index 0000000..7ce262b Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b19.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/b2.jpg b/LoveVegetable/app/src/main/res/drawable/b2.jpg new file mode 100644 index 0000000..4a622b8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b2.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b20.jpg b/LoveVegetable/app/src/main/res/drawable/b20.jpg new file mode 100644 index 0000000..99b70bb Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b20.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b21.jpg b/LoveVegetable/app/src/main/res/drawable/b21.jpg new file mode 100644 index 0000000..8f1696f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b21.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b3.jpg b/LoveVegetable/app/src/main/res/drawable/b3.jpg new file mode 100644 index 0000000..c6f285b Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b3.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b4.jpg b/LoveVegetable/app/src/main/res/drawable/b4.jpg new file mode 100644 index 0000000..9a447a8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b4.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b5.jpg b/LoveVegetable/app/src/main/res/drawable/b5.jpg new file mode 100644 index 0000000..505e3ee Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b5.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b6.jpg b/LoveVegetable/app/src/main/res/drawable/b6.jpg new file mode 100644 index 0000000..a4125ba Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b6.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b7.jpg b/LoveVegetable/app/src/main/res/drawable/b7.jpg new file mode 100644 index 0000000..ab7704e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b7.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b8.jpg b/LoveVegetable/app/src/main/res/drawable/b8.jpg new file mode 100644 index 0000000..c00524b Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b8.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/b9.jpg b/LoveVegetable/app/src/main/res/drawable/b9.jpg new file mode 100644 index 0000000..ec34395 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/b9.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/bd.jpg b/LoveVegetable/app/src/main/res/drawable/bd.jpg new file mode 100644 index 0000000..5f4616d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/bd.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/bja.png b/LoveVegetable/app/src/main/res/drawable/bja.png new file mode 100644 index 0000000..1e21bff Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/bja.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/bl.jpg b/LoveVegetable/app/src/main/res/drawable/bl.jpg new file mode 100644 index 0000000..72f417c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/bl.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/border.xml b/LoveVegetable/app/src/main/res/drawable/border.xml new file mode 100644 index 0000000..c5ece6b --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/border.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/borderaxq.xml b/LoveVegetable/app/src/main/res/drawable/borderaxq.xml new file mode 100644 index 0000000..f95361c --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/borderaxq.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/borderdl.xml b/LoveVegetable/app/src/main/res/drawable/borderdl.xml new file mode 100644 index 0000000..f04855b --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/borderdl.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/borderflxqy.xml b/LoveVegetable/app/src/main/res/drawable/borderflxqy.xml new file mode 100644 index 0000000..b7fc8b2 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/borderflxqy.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/borderflxqyd.xml b/LoveVegetable/app/src/main/res/drawable/borderflxqyd.xml new file mode 100644 index 0000000..fbc8ffb --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/borderflxqyd.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/borderg.xml b/LoveVegetable/app/src/main/res/drawable/borderg.xml new file mode 100644 index 0000000..29d6514 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/borderg.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/bordersq.xml b/LoveVegetable/app/src/main/res/drawable/bordersq.xml new file mode 100644 index 0000000..f95361c --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/bordersq.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/btn_press.xml b/LoveVegetable/app/src/main/res/drawable/btn_press.xml new file mode 100644 index 0000000..b520af2 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/btn_press.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/res/drawable/btn_selector.xml b/LoveVegetable/app/src/main/res/drawable/btn_selector.xml new file mode 100644 index 0000000..a70b958 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/btn_selector.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/res/drawable/btn_unpress.xml b/LoveVegetable/app/src/main/res/drawable/btn_unpress.xml new file mode 100644 index 0000000..407642e --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/btn_unpress.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/res/drawable/c.jpg b/LoveVegetable/app/src/main/res/drawable/c.jpg new file mode 100644 index 0000000..0e5fb96 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/c.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/cb.jpg b/LoveVegetable/app/src/main/res/drawable/cb.jpg new file mode 100644 index 0000000..7d01ced Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/cb.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/cktb.png b/LoveVegetable/app/src/main/res/drawable/cktb.png new file mode 100644 index 0000000..0e2d41e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/cktb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/d.jpg b/LoveVegetable/app/src/main/res/drawable/d.jpg new file mode 100644 index 0000000..cf5b897 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/d.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/dfh.jpg b/LoveVegetable/app/src/main/res/drawable/dfh.jpg new file mode 100644 index 0000000..bd219f2 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/dfh.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/dfk.jpg b/LoveVegetable/app/src/main/res/drawable/dfk.jpg new file mode 100644 index 0000000..6af6620 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/dfk.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/dialog_bg.xml b/LoveVegetable/app/src/main/res/drawable/dialog_bg.xml new file mode 100644 index 0000000..dbbae1e --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/dialog_bg.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/res/drawable/dot_focus.jpg b/LoveVegetable/app/src/main/res/drawable/dot_focus.jpg new file mode 100644 index 0000000..d413e93 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/dot_focus.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/dot_normal.jpg b/LoveVegetable/app/src/main/res/drawable/dot_normal.jpg new file mode 100644 index 0000000..5e9a5b7 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/dot_normal.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/dpj.jpg b/LoveVegetable/app/src/main/res/drawable/dpj.jpg new file mode 100644 index 0000000..b8985ef Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/dpj.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/dsh.jpg b/LoveVegetable/app/src/main/res/drawable/dsh.jpg new file mode 100644 index 0000000..705952f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/dsh.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/dy.jpg b/LoveVegetable/app/src/main/res/drawable/dy.jpg new file mode 100644 index 0000000..29d6223 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/dy.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/e.jpg b/LoveVegetable/app/src/main/res/drawable/e.jpg new file mode 100644 index 0000000..d03bfdd Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/e.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/ewmsm.png b/LoveVegetable/app/src/main/res/drawable/ewmsm.png new file mode 100644 index 0000000..383b12d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/ewmsm.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/ewmtb.png b/LoveVegetable/app/src/main/res/drawable/ewmtb.png new file mode 100644 index 0000000..c4b8078 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/ewmtb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/f.jpg b/LoveVegetable/app/src/main/res/drawable/f.jpg new file mode 100644 index 0000000..8ac138c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f1.jpg b/LoveVegetable/app/src/main/res/drawable/f1.jpg new file mode 100644 index 0000000..d3e116f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f1.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f10.jpg b/LoveVegetable/app/src/main/res/drawable/f10.jpg new file mode 100644 index 0000000..5813063 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f10.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f11.jpg b/LoveVegetable/app/src/main/res/drawable/f11.jpg new file mode 100644 index 0000000..252ab3d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f11.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f12.jpg b/LoveVegetable/app/src/main/res/drawable/f12.jpg new file mode 100644 index 0000000..8d2fc99 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f12.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f13.jpg b/LoveVegetable/app/src/main/res/drawable/f13.jpg new file mode 100644 index 0000000..1d4f8b5 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f13.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f14.jpg b/LoveVegetable/app/src/main/res/drawable/f14.jpg new file mode 100644 index 0000000..a5e0252 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f14.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f15.jpg b/LoveVegetable/app/src/main/res/drawable/f15.jpg new file mode 100644 index 0000000..dd3cae9 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f15.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f16.jpg b/LoveVegetable/app/src/main/res/drawable/f16.jpg new file mode 100644 index 0000000..0d2d80b Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f16.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f17.jpg b/LoveVegetable/app/src/main/res/drawable/f17.jpg new file mode 100644 index 0000000..e531b2d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f17.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f18.jpg b/LoveVegetable/app/src/main/res/drawable/f18.jpg new file mode 100644 index 0000000..cb516bf Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f18.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f19.jpg b/LoveVegetable/app/src/main/res/drawable/f19.jpg new file mode 100644 index 0000000..12265a2 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f19.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f2.jpg b/LoveVegetable/app/src/main/res/drawable/f2.jpg new file mode 100644 index 0000000..d61ce75 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f2.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f20.jpg b/LoveVegetable/app/src/main/res/drawable/f20.jpg new file mode 100644 index 0000000..3747890 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f20.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f21.jpg b/LoveVegetable/app/src/main/res/drawable/f21.jpg new file mode 100644 index 0000000..ede7cc9 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f21.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f22.jpg b/LoveVegetable/app/src/main/res/drawable/f22.jpg new file mode 100644 index 0000000..f55f1c3 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f22.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f23.jpg b/LoveVegetable/app/src/main/res/drawable/f23.jpg new file mode 100644 index 0000000..e11d4f9 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f23.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f24.jpg b/LoveVegetable/app/src/main/res/drawable/f24.jpg new file mode 100644 index 0000000..d09765c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f24.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f25.jpg b/LoveVegetable/app/src/main/res/drawable/f25.jpg new file mode 100644 index 0000000..31e64f3 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f25.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f26.jpg b/LoveVegetable/app/src/main/res/drawable/f26.jpg new file mode 100644 index 0000000..3bfa141 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f26.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f27.jpg b/LoveVegetable/app/src/main/res/drawable/f27.jpg new file mode 100644 index 0000000..b42ed56 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f27.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f28.jpg b/LoveVegetable/app/src/main/res/drawable/f28.jpg new file mode 100644 index 0000000..8c58f82 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f28.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f29.jpg b/LoveVegetable/app/src/main/res/drawable/f29.jpg new file mode 100644 index 0000000..6618ddd Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f29.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f3.jpg b/LoveVegetable/app/src/main/res/drawable/f3.jpg new file mode 100644 index 0000000..c2d7e71 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f3.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f30.jpg b/LoveVegetable/app/src/main/res/drawable/f30.jpg new file mode 100644 index 0000000..5fee435 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f30.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f4.jpg b/LoveVegetable/app/src/main/res/drawable/f4.jpg new file mode 100644 index 0000000..65a7a32 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f4.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f5.jpg b/LoveVegetable/app/src/main/res/drawable/f5.jpg new file mode 100644 index 0000000..f7295a8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f5.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f6.jpg b/LoveVegetable/app/src/main/res/drawable/f6.jpg new file mode 100644 index 0000000..8234f7f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f6.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f7.jpg b/LoveVegetable/app/src/main/res/drawable/f7.jpg new file mode 100644 index 0000000..a94bcec Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f7.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f8.jpg b/LoveVegetable/app/src/main/res/drawable/f8.jpg new file mode 100644 index 0000000..173b28f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f8.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/f9.jpg b/LoveVegetable/app/src/main/res/drawable/f9.jpg new file mode 100644 index 0000000..69f08f8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/f9.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/fht.png b/LoveVegetable/app/src/main/res/drawable/fht.png new file mode 100644 index 0000000..bb4a452 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/fht.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/fx.png b/LoveVegetable/app/src/main/res/drawable/fx.png new file mode 100644 index 0000000..98af19e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/fx.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/fxd.png b/LoveVegetable/app/src/main/res/drawable/fxd.png new file mode 100644 index 0000000..45fec6d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/fxd.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/fxtb.png b/LoveVegetable/app/src/main/res/drawable/fxtb.png new file mode 100644 index 0000000..6026976 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/fxtb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/g1.jpg b/LoveVegetable/app/src/main/res/drawable/g1.jpg new file mode 100644 index 0000000..352c750 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g1.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g10.jpg b/LoveVegetable/app/src/main/res/drawable/g10.jpg new file mode 100644 index 0000000..d7c74e1 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g10.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g11.jpg b/LoveVegetable/app/src/main/res/drawable/g11.jpg new file mode 100644 index 0000000..e458b82 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g11.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g12.jpg b/LoveVegetable/app/src/main/res/drawable/g12.jpg new file mode 100644 index 0000000..5fe649d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g12.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g13.jpg b/LoveVegetable/app/src/main/res/drawable/g13.jpg new file mode 100644 index 0000000..cdc903e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g13.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g14.jpg b/LoveVegetable/app/src/main/res/drawable/g14.jpg new file mode 100644 index 0000000..9b9b34e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g14.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g15.jpg b/LoveVegetable/app/src/main/res/drawable/g15.jpg new file mode 100644 index 0000000..92c2e5b Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g15.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g16.jpg b/LoveVegetable/app/src/main/res/drawable/g16.jpg new file mode 100644 index 0000000..83af2e1 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g16.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g17.jpg b/LoveVegetable/app/src/main/res/drawable/g17.jpg new file mode 100644 index 0000000..37872ea Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g17.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g18.jpg b/LoveVegetable/app/src/main/res/drawable/g18.jpg new file mode 100644 index 0000000..38bc9ce Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g18.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g19.jpg b/LoveVegetable/app/src/main/res/drawable/g19.jpg new file mode 100644 index 0000000..9bb5f03 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g19.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g2.jpg b/LoveVegetable/app/src/main/res/drawable/g2.jpg new file mode 100644 index 0000000..4e95777 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g2.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g20.jpg b/LoveVegetable/app/src/main/res/drawable/g20.jpg new file mode 100644 index 0000000..c3ca507 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g20.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g23.jpg b/LoveVegetable/app/src/main/res/drawable/g23.jpg new file mode 100644 index 0000000..0324b9c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g23.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g24.jpg b/LoveVegetable/app/src/main/res/drawable/g24.jpg new file mode 100644 index 0000000..63950e0 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g24.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g25.jpg b/LoveVegetable/app/src/main/res/drawable/g25.jpg new file mode 100644 index 0000000..8d088da Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g25.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g26.jpg b/LoveVegetable/app/src/main/res/drawable/g26.jpg new file mode 100644 index 0000000..d0304fa Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g26.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g27.jpg b/LoveVegetable/app/src/main/res/drawable/g27.jpg new file mode 100644 index 0000000..515ad85 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g27.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g28.jpg b/LoveVegetable/app/src/main/res/drawable/g28.jpg new file mode 100644 index 0000000..6b53892 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g28.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g29.jpg b/LoveVegetable/app/src/main/res/drawable/g29.jpg new file mode 100644 index 0000000..4eebb9f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g29.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g3.jpg b/LoveVegetable/app/src/main/res/drawable/g3.jpg new file mode 100644 index 0000000..00f17d0 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g3.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g30.jpg b/LoveVegetable/app/src/main/res/drawable/g30.jpg new file mode 100644 index 0000000..0a593b8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g30.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g31.jpg b/LoveVegetable/app/src/main/res/drawable/g31.jpg new file mode 100644 index 0000000..e56ab7a Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g31.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g32.jpg b/LoveVegetable/app/src/main/res/drawable/g32.jpg new file mode 100644 index 0000000..5112420 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g32.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g4.jpg b/LoveVegetable/app/src/main/res/drawable/g4.jpg new file mode 100644 index 0000000..9dcb6ad Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g4.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g5.jpg b/LoveVegetable/app/src/main/res/drawable/g5.jpg new file mode 100644 index 0000000..f9ab87c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g5.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g6.jpg b/LoveVegetable/app/src/main/res/drawable/g6.jpg new file mode 100644 index 0000000..427e262 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g6.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g7.jpg b/LoveVegetable/app/src/main/res/drawable/g7.jpg new file mode 100644 index 0000000..74b260f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g7.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g8.jpg b/LoveVegetable/app/src/main/res/drawable/g8.jpg new file mode 100644 index 0000000..0025b38 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g8.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/g9.jpg b/LoveVegetable/app/src/main/res/drawable/g9.jpg new file mode 100644 index 0000000..c4f97ae Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/g9.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/gd.png b/LoveVegetable/app/src/main/res/drawable/gd.png new file mode 100644 index 0000000..473d419 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/gd.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/gdd.png b/LoveVegetable/app/src/main/res/drawable/gdd.png new file mode 100644 index 0000000..613d193 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/gdd.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/gdsz.png b/LoveVegetable/app/src/main/res/drawable/gdsz.png new file mode 100644 index 0000000..aa14c54 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/gdsz.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/gdt.png b/LoveVegetable/app/src/main/res/drawable/gdt.png new file mode 100644 index 0000000..a10540c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/gdt.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/gg.jpg b/LoveVegetable/app/src/main/res/drawable/gg.jpg new file mode 100644 index 0000000..968b821 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/gg.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/grtb.png b/LoveVegetable/app/src/main/res/drawable/grtb.png new file mode 100644 index 0000000..a27ab84 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/grtb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/gwc.png b/LoveVegetable/app/src/main/res/drawable/gwc.png new file mode 100644 index 0000000..0243040 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/gwc.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/gwcd.png b/LoveVegetable/app/src/main/res/drawable/gwcd.png new file mode 100644 index 0000000..4cf87d6 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/gwcd.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/hb.png b/LoveVegetable/app/src/main/res/drawable/hb.png new file mode 100644 index 0000000..d23c954 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/hb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/hbtb.png b/LoveVegetable/app/src/main/res/drawable/hbtb.png new file mode 100644 index 0000000..fc3d707 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/hbtb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/hw.jpg b/LoveVegetable/app/src/main/res/drawable/hw.jpg new file mode 100644 index 0000000..309b7a8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/hw.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/ic_launcher_background.xml b/LoveVegetable/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..eed7a42 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/LoveVegetable/app/src/main/res/drawable/icbn.jpg b/LoveVegetable/app/src/main/res/drawable/icbn.jpg new file mode 100644 index 0000000..7939185 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/icbn.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/icon.jpg b/LoveVegetable/app/src/main/res/drawable/icon.jpg new file mode 100644 index 0000000..dc47d7a Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/icon.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/iconb.jpg b/LoveVegetable/app/src/main/res/drawable/iconb.jpg new file mode 100644 index 0000000..181d7fe Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/iconb.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/image.jpg b/LoveVegetable/app/src/main/res/drawable/image.jpg new file mode 100644 index 0000000..026b78f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/image.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imagea.jpg b/LoveVegetable/app/src/main/res/drawable/imagea.jpg new file mode 100644 index 0000000..4c67ce8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imagea.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imageb.jpg b/LoveVegetable/app/src/main/res/drawable/imageb.jpg new file mode 100644 index 0000000..548d280 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imageb.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imageh.jpg b/LoveVegetable/app/src/main/res/drawable/imageh.jpg new file mode 100644 index 0000000..3b74377 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imageh.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imagem.png b/LoveVegetable/app/src/main/res/drawable/imagem.png new file mode 100644 index 0000000..ea3a009 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imagem.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/imagep.jpg b/LoveVegetable/app/src/main/res/drawable/imagep.jpg new file mode 100644 index 0000000..d220164 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imagep.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgh.jpg b/LoveVegetable/app/src/main/res/drawable/imgh.jpg new file mode 100644 index 0000000..4143e20 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgh.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgi.gif b/LoveVegetable/app/src/main/res/drawable/imgi.gif new file mode 100644 index 0000000..76499c2 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgi.gif differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgj.gif b/LoveVegetable/app/src/main/res/drawable/imgj.gif new file mode 100644 index 0000000..91bb05a Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgj.gif differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgk.gif b/LoveVegetable/app/src/main/res/drawable/imgk.gif new file mode 100644 index 0000000..a166e5b Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgk.gif differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgl.jpg b/LoveVegetable/app/src/main/res/drawable/imgl.jpg new file mode 100644 index 0000000..caa3abb Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgl.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgm.gif b/LoveVegetable/app/src/main/res/drawable/imgm.gif new file mode 100644 index 0000000..840e694 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgm.gif differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgn.jpg b/LoveVegetable/app/src/main/res/drawable/imgn.jpg new file mode 100644 index 0000000..7f92257 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgn.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgo.jpg b/LoveVegetable/app/src/main/res/drawable/imgo.jpg new file mode 100644 index 0000000..7544212 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgo.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgp.jpg b/LoveVegetable/app/src/main/res/drawable/imgp.jpg new file mode 100644 index 0000000..4fbe611 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgp.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgq.gif b/LoveVegetable/app/src/main/res/drawable/imgq.gif new file mode 100644 index 0000000..ff19943 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgq.gif differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgr.gif b/LoveVegetable/app/src/main/res/drawable/imgr.gif new file mode 100644 index 0000000..d69eb95 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgr.gif differ diff --git a/LoveVegetable/app/src/main/res/drawable/imgs.gif b/LoveVegetable/app/src/main/res/drawable/imgs.gif new file mode 100644 index 0000000..7f45cfd Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/imgs.gif differ diff --git a/LoveVegetable/app/src/main/res/drawable/jd.jpg b/LoveVegetable/app/src/main/res/drawable/jd.jpg new file mode 100644 index 0000000..5c8c154 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/jd.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/jdtb.png b/LoveVegetable/app/src/main/res/drawable/jdtb.png new file mode 100644 index 0000000..f6f2a6f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/jdtb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/jia.jpg b/LoveVegetable/app/src/main/res/drawable/jia.jpg new file mode 100644 index 0000000..fdc3137 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/jia.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/jian.jpg b/LoveVegetable/app/src/main/res/drawable/jian.jpg new file mode 100644 index 0000000..c7aa941 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/jian.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/jpt.png b/LoveVegetable/app/src/main/res/drawable/jpt.png new file mode 100644 index 0000000..9826f37 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/jpt.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/kf.png b/LoveVegetable/app/src/main/res/drawable/kf.png new file mode 100644 index 0000000..80e832b Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/kf.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/ozy.jpg b/LoveVegetable/app/src/main/res/drawable/ozy.jpg new file mode 100644 index 0000000..71228a6 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/ozy.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/pdd.jpg b/LoveVegetable/app/src/main/res/drawable/pdd.jpg new file mode 100644 index 0000000..54f6021 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/pdd.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/qdy.jpg b/LoveVegetable/app/src/main/res/drawable/qdy.jpg new file mode 100644 index 0000000..6cdf004 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/qdy.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/qq.png b/LoveVegetable/app/src/main/res/drawable/qq.png new file mode 100644 index 0000000..b3af060 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/qq.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/qxtb.png b/LoveVegetable/app/src/main/res/drawable/qxtb.png new file mode 100644 index 0000000..6c5f68c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/qxtb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/radio_btn_style.xml b/LoveVegetable/app/src/main/res/drawable/radio_btn_style.xml new file mode 100644 index 0000000..c229263 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/radio_btn_style.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/res/drawable/radio_checked_shape.xml b/LoveVegetable/app/src/main/res/drawable/radio_checked_shape.xml new file mode 100644 index 0000000..96a1804 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/radio_checked_shape.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/res/drawable/radio_uncheck_shape.xml b/LoveVegetable/app/src/main/res/drawable/radio_uncheck_shape.xml new file mode 100644 index 0000000..6874304 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/radio_uncheck_shape.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/res/drawable/sc.jpg b/LoveVegetable/app/src/main/res/drawable/sc.jpg new file mode 100644 index 0000000..09f4709 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sc.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/sctb.png b/LoveVegetable/app/src/main/res/drawable/sctb.png new file mode 100644 index 0000000..199cd5d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sctb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/sctbd.png b/LoveVegetable/app/src/main/res/drawable/sctbd.png new file mode 100644 index 0000000..3da0e89 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sctbd.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/sjdl.jpg b/LoveVegetable/app/src/main/res/drawable/sjdl.jpg new file mode 100644 index 0000000..b681af5 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sjdl.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/sqk.jpg b/LoveVegetable/app/src/main/res/drawable/sqk.jpg new file mode 100644 index 0000000..289a965 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sqk.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/ss.png b/LoveVegetable/app/src/main/res/drawable/ss.png new file mode 100644 index 0000000..8078589 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/ss.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/sstb.png b/LoveVegetable/app/src/main/res/drawable/sstb.png new file mode 100644 index 0000000..73aca1a Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sstb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/ssz.png b/LoveVegetable/app/src/main/res/drawable/ssz.png new file mode 100644 index 0000000..7232079 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/ssz.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/sy.png b/LoveVegetable/app/src/main/res/drawable/sy.png new file mode 100644 index 0000000..a384a5a Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sy.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/syd.png b/LoveVegetable/app/src/main/res/drawable/syd.png new file mode 100644 index 0000000..9ee03ce Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/syd.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/sz.jpg b/LoveVegetable/app/src/main/res/drawable/sz.jpg new file mode 100644 index 0000000..44c9953 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sz.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/szd.jpg b/LoveVegetable/app/src/main/res/drawable/szd.jpg new file mode 100644 index 0000000..e60c912 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/szd.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/sztb.png b/LoveVegetable/app/src/main/res/drawable/sztb.png new file mode 100644 index 0000000..82977a8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/sztb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t10.png b/LoveVegetable/app/src/main/res/drawable/t10.png new file mode 100644 index 0000000..6ef0c42 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t10.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t11.png b/LoveVegetable/app/src/main/res/drawable/t11.png new file mode 100644 index 0000000..429ac24 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t11.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t12.png b/LoveVegetable/app/src/main/res/drawable/t12.png new file mode 100644 index 0000000..8f5dbe9 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t12.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t13.png b/LoveVegetable/app/src/main/res/drawable/t13.png new file mode 100644 index 0000000..2b03de7 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t13.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t14.png b/LoveVegetable/app/src/main/res/drawable/t14.png new file mode 100644 index 0000000..9dd9e08 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t14.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t2.png b/LoveVegetable/app/src/main/res/drawable/t2.png new file mode 100644 index 0000000..8b27739 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t2.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t3.png b/LoveVegetable/app/src/main/res/drawable/t3.png new file mode 100644 index 0000000..0674345 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t3.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t4.png b/LoveVegetable/app/src/main/res/drawable/t4.png new file mode 100644 index 0000000..87c4f35 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t4.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t5.png b/LoveVegetable/app/src/main/res/drawable/t5.png new file mode 100644 index 0000000..c589d13 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t5.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t6.png b/LoveVegetable/app/src/main/res/drawable/t6.png new file mode 100644 index 0000000..118d1d9 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t6.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t7.png b/LoveVegetable/app/src/main/res/drawable/t7.png new file mode 100644 index 0000000..8aeb55f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t7.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t8.png b/LoveVegetable/app/src/main/res/drawable/t8.png new file mode 100644 index 0000000..6d6d3d1 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t8.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/t9.png b/LoveVegetable/app/src/main/res/drawable/t9.png new file mode 100644 index 0000000..f8337df Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/t9.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/ta.png b/LoveVegetable/app/src/main/res/drawable/ta.png new file mode 100644 index 0000000..6a9c12e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/ta.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/ta1.jpg b/LoveVegetable/app/src/main/res/drawable/ta1.jpg new file mode 100644 index 0000000..82f5827 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/ta1.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/ta2.jpg b/LoveVegetable/app/src/main/res/drawable/ta2.jpg new file mode 100644 index 0000000..0178352 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/ta2.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/tb.jpg b/LoveVegetable/app/src/main/res/drawable/tb.jpg new file mode 100644 index 0000000..d883393 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/tb.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/tk.jpg b/LoveVegetable/app/src/main/res/drawable/tk.jpg new file mode 100644 index 0000000..714d671 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/tk.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/tm.jpg b/LoveVegetable/app/src/main/res/drawable/tm.jpg new file mode 100644 index 0000000..30d7ae1 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/tm.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/tubiao.png b/LoveVegetable/app/src/main/res/drawable/tubiao.png new file mode 100644 index 0000000..f28adc8 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/tubiao.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/tx.png b/LoveVegetable/app/src/main/res/drawable/tx.png new file mode 100644 index 0000000..c38f788 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/tx.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v1.png b/LoveVegetable/app/src/main/res/drawable/v1.png new file mode 100644 index 0000000..42ac0d0 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v1.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v10.png b/LoveVegetable/app/src/main/res/drawable/v10.png new file mode 100644 index 0000000..1292a51 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v10.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v11.png b/LoveVegetable/app/src/main/res/drawable/v11.png new file mode 100644 index 0000000..fea68df Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v11.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v12.png b/LoveVegetable/app/src/main/res/drawable/v12.png new file mode 100644 index 0000000..d9d9209 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v12.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v13.png b/LoveVegetable/app/src/main/res/drawable/v13.png new file mode 100644 index 0000000..cd5a56d Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v13.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v14.png b/LoveVegetable/app/src/main/res/drawable/v14.png new file mode 100644 index 0000000..43572d7 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v14.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v2.png b/LoveVegetable/app/src/main/res/drawable/v2.png new file mode 100644 index 0000000..7a7362f Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v2.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v3.png b/LoveVegetable/app/src/main/res/drawable/v3.png new file mode 100644 index 0000000..d4485e5 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v3.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v4.png b/LoveVegetable/app/src/main/res/drawable/v4.png new file mode 100644 index 0000000..244cd4c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v4.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v5.png b/LoveVegetable/app/src/main/res/drawable/v5.png new file mode 100644 index 0000000..f338e60 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v5.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v6.png b/LoveVegetable/app/src/main/res/drawable/v6.png new file mode 100644 index 0000000..7f99a85 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v6.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v7.png b/LoveVegetable/app/src/main/res/drawable/v7.png new file mode 100644 index 0000000..06180f0 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v7.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v8.png b/LoveVegetable/app/src/main/res/drawable/v8.png new file mode 100644 index 0000000..a2d0abc Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v8.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/v9.png b/LoveVegetable/app/src/main/res/drawable/v9.png new file mode 100644 index 0000000..8208df2 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/v9.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/wb.jpg b/LoveVegetable/app/src/main/res/drawable/wb.jpg new file mode 100644 index 0000000..673db6a Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wb.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wbdl.jpg b/LoveVegetable/app/src/main/res/drawable/wbdl.jpg new file mode 100644 index 0000000..93c2023 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wbdl.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wd.png b/LoveVegetable/app/src/main/res/drawable/wd.png new file mode 100644 index 0000000..fb083c5 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wd.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdbj.png b/LoveVegetable/app/src/main/res/drawable/wdbj.png new file mode 100644 index 0000000..f95bdd1 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdbj.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdcz.jpg b/LoveVegetable/app/src/main/res/drawable/wdcz.jpg new file mode 100644 index 0000000..cc8ba6b Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdcz.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdd.png b/LoveVegetable/app/src/main/res/drawable/wdd.png new file mode 100644 index 0000000..82082ad Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdd.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdgy.jpg b/LoveVegetable/app/src/main/res/drawable/wdgy.jpg new file mode 100644 index 0000000..21a95fa Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdgy.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdhb.jpg b/LoveVegetable/app/src/main/res/drawable/wdhb.jpg new file mode 100644 index 0000000..ee31599 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdhb.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdjb.jpg b/LoveVegetable/app/src/main/res/drawable/wdjb.jpg new file mode 100644 index 0000000..48612d6 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdjb.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdjx.png b/LoveVegetable/app/src/main/res/drawable/wdjx.png new file mode 100644 index 0000000..7e5caed Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdjx.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdkh.jpg b/LoveVegetable/app/src/main/res/drawable/wdkh.jpg new file mode 100644 index 0000000..71c4ef1 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdkh.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdkj.jpg b/LoveVegetable/app/src/main/res/drawable/wdkj.jpg new file mode 100644 index 0000000..9f290eb Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdkj.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdmd.jpg b/LoveVegetable/app/src/main/res/drawable/wdmd.jpg new file mode 100644 index 0000000..d377de7 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdmd.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdnc.jpg b/LoveVegetable/app/src/main/res/drawable/wdnc.jpg new file mode 100644 index 0000000..911ff9c Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdnc.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wdyy.jpg b/LoveVegetable/app/src/main/res/drawable/wdyy.jpg new file mode 100644 index 0000000..53def02 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wdyy.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wp.jpg b/LoveVegetable/app/src/main/res/drawable/wp.jpg new file mode 100644 index 0000000..31f7886 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wp.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wxdl.jpg b/LoveVegetable/app/src/main/res/drawable/wxdl.jpg new file mode 100644 index 0000000..aef75c1 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wxdl.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/wy.jpg b/LoveVegetable/app/src/main/res/drawable/wy.jpg new file mode 100644 index 0000000..12e0688 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/wy.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/xc.jpg b/LoveVegetable/app/src/main/res/drawable/xc.jpg new file mode 100644 index 0000000..a6d38f2 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/xc.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/xl.jpg b/LoveVegetable/app/src/main/res/drawable/xl.jpg new file mode 100644 index 0000000..96b1928 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/xl.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/xqybj.jpg b/LoveVegetable/app/src/main/res/drawable/xqybj.jpg new file mode 100644 index 0000000..310e779 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/xqybj.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/xxct.jpg b/LoveVegetable/app/src/main/res/drawable/xxct.jpg new file mode 100644 index 0000000..1a01bd7 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/xxct.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/xxtb.png b/LoveVegetable/app/src/main/res/drawable/xxtb.png new file mode 100644 index 0000000..e82623e Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/xxtb.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/yk.png b/LoveVegetable/app/src/main/res/drawable/yk.png new file mode 100644 index 0000000..de8c253 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/yk.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/yuanjiao.xml b/LoveVegetable/app/src/main/res/drawable/yuanjiao.xml new file mode 100644 index 0000000..892b455 --- /dev/null +++ b/LoveVegetable/app/src/main/res/drawable/yuanjiao.xml @@ -0,0 +1,21 @@ + + + + + + //背景 + + //边缘颜色和宽度 + + + + + + + + + + + \ No newline at end of file diff --git a/LoveVegetable/app/src/main/res/drawable/zfcg.png b/LoveVegetable/app/src/main/res/drawable/zfcg.png new file mode 100644 index 0000000..7d36d31 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/zfcg.png differ diff --git a/LoveVegetable/app/src/main/res/drawable/zx.jpg b/LoveVegetable/app/src/main/res/drawable/zx.jpg new file mode 100644 index 0000000..4229369 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/zx.jpg differ diff --git a/LoveVegetable/app/src/main/res/drawable/zxd.jpg b/LoveVegetable/app/src/main/res/drawable/zxd.jpg new file mode 100644 index 0000000..942a482 Binary files /dev/null and b/LoveVegetable/app/src/main/res/drawable/zxd.jpg differ diff --git a/LoveVegetable/app/src/main/res/layout/activity_desc.xml b/LoveVegetable/app/src/main/res/layout/activity_desc.xml new file mode 100644 index 0000000..0d7d71d --- /dev/null +++ b/LoveVegetable/app/src/main/res/layout/activity_desc.xml @@ -0,0 +1,257 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +