update:2020.11.27

fix:增加横屏
add:
This commit is contained in:
tt committed 2020-11-27 11:00:00 +08:00
1 parent 446de37ef5
commit 7426c38935
72 files changed
+1953 -298

No files matched your search

+86
View File
@@ -0,0 +1,86 @@
# Built application files
*.apk
*.aar
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Log Files
*.log
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/
# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml
# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/
# Google Services (e.g. APIs or Firebase)
# google-services.json
# Freeline
freeline.py
freeline/
freeline_project_description.json
# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md
# Version control
vcs.xml
# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/
/.idea/
-209
View File
@@ -1,209 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":app" />
<option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" value="3.5.2" />
<option name="LAST_KNOWN_AGP_VERSION" value="3.5.2" />
</configuration>
</facet>
<facet type="android" name="Android">
<configuration>
<option name="SELECTED_BUILD_VARIANT" value="debug" />
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
<afterSyncTasks>
<task>generateDebugSources</task>
</afterSyncTasks>
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/build/generated/res/resValues/debug" />
<option name="TEST_RES_FOLDERS_RELATIVE_PATH" value="" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration>
</facet>
<facet type="kotlin-language" name="Kotlin">
<configuration version="3" platform="JVM 1.6" allPlatforms="JVM [1.6]" useProjectSettings="false">
<compilerSettings>
<option name="additionalArguments" value="-Xallow-no-source-files" />
</compilerSettings>
<compilerArguments>
<option name="destination" value="$MODULE_DIR$/build/tmp/kotlin-classes/debug" />
<option name="classpath" value="G:/gralde/caches/transforms-2/files-2.1/e1f049d8af5b978c5e3e718b12e08697/jetified-calligraphy-2.3.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/734dd5122cc1a66c82c80838fbcc7a79/appcompat-1.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/c2787a5a24abae13c71e9a568e954dcb/recyclerview-1.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/c31ee2c68a8d819eb6680319864d78dd/cardview-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/bd16d8dc9445d3c72138fe2e6bae7fb7/core-ktx-1.5.0-alpha04-api.jar;G:/gralde/caches/transforms-2/files-2.1/a3a4d1d4b3157ca78e3812c08c00eb2d/cursoradapter-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/ab4ca67266e71d63b66203ffec6576e0/glide-4.10.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/745d17ab0b96d322c1427f4d40017703/fragment-1.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/d2a3a87bb54b8627eaae8d16fd71d8ce/appcompat-resources-1.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/36afce815b2fb9ec256f6e76ce9f2c3b/drawerlayout-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/a03fa4d7222e281341a07e3ca98bc2bc/viewpager-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/b2e4fa88d9cfcb22f1fed414d31e0b45/customview-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/93cbdad079eb6328d389753461b2482a/loader-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/f97117049135ac48309afb45eef3b26c/activity-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/44c88f024d6fb2c48635a4915e9edcf0/vectordrawable-animated-1.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/be8f5202d6f3d901a90eef1582fcbdd8/vectordrawable-1.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/00e75f841f164ec236135a2a76b9244b/core-1.5.0-alpha04-api.jar;G:/gralde/caches/transforms-2/files-2.1/c3e53f261430124f943893ce9426b9b6/versionedparcelable-1.1.0-api.jar;G:/gralde/caches/modules-2/files-2.1/androidx.collection/collection/1.1.0/1f27220b47669781457de0d600849a5de0e89909/collection-1.1.0.jar;G:/gralde/caches/transforms-2/files-2.1/692789d1c34628f5332341ea834744ca/gifdecoder-4.10.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/429b3f1253ec26e545fa071969ae1df4/lifecycle-viewmodel-2.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/e73b80be766dc70275aafd4eafcf7ce8/lifecycle-runtime-2.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/00f630531fa46e4bb85cc850e03c5ad9/interpolator-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/31d7882a47cda5604f916b457758844a/savedstate-1.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/d6de557423144296983419dd5dfcf816/lifecycle-livedata-2.0.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/9d0376b00ec387ca3c3839080791bf18/lifecycle-livedata-core-2.0.0-api.jar;G:/gralde/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.1.0/c67e7807d9cd6c329b9d0218b2ec4e505dd340b7/lifecycle-common-2.1.0.jar;G:/gralde/caches/transforms-2/files-2.1/0d1d202ee6dd959bcb380e203fc4e913/core-runtime-2.0.0-api.jar;G:/gralde/caches/modules-2/files-2.1/androidx.arch.core/core-common/2.1.0/b3152fc64428c9354344bd89848ecddc09b6f07e/core-common-2.1.0.jar;G:/gralde/caches/modules-2/files-2.1/androidx.annotation/annotation/1.2.0-alpha01/cf0f760ea00702c040b3f8c9ccbe615ae26356dc/annotation-1.2.0-alpha01.jar;G:/gralde/caches/transforms-2/files-2.1/a0905a83d70bb629e8aa1be7300df54a/constraintlayout-1.1.3-api.jar;G:/gralde/caches/modules-2/files-2.1/androidx.constraintlayout/constraintlayout-solver/1.1.3/54abe9ffb22cc9019b0b6fcc10f185cc4e67b34e/constraintlayout-solver-1.1.3.jar;G:/gralde/caches/transforms-2/files-2.1/4dea9cffab7de8c7a8ddcd739266fe21/jetified-FlycoTabLayout_Lib-2.1.2-api.jar;G:/gralde/caches/transforms-2/files-2.1/cad18f9d9248501593297fc792a5c04b/jetified-SmartRefreshLayout-1.1.0-api.jar;G:/gralde/caches/transforms-2/files-2.1/d5180e1736e14d2e72920a33e63e42b7/jetified-SmartRefreshHeader-1.1.0-api.jar;G:/gralde/caches/modules-2/files-2.1/com.github.bumptech.glide/disklrucache/4.10.0/64b5e97b9b10c47b62577d2b25f1e1fe9dcd1f56/disklrucache-4.10.0.jar;G:/gralde/caches/modules-2/files-2.1/com.github.bumptech.glide/annotations/4.10.0/bbe80fe87e3a3a08c995557f3b8e66f479bf9363/annotations-4.10.0.jar;G:/gralde/caches/transforms-2/files-2.1/a22a347fccb2000089f5f9e5dd143dab/jetified-core-3.7.7-api.jar;G:/gralde/caches/modules-2/files-2.1/com.arialyy.aria/annotations/3.7.7/a1e7f33ceaa3774a28e1c84ab9de811dcc6562ed/annotations-3.7.7.jar;G:/gralde/caches/transforms-2/files-2.1/9bdddfb1469d364da82079de2cdb9c85/publicComponent-3.7.7-api.jar;G:/gralde/caches/transforms-2/files-2.1/86036a3cabb68b0d42df82c7eb32671b/httpComponent-3.7.7-api.jar;G:/gralde/caches/transforms-2/files-2.1/a6124e86245f3d7b6de7aa8fb79ec132/okrx-1.0.2-api.jar;G:/gralde/caches/transforms-2/files-2.1/458bbdcfe9005a516d20207202190f53/okserver-2.0.5-api.jar;G:/gralde/caches/transforms-2/files-2.1/e7f1b647ea402d5a401a3a92bccb32d1/okgo-3.0.4-api.jar;G:/gralde/caches/modules-2/files-2.1/com.squareup.retrofit2/converter-scalars/2.1.0/7c0d7c8f6e52115bb82fa018d81a8d0cae35Line truncated
<option name="noStdlib" value="true" />
<option name="noReflect" value="true" />
<option name="moduleName" value="app_debug" />
<option name="languageVersion" value="1.3" />
<option name="apiVersion" value="1.3" />
<option name="pluginOptions">
<array>
<option value="plugin:org.jetbrains.kotlin.android:experimental=false" />
<option value="plugin:org.jetbrains.kotlin.android:enabled=true" />
<option value="plugin:org.jetbrains.kotlin.android:defaultCacheImplementation=hashMap" />
</array>
</option>
<option name="pluginClasspaths">
<array>
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains.intellij.deps/trove4j/1.0.20181211/216c2e14b070f334479d800987affe4054cd563f/trove4j-1.0.20181211.jar" />
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-android-extensions/1.3.61/54ca7c214a5cd73cd887a42002266e25440097f2/kotlin-android-extensions-1.3.61.jar" />
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.3.61/c35c0833d5a1e3d229359758482c480306724618/kotlin-compiler-embeddable-1.3.61.jar" />
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-daemon-embeddable/1.3.61/4de83e41a92c8395d89ab2e81d26b788ba163824/kotlin-daemon-embeddable-1.3.61.jar" />
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.61/2e07c9a84c9e118efb70eede7e579fd663932122/kotlin-reflect-1.3.61.jar" />
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-script-runtime/1.3.61/e5feb39c8de63dcbdc1154b34ca4413874231605/kotlin-script-runtime-1.3.61.jar" />
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.61/65abb71d5afb850b68be03987b08e2c864ca3110/kotlin-stdlib-common-1.3.61.jar" />
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.61/4702105e97f7396ae41b113fdbdc180ec1eb1e36/kotlin-stdlib-1.3.61.jar" />
<option value="G:/gralde/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar" />
</array>
</option>
<option name="errors">
<ArgumentParseErrors />
</option>
</compilerArguments>
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
<output url="file://$MODULE_DIR$/build/intermediates/javac/debug/classes" />
<output-test url="file://$MODULE_DIR$/build/intermediates/javac/debugUnitTest/classes" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debug/out" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debug/compileDebugAidl/out" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debug/compileDebugRenderscript/out" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debugAndroidTest/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debugAndroidTest/compileDebugAndroidTestAidl/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debugAndroidTest/compileDebugAndroidTestRenderscript/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debugUnitTest/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="jdk" jdkName="Android API 29 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="TEST" name="Gradle: junit:junit:4.12@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-integration:1.3@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-library:1.3@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-core:1.3@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: net.sf.kxml:kxml2:2.3.0@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.squareup:javawriter:2.1.1@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: javax.inject:javax.inject:1@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.google.code.findbugs:jsr305:2.0.1@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test.ext:junit:1.1.0@aar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test.espresso:espresso-core:3.1.1@aar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test:runner:1.1.1@aar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test:core:1.1.0@aar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test:monitor:1.1.1@aar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test.espresso:espresso-idling-resource:3.1.1@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.collection:collection:1.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.lifecycle:lifecycle-common:2.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.arch.core:core-common:2.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.annotation:annotation:1.2.0-alpha01@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.constraintlayout:constraintlayout-solver:1.1.3@jar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:disklrucache:4.10.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:annotations:4.10.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.arialyy.aria:annotations:3.7.7@jar" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.retrofit2:converter-scalars:2.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.retrofit2:converter-gson:2.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.retrofit2:adapter-rxjava:2.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.retrofit2:retrofit:2.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.okhttp3:okhttp:3.8.1@jar" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.okio:okio:1.13.0@jar" level="project" />
<orderEntry type="library" name="Gradle: io.reactivex:rxjava:1.3.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.alibaba:fastjson:1.2.21@jar" level="project" />
<orderEntry type="library" name="Gradle: com.google.code.gson:gson:2.8.2@jar" level="project" />
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.61@jar" level="project" />
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.4.0@jar" level="project" />
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-common:1.4.0@jar" level="project" />
<orderEntry type="library" name="Gradle: org.jetbrains:annotations:13.0@jar" level="project" />
<orderEntry type="library" name="Gradle: uk.co.chrisjenx:calligraphy:2.3.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.appcompat:appcompat:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.recyclerview:recyclerview:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.cardview:cardview:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.core:core-ktx:1.5.0-alpha04@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.cursoradapter:cursoradapter:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:glide:4.10.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.fragment:fragment:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.appcompat:appcompat-resources:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.drawerlayout:drawerlayout:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.viewpager:viewpager:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.customview:customview:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.loader:loader:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.activity:activity:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.vectordrawable:vectordrawable-animated:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.vectordrawable:vectordrawable:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.core:core:1.5.0-alpha04@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.versionedparcelable:versionedparcelable:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:gifdecoder:4.10.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.lifecycle:lifecycle-viewmodel:2.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.lifecycle:lifecycle-runtime:2.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.interpolator:interpolator:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.savedstate:savedstate:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.lifecycle:lifecycle-livedata:2.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.lifecycle:lifecycle-livedata-core:2.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.arch.core:core-runtime:2.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.constraintlayout:constraintlayout:1.1.3@aar" level="project" />
<orderEntry type="library" name="Gradle: com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar" level="project" />
<orderEntry type="library" name="Gradle: com.scwang.smartrefresh:SmartRefreshLayout:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.scwang.smartrefresh:SmartRefreshHeader:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.arialyy.aria:core:3.7.7@aar" level="project" />
<orderEntry type="library" name="Gradle: com.arialyy.aria:publicComponent:3.7.7@aar" level="project" />
<orderEntry type="library" name="Gradle: com.arialyy.aria:httpComponent:3.7.7@aar" level="project" />
<orderEntry type="library" name="Gradle: com.lzy.net:okrx:1.0.2@aar" level="project" />
<orderEntry type="library" name="Gradle: com.lzy.net:okserver:2.0.5@aar" level="project" />
<orderEntry type="library" name="Gradle: com.lzy.net:okgo:3.0.4@aar" level="project" />
<orderEntry type="library" name="Gradle: io.reactivex:rxandroid:1.2.1@aar" level="project" />
<orderEntry type="library" name="Gradle: com.blankj:utilcode:1.23.7@aar" level="project" />
<orderEntry type="library" name="Gradle: com.hjq:xxpermissions:6.0@aar" level="project" />
<orderEntry type="library" name="Gradle: cn.jiguang.sdk:jpush:3.4.1@aar" level="project" />
<orderEntry type="library" name="Gradle: cn.jiguang.sdk:jcore:2.2.4@aar" level="project" />
<orderEntry type="library" name="Gradle: com.zhpan.library:bannerview:2.6.4@aar" level="project" />
</component>
</module>
+29 -12
View File
@@ -13,7 +13,6 @@
<uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
<!-- 系统权限,有系统签名可以使用 -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -28,27 +27,44 @@
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:launchMode="singleTask"
android:networkSecurityConfig="@xml/network"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".activity.CopyrightActivity" />
<activity android:name=".activity.AboutActivity" />
<activity android:name=".activity.SearcherActivity" />
<activity
android:name=".activity.CopyrightActivity"
android:screenOrientation="behind" />
<activity
android:name=".activity.AboutActivity"
android:screenOrientation="behind" />
<activity
android:name=".activity.SearcherActivity"
android:screenOrientation="behind" />
<service
android:name=".service.InitJpushServer"
android:enabled="true"
android:exported="true" />
<activity android:name=".activity.KindDetailActivity" />
<activity android:name=".activity.DetailsActivity" />
<activity android:name=".activity.LocalManagerActivity" />
<activity android:name=".activity.DownloadManagerActivity" />
<activity android:name=".activity.MainActivity">
<activity
android:name=".activity.KindDetailActivity"
android:screenOrientation="behind" />
<activity
android:name=".activity.DetailsActivity"
android:screenOrientation="behind" />
<activity
android:name=".activity.LocalManagerActivity"
android:screenOrientation="behind" />
<activity
android:name=".activity.DownloadManagerActivity"
android:screenOrientation="behind" />
<activity
android:name=".activity.MainActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -207,9 +223,10 @@
<category android:name="com.appstore.uiui" />
</intent-filter>
</receiver>
<receiver android:name=".receiver.InstallResultReceiver"
<receiver
android:name=".receiver.InstallResultReceiver"
android:enabled="true"
android:exported="true"/> <!-- Required . Enable it you can get statistics data with channel -->
android:exported="true" /> <!-- Required . Enable it you can get statistics data with channel -->
<meta-data
android:name="JPUSH_CHANNEL"
android:value="developer-default" />
@@ -61,7 +61,7 @@ public class MyApplication extends Application {
@NonNull
@Override
public RefreshHeader createRefreshHeader(@NonNull Context context, @NonNull RefreshLayout layout) {
layout.setPrimaryColorsId(R.color.download, R.color.red);//全局设置主题颜色
layout.setPrimaryColorsId(R.color.download, R.color.default_color);//全局设置主题颜色
return new ClassicsHeader(context);//.setTimeFormat(new DynamicTimeFormat("更新于 %s"));//指定为经典Header,默认是 贝塞尔雷达Header
}
});
@@ -6,6 +6,7 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
@@ -77,6 +78,7 @@ public class MainActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.e("MainActivity","onCreate");
requestPermission();
registerMessageReceiver(); // used for receive msg
String rid = JPushInterface.getRegistrationID(getApplicationContext());
@@ -100,6 +102,18 @@ public class MainActivity extends BaseActivity {
return R.layout.activity_main;
}
@Override
public void onConfigurationChanged(@NonNull Configuration newConfig) {
super.onConfigurationChanged(newConfig);
Log.e("MainActivity","onConfigurationChanged");
}
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
Log.e("MainActivity","onSaveInstanceState");
}
@Override
protected void initView() {
iv_appicon = findViewById(R.id.iv_appicon);
@@ -130,7 +144,7 @@ public class MainActivity extends BaseActivity {
private void initTabLayout() {
final List<Fragment> fragmentList = new ArrayList<>();
fragmentList.add(new FeaturedFragment(this));
fragmentList.add(new FeaturedFragment());
// fragmentList.add(new RankFragment());
fragmentList.add(new KindFragment());
fragmentList.add(new ManageFragment());
@@ -40,8 +40,8 @@ public class SearcherActivity extends BaseActivity {
search = findViewById(R.id.search);
// int id = search.getContext().getResources().getIdentifier("android:id/search_src_text", null, null);
TextView textView = search.findViewById(androidx.appcompat.R.id.search_src_text);
textView.setTextColor(Color.WHITE);
textView.setHintTextColor(Color.WHITE);//提示字体颜色**
textView.setTextColor(Color.BLACK);
textView.setHintTextColor(Color.GRAY);//提示字体颜色**
recyclerView = findViewById(R.id.recyclerView);
}
@@ -110,17 +110,17 @@ public class AppAdapter extends RecyclerView.Adapter<AppAdapter.Holder> {
if (appInfo.isInstall()) {
if (appInfo.isUpdate()) {
holder.btnDownLoad.setText("更新");
holder.btnDownLoad.setTextColor(mContext.getColor(R.color.install));
holder.btnDownLoad.setTextColor(mContext.getColor(R.color.default_color));
holder.btnDownLoad.setBackground(mContext.getDrawable(R.drawable.btn_style_none));
} else {
holder.btnDownLoad.setText("打开");
holder.btnDownLoad.setTextColor(mContext.getColor(R.color.white));
holder.btnDownLoad.setBackground(mContext.getDrawable(R.drawable.btn_style_open));
holder.btnDownLoad.setTextColor(mContext.getColor(R.color.default_color));
holder.btnDownLoad.setBackground(mContext.getDrawable(R.drawable.btn_style_none));
}
} else {
holder.btnDownLoad.setText("安装");
holder.btnDownLoad.setTextColor(mContext.getColor(R.color.white));
holder.btnDownLoad.setBackground(mContext.getDrawable(R.drawable.btn_style_open));
holder.btnDownLoad.setTextColor(mContext.getColor(R.color.default_color));
holder.btnDownLoad.setBackground(mContext.getDrawable(R.drawable.btn_style_none));
if (downloadTask != null) {
holder.refresh(downloadTask.progress);
}
@@ -23,9 +23,9 @@ public abstract class BaseActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// requestWindowFeature(Window.FEATURE_NO_TITLE);
if (getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
// if (getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
// setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
// }
setStatusBar();
setContentView(setLayoutResourceID());
initView();
@@ -4,12 +4,14 @@ import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.ImageView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
@@ -35,6 +37,7 @@ import com.zhpan.bannerview.utils.BannerUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
@@ -56,10 +59,9 @@ public class FeaturedFragment extends LazyLoadFragment implements RefreshManager
private installReceiver myReceiver;
private Context mContext;
public FeaturedFragment(Context context) {
this.mContext = context;
}
public FeaturedFragment() {
}
@Override
public int getLayoutId() {
@@ -81,6 +83,32 @@ public class FeaturedFragment extends LazyLoadFragment implements RefreshManager
@Override
public void onStart() {
super.onStart();
mContext = this.getActivity();
adapter = new AppAdapter(newAppInfoList, false, getContext());
adapter.setHasStableIds(true);
int orientation = 0;
orientation = mContext.getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
GridLayoutManager gridLayoutManager = new GridLayoutManager(mContext, 3);
mRvResult.setLayoutManager(gridLayoutManager);
} else if (orientation == Configuration.ORIENTATION_PORTRAIT) {
GridLayoutManager gridLayoutManager = new GridLayoutManager(mContext, 2);
mRvResult.setLayoutManager(gridLayoutManager);
} else {
mRvResult.setLayoutManager(new LinearLayoutManager(getActivity()));
}
mRvResult.setAdapter(adapter);
mRefreshLayout.setEnableLoadMore(false);
mRefreshLayout.setEnableRefresh(true);
mRefreshLayout.setOnRefreshListener(new OnRefreshListener() {
@Override
public void onRefresh(RefreshLayout refreshlayout) {
// initData();
initAPPData(handler);
}
});
mRefreshLayout.autoRefresh();
adapter.setData(checkUpdateOrInstalled(newAppInfoList));
adapter.notifyDataSetChanged();
if (myReceiver == null) {
@@ -92,6 +120,7 @@ public class FeaturedFragment extends LazyLoadFragment implements RefreshManager
filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
mContext.registerReceiver(myReceiver, filter);
}
}
@Override
@@ -127,21 +156,7 @@ public class FeaturedFragment extends LazyLoadFragment implements RefreshManager
isNotLoadBitmap = false;
adapter = new AppAdapter(newAppInfoList, false, getContext());
adapter.setHasStableIds(true);
mRvResult.setAdapter(adapter);
mRvResult.setLayoutManager(new LinearLayoutManager(getActivity()));
mRefreshLayout.setEnableLoadMore(false);
mRefreshLayout.setEnableRefresh(true);
mRefreshLayout.setOnRefreshListener(new OnRefreshListener() {
@Override
public void onRefresh(RefreshLayout refreshlayout) {
// initData();
initAPPData(handler);
}
});
mRefreshLayout.autoRefresh();
}
@Override
@@ -1,5 +1,6 @@
package com.appstore.uiui.fragment;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
@@ -49,6 +50,7 @@ public class ManageFragment extends LazyLoadFragment {
private List<String> packageNameList = new ArrayList<>();
private UpdateAppAdapter adapter;
private ConstraintLayout manage_cl_localapp, manage_cl_download;
private Context mContext;
@Override
public int getLayoutId() {
@@ -62,26 +64,25 @@ public class ManageFragment extends LazyLoadFragment {
manage_cl_localapp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(getActivity(), LocalManagerActivity.class));
startActivity(new Intent(mContext, LocalManagerActivity.class));
}
});
manage_cl_download = view.findViewById(R.id.manage_cl_download);
manage_cl_download.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(getActivity(), DownloadManagerActivity.class));
startActivity(new Intent(mContext, DownloadManagerActivity.class));
}
});
iv_nodata = view.findViewById(R.id.iv_nodata);
mRvLocal = view.findViewById(R.id.manage_rv_local);
updateAppInfoList = new ArrayList<>();
adapter = new UpdateAppAdapter(updateAppInfoList, getContext());
adapter = new UpdateAppAdapter(updateAppInfoList, mContext);
mRvLocal.setAdapter(adapter);
mRvLocal.setLayoutManager(new LinearLayoutManager(getActivity()));
mRvLocal.setLayoutManager(new LinearLayoutManager(mContext));
initAPPData(handler);
}
@Override
@@ -89,6 +90,13 @@ public class ManageFragment extends LazyLoadFragment {
}
@Override
public void onStart() {
super.onStart();
mContext = getActivity();
initAPPData(handler);
}
synchronized private void initAPPData(final Handler handler) {
OKGO.getAllAppInfo(handler);
}
@@ -97,19 +105,19 @@ public class ManageFragment extends LazyLoadFragment {
List<LocalApp> appList = new ArrayList<>();
Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
List<ResolveInfo> resolveInfoList = getActivity().getPackageManager().queryIntentActivities(intent, 0);
List<ResolveInfo> resolveInfoList = mContext.getPackageManager().queryIntentActivities(intent, 0);
for (int i = 0; i < resolveInfoList.size(); i++) {
LocalApp bean = new LocalApp();
bean.setAppName(resolveInfoList.get(i).loadLabel(getActivity().getPackageManager()).toString());
bean.setAppName(resolveInfoList.get(i).loadLabel(mContext.getPackageManager()).toString());
String packageName = resolveInfoList.get(i).activityInfo.packageName;
bean.setPackageName(packageName);
Drawable icon = resolveInfoList.get(i).loadIcon(getActivity().getPackageManager());
Drawable icon = resolveInfoList.get(i).loadIcon(mContext.getPackageManager());
bean.setIcon(icon);
try {
PackageInfo packageInfo = getActivity().getPackageManager().getPackageInfo(packageName, 0);
String versionCode = getActivity().getPackageManager()
PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo(packageName, 0);
String versionCode = mContext.getPackageManager()
.getPackageInfo(packageName, 0).versionName;
bean.setVersion(versionCode);
bean.setVersionCode(packageInfo.versionCode);
@@ -139,7 +147,7 @@ public class ManageFragment extends LazyLoadFragment {
for (LocalApp app : localAppList) {
if (packageNameList.contains(app.getPackageName())) {
AppInfo info = list.get(packageNameList.indexOf(app.getPackageName()));
if (ApkUtils.checkIsUpdate(getContext(), info.getApp_package(), Integer.parseInt(info.getApp_version_code()))) {
if (ApkUtils.checkIsUpdate(mContext, info.getApp_package(), Integer.parseInt(info.getApp_version_code()))) {
UpdateAppInfo updateAppInfo = new UpdateAppInfo();
updateAppInfo.setVersionCode(app.getVersionCode());
updateAppInfo.setVersionName(app.getVersion());
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 内部颜色 -->
<solid android:color="@color/backgroundcolor" />
<solid android:color="@color/search" />
<!-- 圆角的幅度 -->
<corners
android:bottomLeftRadius="@dimen/dp_20"
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 内部颜色 -->
<solid android:color="@color/backgroundcolor" />
<solid android:color="@color/search" />
<!-- 圆角的幅度 -->
<corners
android:bottomRightRadius="@dimen/dp_20"
@@ -10,7 +10,7 @@
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@drawable/background_title"
android:background="@color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
@@ -34,7 +34,7 @@
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="关于"
android:textColor="#ffffff"
android:textColor="@color/default_text_color"
android:textSize="@dimen/activity_font_size"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
@@ -85,7 +85,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="36dp"
android:text="版权申明"
android:textColor="#FE6045"
android:textColor="@color/default_color"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
@@ -9,7 +9,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@drawable/background_title"
android:background="@color/white"
android:orientation="horizontal">
<ImageView
@@ -31,7 +31,7 @@
android:gravity="center_vertical"
android:singleLine="true"
android:text="应用详情"
android:textColor="#ffffff"
android:textColor="@color/default_text_color"
android:textSize="@dimen/activity_font_size"
android:textStyle="bold" />
@@ -42,6 +42,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:overScrollMode="never"
android:background="@color/white">
<LinearLayout
@@ -227,8 +228,8 @@
<Button
android:id="@+id/detail_tv_download"
android:layout_width="@dimen/dp_340"
android:layout_height="@dimen/dp_60"
android:layout_width="@dimen/dp_240"
android:layout_height="@dimen/dp_40"
android:layout_centerInParent="true"
android:background="@drawable/btn_style_open"
android:clickable="true"
@@ -10,7 +10,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@drawable/background_title"
android:background="@color/white"
android:orientation="horizontal">
<ImageView
@@ -31,7 +31,7 @@
android:gravity="center_vertical"
android:singleLine="true"
android:text="下载管理"
android:textColor="#ffffff"
android:textColor="@color/default_text_color"
android:textSize="@dimen/activity_font_size"
android:textStyle="bold" />
@@ -11,7 +11,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@drawable/background_title"
android:background="@color/white"
android:orientation="horizontal">
<ImageView
@@ -31,7 +31,7 @@
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:textColor="@color/white"
android:textColor="@color/default_text_color"
android:textSize="17sp"
android:textStyle="bold" />
@@ -10,7 +10,7 @@
android:id="@+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@drawable/background_title"
android:background="@color/white"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
@@ -33,7 +33,7 @@
android:gravity="center_vertical"
android:singleLine="true"
android:text="本地管理"
android:textColor="@color/white"
android:textColor="@color/default_text_color"
android:textSize="17sp"
android:textStyle="bold" />
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_appicon"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="20dp"
android:adjustViewBounds="true"
android:background="@drawable/ic_place_holder"
android:scaleType="centerInside" />
<RelativeLayout
android:id="@+id/search_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="20dp"
android:layout_marginLeft="20dp"
android:layout_marginEnd="20dp"
android:layout_weight="1">
<LinearLayout
android:id="@+id/search_ll"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_40"
android:layout_centerInParent="true"
android:gravity="center_vertical">
<ImageView
android:layout_width="@dimen/dp_20"
android:layout_height="@dimen/dp_40"
android:gravity="center_vertical"
android:src="@drawable/shap_search_left" />
<ImageView
android:layout_width="@dimen/dp_20"
android:layout_height="@dimen/dp_40"
android:adjustViewBounds="true"
android:background="@color/search"
android:scaleType="centerInside"
android:src="@drawable/icon_search" />
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/dp_40"
android:background="@drawable/shap_search_right"
android:gravity="center_vertical"
android:text="@string/search_edit"
android:textColor="#a7a5a5">
</TextView>
</LinearLayout>
</RelativeLayout>
<ImageView
android:id="@+id/iv_download"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="20dp"
android:src="@drawable/ic_action_bar"
android:visibility="gone">
</ImageView>
</LinearLayout>
<com.flyco.tablayout.SlidingTabLayout
android:id="@+id/main_sliding_tab_layout"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@color/white"
app:tl_indicator_style="TRIANGLE"
app:tl_tab_space_equal="true"
app:tl_textBold="SELECT"
app:tl_textsize="@dimen/sp_15"
app:tl_textSelectColor="@color/default_color"
app:tl_textUnselectColor="@color/install" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/main_view_pager"
android:layout_width="match_parent"
android:overScrollMode="never"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -10,7 +10,7 @@
android:id="@+id/linearLayout3"
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@drawable/background_title"
android:background="@color/white"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
@@ -31,7 +31,7 @@
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginEnd="@dimen/dp_40"
android:textColor="@color/white"
android:textColor="@color/default_text_color"
app:iconifiedByDefault="false"
app:queryHint="@string/search_edit"
app:searchIcon="@drawable/ic_menu_search">
@@ -72,8 +72,8 @@
<Button
android:id="@+id/app_btn_download"
android:layout_width="@dimen/dp_80"
android:layout_height="@dimen/dp_40"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_30"
android:textColor="#000000"
android:stateListAnimator="@null"
android:layout_gravity="center_vertical"
@@ -96,6 +96,6 @@
</LinearLayout>
<include layout="@layout/include_line_horizontal" />
<!-- <include layout="@layout/include_line_horizontal" />-->
</LinearLayout>
@@ -60,11 +60,12 @@
<Button
android:id="@+id/item_downloading_btn_donwload"
android:layout_width="@dimen/dp_80"
android:layout_height="@dimen/dp_40"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_30"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="20dp"
android:background="@drawable/btn_selector"
android:textColor="@color/default_color"
android:background="@drawable/btn_style_none"
android:text="开始" />
</LinearLayout>
@@ -103,11 +103,12 @@
<Button
android:id="@+id/start"
android:layout_width="@dimen/dp_80"
android:layout_height="wrap_content"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_30"
android:layout_gravity="center"
android:text="暂停"
android:textColor="#ffffff" />
android:textColor="@color/default_color"
android:background="@drawable/btn_style_none" />
</LinearLayout>
@@ -116,9 +117,9 @@
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="@dimen/dp_20"
android:layout_marginRight="@dimen/dp_20"
android:layout_height="1px"
android:layout_marginLeft="@dimen/dp_70"
android:layout_marginRight="@dimen/dp_40"
android:src="#9B9B9B"
app:layout_constraintBottom_toBottomOf="@+id/linearLayout"
app:layout_constraintEnd_toEndOf="@+id/linearLayout"
@@ -61,14 +61,14 @@
<Button
android:id="@+id/local_app_btn_download"
android:layout_width="@dimen/dp_80"
android:layout_height="@dimen/dp_40"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_30"
android:layout_gravity="center_vertical"
android:layout_marginRight="10dp"
android:background="@drawable/btn_style_delete"
android:background="@drawable/btn_style_none"
android:stateListAnimator="@null"
android:text="删除"
android:textColor="#ffffff"
android:textColor="@color/default_color"
android:visibility="visible" />
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv_exit"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginStart="20dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/ic_back"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="关于"
android:textColor="@color/default_text_color"
android:textSize="@dimen/activity_font_size"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/imageView3"
android:layout_width="@dimen/dp_200"
android:layout_height="@dimen/dp_200"
android:layout_marginTop="64dp"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:src="@drawable/appstore_logo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">
</ImageView>
<TextView
android:id="@+id/tv_appname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="@string/app_name"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView3" />
<TextView
android:id="@+id/tv_version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="版本:"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_appname" />
<TextView
android:id="@+id/tv_copyright"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="36dp"
android:text="版权申明"
android:textColor="@color/default_color"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.CopyrightActivity">
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,245 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@color/white"
android:orientation="horizontal">
<ImageView
android:id="@+id/search_iv_back"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="20dp"
android:adjustViewBounds="true"
android:onClick="finish"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<TextView
android:id="@+id/detail_tv_title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:text="应用详情"
android:textColor="@color/default_text_color"
android:textSize="@dimen/activity_font_size"
android:textStyle="bold" />
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:overScrollMode="never"
android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:descendantFocusability="blocksDescendants"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="5dp">
<ImageView
android:id="@+id/detail_iv_icon"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="10dp"
android:background="@mipmap/ic_launcher" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/detail_tv_name"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.5"
android:gravity="center_vertical"
android:singleLine="true"
android:text="今日头条"
android:textColor="@color/black"
android:textSize="@dimen/sp_16" />
<RatingBar
android:id="@+id/detail_rating_bar"
style="@style/Base.Widget.AppCompat.RatingBar.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:rating="3" />
<TextView
android:id="@+id/detail_tv_company"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:singleLine="true"
android:text="北京字节跳动网络技术有限公司" />
</LinearLayout>
</LinearLayout>
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:overScrollMode="never"
android:scrollbars="none">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/detail_rv_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:overScrollMode="never" />
</HorizontalScrollView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:text="应用介绍"
android:textSize="@dimen/sp_16"
android:textStyle="bold">
</TextView>
<TextView
android:id="@+id/detali_tv_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_2"
android:layout_marginRight="@dimen/dp_15">
</TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_2"
android:layout_marginRight="@dimen/dp_15"
android:text="更新"
android:textSize="@dimen/sp_16"
android:textStyle="bold">
</TextView>
<TextView
android:id="@+id/detali_tv_update"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_2"
android:layout_marginRight="@dimen/dp_15">
</TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_2"
android:layout_marginRight="@dimen/dp_15"
android:text="信息"
android:textSize="@dimen/sp_16"
android:textStyle="bold">
</TextView>
<TextView
android:id="@+id/detali_tv_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_2"
android:layout_marginRight="@dimen/dp_15"
android:text="大小" />
<TextView
android:id="@+id/detail_tv_version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:text="版本" />
<TextView
android:id="@+id/detail_tv_update_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:text="时间" />
<TextView
android:id="@+id/detail_tv_Developers"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:text="开发者" />
</LinearLayout>
</ScrollView>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dp_15"
android:background="@color/white"
android:orientation="horizontal">
<Button
android:id="@+id/detail_tv_download"
android:layout_width="@dimen/dp_200"
android:layout_height="@dimen/dp_50"
android:layout_centerInParent="true"
android:background="@drawable/btn_style_open"
android:clickable="true"
android:gravity="center"
android:stateListAnimator="@null"
android:text="安装"
android:textColor="#ffffff"
android:textSize="@dimen/sp_18" />
</RelativeLayout>
</LinearLayout>
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@color/white"
android:orientation="horizontal">
<ImageView
android:id="@+id/search_iv_back"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:adjustViewBounds="true"
android:onClick="finish"
android:layout_marginStart="20dp"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:text="下载管理"
android:textColor="@color/default_text_color"
android:textSize="@dimen/activity_font_size"
android:textStyle="bold" />
</LinearLayout>
<RelativeLayout
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/dp_20"
android:layout_marginRight="@dimen/dp_20"
tools:listitem="@layout/item_download_manager">
</androidx.recyclerview.widget.RecyclerView>
<ImageView
android:id="@+id/iv_notask"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_centerInParent="true"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/icon_notask"
android:visibility="gone">
</ImageView>
</RelativeLayout>
</LinearLayout>
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@color/white"
android:orientation="horizontal">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="20dp"
android:adjustViewBounds="true"
android:onClick="finish"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<TextView
android:id="@+id/detail_tv_title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:textColor="@color/default_text_color"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/detail_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/detail_rv"
android:overScrollMode="never"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@layout/item_app" />
<ImageView
android:id="@+id/imageView"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_centerInParent="true"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/icon_nodata"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.LocalManagerActivity">
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:background="@color/white"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/search_iv_back"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="20dp"
android:adjustViewBounds="true"
android:onClick="finish"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:text="本地管理"
android:textColor="@color/default_text_color"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/local_app_refresh_layout"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:background="@color/white"
app:layout_constraintTop_toBottomOf="@+id/linearLayout2">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/local_app_rv_app"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@layout/item_local_app" />
<ImageView
android:id="@+id/iv_nodata"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_centerInParent="true"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/icon_nodata"
android:visibility="gone">
</ImageView>
</RelativeLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -15,7 +15,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@drawable/background_title"
android:background="@color/white"
android:orientation="horizontal">
@@ -59,7 +59,7 @@
android:layout_width="@dimen/dp_20"
android:layout_height="@dimen/dp_40"
android:adjustViewBounds="true"
android:background="@color/backgroundcolor"
android:background="@color/search"
android:scaleType="centerInside"
android:src="@drawable/icon_search" />
@@ -98,7 +98,7 @@
app:tl_tab_space_equal="true"
app:tl_textBold="SELECT"
app:tl_textsize="@dimen/sp_15"
app:tl_textSelectColor="@color/red"
app:tl_textSelectColor="@color/default_color"
app:tl_textUnselectColor="@color/install" />
<androidx.viewpager.widget.ViewPager
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.SearcherActivity">
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="match_parent"
android:layout_height="@dimen/activity_title_height"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_margin="@dimen/dp_10"
android:adjustViewBounds="true"
android:onClick="finish"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<androidx.appcompat.widget.SearchView
android:id="@+id/search"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginEnd="@dimen/dp_40"
android:textColor="@color/default_text_color"
app:iconifiedByDefault="false"
app:queryHint="@string/search_edit"
app:searchIcon="@drawable/ic_menu_search">
</androidx.appcompat.widget.SearchView>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:overScrollMode="never"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3"
tools:listitem="@layout/item_app" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/download_record_iv"
android:gravity="center_horizontal"
android:text="登录小米账户查看下载记录"
android:textColor="#000000"
android:textSize="17sp" />
<ImageView
android:id="@+id/download_record_iv"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_centerInParent="true"
android:layout_marginTop="20dp"
android:background="@drawable/favorite_bg" />
<androidx.cardview.widget.CardView
android:id="@+id/detail_btn_download"
android:layout_width="150dp"
android:layout_height="40dp"
android:layout_alignBottom="@+id/download_record_iv"
android:layout_centerHorizontal="true"
android:layout_marginTop="40dp"
app:cardCornerRadius="20dp">
<TextView
android:id="@+id/detail_tv_download"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#09cf1d"
android:clickable="true"
android:gravity="center"
android:text="立即登录"
android:textColor="@color/white"
android:textSize="15sp" />
</androidx.cardview.widget.CardView>
</RelativeLayout>
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/download_record_iv"
android:gravity="center_horizontal"
android:text="登录小米账户查看下载记录"
android:textColor="#000000"
android:textSize="17sp" />
<ImageView
android:id="@+id/download_record_iv"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_centerInParent="true"
android:layout_marginTop="20dp"
android:background="@drawable/favorite_bg" />
<androidx.cardview.widget.CardView
android:id="@+id/detail_btn_download"
android:layout_width="150dp"
android:layout_height="40dp"
android:layout_alignBottom="@+id/download_record_iv"
android:layout_centerHorizontal="true"
android:layout_marginTop="40dp"
app:cardCornerRadius="20dp">
<TextView
android:id="@+id/detail_tv_download"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#09cf1d"
android:clickable="true"
android:gravity="center"
android:text="立即登录"
android:textColor="@color/white"
android:textSize="15sp" />
</androidx.cardview.widget.CardView>
</RelativeLayout>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/downloadfinish_rv_downloadfinish"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/downloading_rv_downloading"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/featured_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.zhpan.bannerview.BannerViewPager
android:id="@+id/banner_view"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_230"
android:layout_margin="10dp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/featured_rv_result"
android:nestedScrollingEnabled="false"
android:layout_width="match_parent"
android:overScrollMode="never"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/imageView"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_centerInParent="true"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/icon_nodata"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/featured_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/kind_rv_kind"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never" />
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/detail_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/detail_rv_result"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/local_app_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/local_app_rv_app"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
@@ -0,0 +1,180 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/manage_cl_localapp"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_margin="10dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:gravity="center_vertical"
android:text="我的应用"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/iv_my"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.5" />
<ImageView
android:id="@+id/iv_my"
android:layout_width="30dp"
android:layout_height="30dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/icon_my_task"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginEnd="32dp"
android:background="@drawable/ic_kind_detail"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/manage_cl_download"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_margin="10dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_download"
android:layout_width="30dp"
android:layout_height="30dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/icon_download_task"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:gravity="center_vertical"
android:text="下载管理"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/iv_download"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.5" />
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginEnd="32dp"
android:background="@drawable/ic_kind_detail"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<include layout="@layout/include_line_horizontal" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_margin="10dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_update"
android:layout_width="30dp"
android:layout_height="30dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/icon_update_task"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="可升级应用"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/iv_update"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.5" />
<TextView
android:id="@+id/manage_tv_updateNum"
android:layout_width="@dimen/dp_40"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:gravity="center_horizontal"
android:text="0"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/imageView2"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.5" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginEnd="32dp"
android:background="@drawable/ic_kind_detail"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<include layout="@layout/include_line_horizontal" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/manage_rv_local"
android:overScrollMode="never"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/iv_nodata"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_centerInParent="true"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/icon_nodata"
android:visibility="gone">
</ImageView>
</RelativeLayout>
</LinearLayout>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/rank_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rank_rv_result"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/gray"
android:layout_width="match_parent"
android:layout_height="1dp">
</LinearLayout>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/black"
android:layout_width="1dp"
android:layout_height="match_parent">
</LinearLayout>
+101
View File
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="80dp"
android:background="@drawable/ll_selector"
android:clickable="true"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:layout_weight="1">
<ImageView
android:id="@+id/app_iv_icon"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="10dp"
/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="70dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/app_tv_name"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.5"
android:gravity="center_vertical"
android:singleLine="true"
android:text="今日头条"
android:textColor="@color/black"
android:textSize="16sp" />
<TextView
android:id="@+id/app_tv_company"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:singleLine="true"
android:text="北京字节跳动网络技术有限公司"
android:textSize="12sp" />
<TextView
android:id="@+id/app_tv_size"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:singleLine="true"
android:text="1.00M"
android:textSize="12sp" />
<RatingBar
android:id="@+id/app_rating_bar"
style="@style/Base.Widget.AppCompat.RatingBar.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<Button
android:id="@+id/app_btn_download"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_30"
android:textColor="#000000"
android:stateListAnimator="@null"
android:layout_gravity="center_vertical"
android:layout_marginRight="10dp"
android:background="@drawable/btn_style_none"
android:text="下载中"
android:textSize="@dimen/sp_16"
android:visibility="visible" />
<TextView
android:id="@+id/app_tv_installed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginRight="20dp"
android:text="已安装"
android:visibility="gone" />
</LinearLayout>
<!-- <include layout="@layout/include_line_horizontal" />-->
</LinearLayout>
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="100dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/item_finish_iv_icon"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_margin="10dp"
android:background="@mipmap/ic_launcher" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/item_finish_tv_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginTop="15dp"
android:text="今日头条"
android:textColor="@color/black"
android:textSize="15sp" />
<TextView
android:id="@+id/item_finish_tv_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginTop="5dp"
android:text="14.39MB" />
</LinearLayout>
<Button
android:id="@+id/item_finish_btn_install"
android:layout_width="@dimen/dp_80"
android:layout_height="@dimen/dp_40"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_marginRight="20dp"
android:background="@drawable/btn_selector"
android:text="安装" />
</LinearLayout>
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="100dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/item_downloading_iv_icon"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_margin="10dp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/item_downloading_tv_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="今日头条"
android:textColor="@color/black"
android:textSize="15sp" />
<ProgressBar
android:id="@+id/item_downloading_progress_bar"
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="10dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginTop="17dp"
android:orientation="horizontal">
<TextView
android:id="@+id/item_downloading_tv_size"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="14.39MB" />
<TextView
android:id="@+id/item_downloading_tv_state"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
/>
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/item_downloading_btn_donwload"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_30"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:textColor="@color/default_color"
android:layout_marginEnd="20dp"
android:background="@drawable/btn_style_none"
android:text="开始" />
</LinearLayout>
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_80">
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/icon"
android:layout_width="@dimen/dp_45"
android:layout_height="@dimen/dp_45"
android:layout_margin="@dimen/dp_5"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@mipmap/ic_launcher">
</ImageView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/dp_20"
android:layout_weight="2"
android:orientation="vertical">
<TextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="APP"
android:textStyle="bold" />
<com.appstore.uiui.view.NumberProgressBar
android:id="@+id/pbProgress"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_5"
android:layout_weight="1"
app:progress_reached_bar_height="1.5dp"
app:progress_reached_color="#3498DB"
app:progress_text_color="#3498DB"
app:progress_text_size="10sp"
app:progress_unreached_bar_height="0.75dp"
app:progress_unreached_color="#CCCCCC">
</com.appstore.uiui.view.NumberProgressBar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal">
<TextView
android:id="@+id/state"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="下载中" />
<TextView
android:id="@+id/downloadSize"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right"
android:text="--M/--M"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="4"
android:orientation="horizontal">
<ImageView
android:id="@+id/remove"
android:layout_width="@dimen/dp_15"
android:layout_height="@dimen/dp_15"
android:layout_gravity="center"
android:layout_margin="@dimen/dp_20"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/bt_delete">
</ImageView>
<Button
android:id="@+id/start"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_30"
android:layout_gravity="center"
android:text="暂停"
android:textColor="@color/default_color"
android:background="@drawable/btn_style_none" />
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginLeft="@dimen/dp_70"
android:layout_marginRight="@dimen/dp_40"
android:src="#9B9B9B"
app:layout_constraintBottom_toBottomOf="@+id/linearLayout"
app:layout_constraintEnd_toEndOf="@+id/linearLayout"
app:layout_constraintStart_toStartOf="@+id/linearLayout">
</ImageView>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="225dp"
android:layout_height="400dp"
android:layout_margin="10dp"
app:cardCornerRadius="10dp">
<ImageView
android:id="@+id/item_iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true" />
</androidx.cardview.widget.CardView>
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@drawable/ll_selector"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:layout_weight="1"
android:orientation="horizontal">
<ImageView
android:id="@+id/kind_iv_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
/>
<TextView
android:id="@+id/kind_tv_name"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="游戏" />
<ImageView
android:id="@+id/kind_iv_detail"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="20dp"
android:background="@drawable/ic_kind_detail" />
</LinearLayout>
<include layout="@layout/include_line_horizontal" />
</LinearLayout>
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@drawable/ll_selector"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<ImageView
android:id="@+id/local_app_iv_icon"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="20dp"
/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/local_app_tv_name"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:singleLine="true"
android:textColor="@color/black"
android:textSize="17sp" />
<TextView
android:id="@+id/local_app_tv_company"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:text=""
android:textSize="12sp" />
<TextView
android:id="@+id/local_app_version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="1.0"
android:textSize="12sp" />
</LinearLayout>
<Button
android:id="@+id/local_app_btn_download"
android:layout_width="@dimen/dp_60"
android:layout_height="@dimen/dp_30"
android:layout_gravity="center_vertical"
android:layout_marginRight="10dp"
android:background="@drawable/btn_style_none"
android:stateListAnimator="@null"
android:text="删除"
android:textColor="@color/default_color"
android:visibility="visible" />
<TextView
android:id="@+id/local_app_update"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginRight="20dp"
android:text="已安装"
android:visibility="gone" />
</LinearLayout>
<include layout="@layout/include_line_horizontal" />
</LinearLayout>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.appstore.uiui.view.CornerImageView
android:id="@+id/banner_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<!--<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#66000000"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_describe"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginStart="15dp"
android:gravity="center_vertical"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:textColor="#FFFFFF"
android:textSize="16sp" />
</LinearLayout>-->
</RelativeLayout>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

+3 -1
View File
@@ -8,9 +8,11 @@
<color name="black">#000000</color>
<color name="gray">#f5f4f4</color>
<color name="install">#959393</color>
<color name="default_text_color">#868686</color>
<color name="default_color">#4880ff</color>
<color name="download">#ffffff</color>
<color name="backgroundcolor">#ffffff</color>
<color name="search">#F1F1F1</color>
<color name="red">#d64743</color>
<color name="blue">#00a0e9</color>
</resources>