├── .gitignore ├── .idea ├── .name ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml ├── gradle.xml ├── inspectionProfiles │ └── Project_Default.xml ├── jarRepositories.xml ├── misc.xml ├── runConfigurations.xml └── vcs.xml ├── SourceApp ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── kuaima │ │ └── sharefileforandroid11 │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── assets │ │ └── friends.jpg │ ├── java │ │ └── com │ │ │ └── kuaima │ │ │ └── sharefileforandroid11 │ │ │ └── MainActivity.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ │ └── xml │ │ └── file_provider_paths.xml │ └── test │ └── java │ └── com │ └── kuaima │ └── sharefileforandroid11 │ └── ExampleUnitTest.kt ├── build.gradle ├── destinationapp ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── kuaima │ │ └── destinationapp │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── kuaima │ │ │ └── destinationapp │ │ │ └── MainActivity.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── kuaima │ └── destinationapp │ └── ExampleUnitTest.kt ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── manageexternalstorage ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── kuaima │ │ └── manageexternalstorage │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── kuaima │ │ │ └── manageexternalstorage │ │ │ └── MainActivity.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── kuaima │ └── manageexternalstorage │ └── ExampleUnitTest.kt ├── packagevisibleoneapp ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── kuaima │ │ └── packagevisibleoneapp │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── kuaima │ │ │ └── packagevisibleoneapp │ │ │ └── MainActivity.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── kuaima │ └── packagevisibleoneapp │ └── ExampleUnitTest.kt ├── packagevisiblesecondapp ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── kuaima │ │ └── packagevisiblesecondapp │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── kuaima │ │ │ └── packagevisiblesecondapp │ │ │ └── MainActivity.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── kuaima │ └── packagevisiblesecondapp │ └── ExampleUnitTest.kt ├── saf ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── kuaima │ │ └── saf │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── assets │ │ └── friends.jpg │ ├── java │ │ └── com │ │ │ └── kuaima │ │ │ └── saf │ │ │ └── MainActivity.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── kuaima │ └── saf │ └── ExampleUnitTest.kt └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | Android11 -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | xmlns:android 17 | 18 | ^$ 19 | 20 | 21 | 22 |
23 |
24 | 25 | 26 | 27 | xmlns:.* 28 | 29 | ^$ 30 | 31 | 32 | BY_NAME 33 | 34 |
35 |
36 | 37 | 38 | 39 | .*:id 40 | 41 | http://schemas.android.com/apk/res/android 42 | 43 | 44 | 45 |
46 |
47 | 48 | 49 | 50 | .*:name 51 | 52 | http://schemas.android.com/apk/res/android 53 | 54 | 55 | 56 |
57 |
58 | 59 | 60 | 61 | name 62 | 63 | ^$ 64 | 65 | 66 | 67 |
68 |
69 | 70 | 71 | 72 | style 73 | 74 | ^$ 75 | 76 | 77 | 78 |
79 |
80 | 81 | 82 | 83 | .* 84 | 85 | ^$ 86 | 87 | 88 | BY_NAME 89 | 90 |
91 |
92 | 93 | 94 | 95 | .* 96 | 97 | http://schemas.android.com/apk/res/android 98 | 99 | 100 | ANDROID_ATTRIBUTE_ORDER 101 | 102 |
103 |
104 | 105 | 106 | 107 | .* 108 | 109 | .* 110 | 111 | 112 | BY_NAME 113 | 114 |
115 |
116 |
117 |
118 | 119 | 121 |
122 |
-------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 26 | 27 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 36 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /SourceApp/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /SourceApp/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-android-extensions' 4 | 5 | android { 6 | compileSdkVersion 30 7 | buildToolsVersion "30.0.2" 8 | 9 | defaultConfig { 10 | applicationId "com.kuaima.sharefileforandroid11" 11 | minSdkVersion 22 12 | targetSdkVersion 30 13 | versionCode 1 14 | versionName "1.0" 15 | 16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 17 | } 18 | 19 | buildTypes { 20 | release { 21 | minifyEnabled false 22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 23 | } 24 | } 25 | } 26 | 27 | dependencies { 28 | implementation fileTree(dir: "libs", include: ["*.jar"]) 29 | implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 30 | implementation 'androidx.core:core-ktx:1.3.1' 31 | implementation 'androidx.appcompat:appcompat:1.2.0' 32 | implementation 'androidx.constraintlayout:constraintlayout:2.0.1' 33 | testImplementation 'junit:junit:4.12' 34 | androidTestImplementation 'androidx.test.ext:junit:1.1.2' 35 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' 36 | 37 | } -------------------------------------------------------------------------------- /SourceApp/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /SourceApp/src/androidTest/java/com/kuaima/sharefileforandroid11/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.kuaima.sharefileforandroid11 2 | 3 | import androidx.test.platform.app.InstrumentationRegistry 4 | import androidx.test.ext.junit.runners.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext 22 | assertEquals("com.kuaima.sharefileforandroid11", appContext.packageName) 23 | } 24 | } -------------------------------------------------------------------------------- /SourceApp/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 28 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /SourceApp/src/main/assets/friends.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wfeii/Android11/a52893bb41a7c12fbe4373392a34d3bc48b50caa/SourceApp/src/main/assets/friends.jpg -------------------------------------------------------------------------------- /SourceApp/src/main/java/com/kuaima/sharefileforandroid11/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.kuaima.sharefileforandroid11 2 | 3 | import android.content.ContentValues 4 | import android.content.Intent 5 | import android.net.Uri 6 | import android.os.Bundle 7 | import android.os.Environment 8 | import android.provider.MediaStore 9 | import android.util.Log 10 | import android.widget.Toast 11 | import androidx.appcompat.app.AppCompatActivity 12 | import androidx.core.content.FileProvider 13 | import kotlinx.android.synthetic.main.activity_main.* 14 | import java.io.File 15 | import java.io.FileInputStream 16 | import java.io.FileOutputStream 17 | 18 | 19 | class MainActivity : AppCompatActivity() { 20 | override fun onCreate(savedInstanceState: Bundle?) { 21 | super.onCreate(savedInstanceState) 22 | setContentView(R.layout.activity_main) 23 | fileProviderBtn.setOnClickListener { 24 | val fileProviderPath = fileProviderShare() 25 | if (fileProviderPath == null) { 26 | return@setOnClickListener 27 | } 28 | 29 | // dealFileProviderPath(fileProviderPath) 30 | val intent = Intent() 31 | //授权临时权限 32 | grantUriPermission( 33 | "com.kuaima.destinationapp", 34 | Uri.parse(fileProviderPath), Intent.FLAG_GRANT_READ_URI_PERMISSION 35 | ) 36 | intent 37 | .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) 38 | .setAction("android.intent.action.media.test") 39 | .addCategory(Intent.CATEGORY_DEFAULT) 40 | .putExtra("file_provider_uri", fileProviderPath) 41 | startActivity(intent) 42 | } 43 | mediaStoreBtn.setOnClickListener { 44 | val mediaStoreUri = mediaStore() 45 | if (mediaStoreUri != null) { 46 | val intent = Intent() 47 | intent 48 | .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) 49 | .setAction("android.intent.action.media.test") 50 | .addCategory(Intent.CATEGORY_DEFAULT) 51 | .putExtra("media_store", mediaStoreUri) 52 | 53 | startActivity(intent) 54 | } 55 | } 56 | 57 | fileBtn.setOnClickListener { 58 | val fileShare = fileShare() 59 | val intent = Intent() 60 | intent 61 | .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) 62 | .setAction("android.intent.action.media.test") 63 | .addCategory(Intent.CATEGORY_DEFAULT) 64 | .putExtra("file_path", fileShare) 65 | startActivity(intent) 66 | } 67 | } 68 | 69 | 70 | //通过MediaStore存储到公共目录再分享 71 | private fun mediaStore(): String? { 72 | val resolver = applicationContext.contentResolver 73 | val contentValues = ContentValues().apply { 74 | put(MediaStore.Images.Media.DISPLAY_NAME, "friends.jpg") 75 | } 76 | 77 | val uri = resolver 78 | .insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, contentValues) 79 | 80 | if (uri != null) { 81 | val outputStream = resolver.openOutputStream(uri) 82 | if (outputStream == null) { 83 | return null 84 | } 85 | val inputStream = this.assets.open("friends.jpg") 86 | val byteArray = ByteArray(1024) 87 | try { 88 | inputStream.use { input -> 89 | outputStream.use { output -> 90 | while (true) { 91 | val readLen = input.read(byteArray) 92 | if (readLen == -1) { 93 | break 94 | } 95 | outputStream.write(byteArray, 0, readLen) 96 | } 97 | } 98 | } 99 | } catch (e: Throwable) { 100 | Log.e("wfeii", "mediaStore e:$e") 101 | } 102 | 103 | } 104 | Log.e("wfeii", "mediaStore:$uri") 105 | return uri?.toString() 106 | } 107 | 108 | //通过FileProvider分享 109 | private fun fileProviderShare(): String? { 110 | val imagePath = File(this.getExternalFilesDir(null), "images")!! 111 | val file = File(imagePath, "friends_file_provider.jpg") 112 | 113 | if (!file.parentFile.exists()) { 114 | file.parentFile.mkdirs() 115 | } 116 | 117 | //更具获取Url 118 | val contentUri: Uri = 119 | FileProvider.getUriForFile(this, "com.kuaima.sharefileforandroid11.fileProvider", file) 120 | val fileOutputStream = contentResolver.openOutputStream(contentUri) 121 | if (fileOutputStream == null) { 122 | return null 123 | } 124 | val inputStream = this.assets.open("friends.jpg") 125 | val byteArray = ByteArray(1024) 126 | try { 127 | fileOutputStream.use { outputStream -> 128 | inputStream.use { inputStream -> 129 | while (true) { 130 | val readLen = inputStream.read(byteArray) 131 | if (readLen == -1) { 132 | break 133 | } 134 | outputStream.write(byteArray, 0, readLen) 135 | } 136 | } 137 | } 138 | } catch (e: Throwable) { 139 | Log.e("wfeii", "fileProviderShare e:$e") 140 | } 141 | Log.e("wfeii", "fileProviderShare:$contentUri") 142 | return contentUri.toString() 143 | } 144 | 145 | //通过File的方式分享 146 | private fun fileShare(): String { 147 | val file = File( 148 | Environment.getExternalStoragePublicDirectory( 149 | Environment.DIRECTORY_PICTURES 150 | ), 151 | "friends_file.jpg" 152 | ) 153 | if (!file.parentFile.exists()) { 154 | file.mkdirs() 155 | } 156 | val fileOutputStream = FileOutputStream(file) 157 | val inputStream = this.assets.open("friends.jpg") 158 | val byteArray = ByteArray(1024) 159 | try { 160 | fileOutputStream.use { outputStream -> 161 | inputStream.use { inputStream -> 162 | while (true) { 163 | val readLen = inputStream.read(byteArray) 164 | if (readLen == -1) { 165 | break 166 | } 167 | outputStream.write(byteArray, 0, readLen) 168 | } 169 | } 170 | } 171 | } catch (e: Throwable) { 172 | Log.e("wfeii", "fileShare:$e") 173 | } 174 | 175 | return file.path 176 | } 177 | } -------------------------------------------------------------------------------- /SourceApp/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /SourceApp/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /SourceApp/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 |