自定系统分享UI

上传者: yanzhenjie1003 | 上传时间: 2021-07-19 14:02:01 | 文件大小: 321KB | 文件类型: ZIP
Android分享内容到其他应用,调用系统的Dialog或者ActionBar的弹窗都不太自由,对于我们自定义UI限制太大,这里我做了简单的封装,可以弹窗,也可以直接在Activity或者Fragment里边自定义界面。这里展示一个关键类的代码,做了封装处理

文件下载

资源详情

[{"title":"( 88 个子文件 321KB ) 自定系统分享UI","children":[{"title":"TestShare","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 872B </span>","children":null,"spread":false},{"title":".gradle","children":[{"title":"2.2.1","children":[{"title":"taskArtifacts","children":[{"title":"fileHashes.bin <span style='color:#111;'> 85.47KB </span>","children":null,"spread":false},{"title":"cache.properties.lock <span style='color:#111;'> 17B </span>","children":null,"spread":false},{"title":"taskArtifacts.bin <span style='color:#111;'> 55.02KB </span>","children":null,"spread":false},{"title":"fileSnapshots.bin <span style='color:#111;'> 286.91KB </span>","children":null,"spread":false},{"title":"cache.properties <span style='color:#111;'> 31B </span>","children":null,"spread":false},{"title":"outputFileStates.bin <span style='color:#111;'> 19.25KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"app","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 678B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"yolanda","children":[{"title":"testshare","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"drawable","children":null,"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 205B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"main_activity.xml <span style='color:#111;'> 408B </span>","children":null,"spread":false},{"title":"item_share.xml <span style='color:#111;'> 859B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"yolanda","children":[{"title":"testshare","children":[{"title":"share","children":[{"title":"ShareType.java <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":"Share.java <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"ShareItem.java <span style='color:#111;'> 573B </span>","children":null,"spread":false}],"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"ShareAdapter.java <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 631B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"app.iml <span style='color:#111;'> 6.91KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"build","children":[{"title":"outputs","children":[{"title":"logs","children":[{"title":"manifest-merger-debug-report.txt <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"apk","children":[{"title":"app-debug-unaligned.apk <span style='color:#111;'> 28.25KB </span>","children":null,"spread":false},{"title":"app-debug.apk <span style='color:#111;'> 28.25KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"intermediates","children":[{"title":"dex","children":[{"title":"debug","children":[{"title":"classes.dex <span style='color:#111;'> 10.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"res","children":[{"title":"androidTest","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"debug","children":[{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"values.xml <span style='color:#111;'> 480B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 6.84KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"main_activity.xml <span style='color:#111;'> 509B </span>","children":null,"spread":false},{"title":"item_share.xml <span style='color:#111;'> 957B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"manifests","children":[{"title":"tmp","children":null,"spread":false},{"title":"androidTest","children":[{"title":"debug","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 654B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"full","children":[{"title":"debug","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 822B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"assets","children":[{"title":"androidTest","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"resources","children":[{"title":"resources-debug.ap_ <span style='color:#111;'> 20.91KB </span>","children":null,"spread":false},{"title":"resources-debug-androidTest.ap_ <span style='color:#111;'> 763B </span>","children":null,"spread":false}],"spread":false},{"title":"symbols","children":[{"title":"androidTest","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"dependency-cache","children":[{"title":"androidTest","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"tmp","children":[{"title":"dex","children":[{"title":"debug","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"classes","children":[{"title":"androidTest","children":[{"title":"debug","children":[{"title":"com","children":[{"title":"yolanda","children":[{"title":"testshare","children":[{"title":"ApplicationTest.class <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"BuildConfig.class <span style='color:#111;'> 735B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"debug","children":[{"title":"com","children":[{"title":"yolanda","children":[{"title":"testshare","children":[{"title":"MainActivity.class <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 720B </span>","children":null,"spread":false},{"title":"R$mipmap.class <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 446B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 473B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 349B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 603B </span>","children":null,"spread":false},{"title":"ShareAdapter.class <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"share","children":[{"title":"ShareItem.class <span style='color:#111;'> 784B </span>","children":null,"spread":false},{"title":"ShareType.class <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"Share$1.class <span style='color:#111;'> 793B </span>","children":null,"spread":false},{"title":"Share.class <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"ShareAdapter$1.class <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"ShareAdapter$ViewHolder.class <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 407B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 404B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"incremental","children":[{"title":"aidl","children":[{"title":"androidTest","children":[{"title":"debug","children":[{"title":"dependency.store <span style='color:#111;'> 5B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"debug","children":[{"title":"dependency.store <span style='color:#111;'> 5B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"mergeResources","children":[{"title":"androidTest","children":[{"title":"debug","children":[{"title":"merger.xml <span style='color:#111;'> 401B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"debug","children":[{"title":"merger.xml <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"mergeAssets","children":[{"title":"androidTest","children":[{"title":"debug","children":[{"title":"merger.xml <span style='color:#111;'> 183B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"debug","children":[{"title":"merger.xml <span style='color:#111;'> 286B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"pre-dexed","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"rs","children":[{"title":"androidTest","children":[{"title":"debug","children":[{"title":"obj","children":null,"spread":false},{"title":"lib","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"debug","children":[{"title":"obj","children":null,"spread":false},{"title":"lib","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"tmp","children":[{"title":"compileDebugAndroidTestJava","children":null,"spread":false},{"title":"compileDebugJava","children":null,"spread":false}],"spread":true},{"title":"generated","children":[{"title":"res","children":[{"title":"rs","children":[{"title":"androidTest","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"debug","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"source","children":[{"title":"buildConfig","children":[{"title":"androidTest","children":[{"title":"debug","children":[{"title":"com","children":[{"title":"yolanda","children":[{"title":"testshare","children":[{"title":"test","children":[{"title":"BuildConfig.java <span style='color:#111;'> 459B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"debug","children":[{"title":"com","children":[{"title":"yolanda","children":[{"title":"testshare","children":[{"title":"BuildConfig.java <span style='color:#111;'> 449B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"aidl","children":[{"title":"androidTest","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"r","children":[{"title":"androidTest","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"debug","children":[{"title":"com","children":[{"title":"yolanda","children":[{"title":"testshare","children":[{"title":"R.java <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"rs","children":[{"title":"androidTest","children":[{"title":"debug","children":null,"spread":false}],"spread":false},{"title":"debug","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 557B </span>","children":null,"spread":false},{"title":"libs","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 48.73KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"gradle.xml <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 76B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 113.87KB </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"profiles_settings.xml <span style='color:#111;'> 241B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"local.properties <span style='color:#111;'> 445B </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 16B </span>","children":null,"spread":false},{"title":"TestShare.iml <span style='color:#111;'> 915B </span>","children":null,"spread":false},{"title":"build","children":[{"title":"intermediates","children":[{"title":"gradle_project_sync_data.bin <span style='color:#111;'> 588B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 455B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • cnqqkfqp522 :
    感谢分享,不错不错
    2017-11-06
  • shuyou612 :
    感谢分享,有帮助
    2017-03-17

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明