android负一屏服务端实现及对应的客户端demo

上传者: hsaekong | 上传时间: 2021-08-27 09:56:42 | 文件大小: 194KB | 文件类型: ZIP
利用Google的feed屏方案,导入google官方定义了两个interface接口,ILauncherOverlay和ILauncherOverlayCallback通过aidl进程间通信,从Launcher向负一屏app传递scroll数据,负一屏使用WindowManager.addView的方式添加浮动窗口,用translationX改变负一屏View的位置。 优点:与Launcher完美解耦,运行在独立的进程里,不存在影响Launcher内存问题。 缺点:负一屏View的实现难度大。

文件下载

资源详情

[{"title":"( 66 个子文件 194KB ) android负一屏服务端实现及对应的客户端demo","children":[{"title":"hiboardservice","children":[{"title":".gitignore <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 930B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hsae","children":[{"title":"hiboardservice","children":[{"title":"ExampleInstrumentedTest.java~ <span style='color:#111;'> 752B </span>","children":null,"spread":false},{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 752B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"hiboard_view.xml <span style='color:#111;'> 357B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 11.59KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher_round.xml <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"ic_launcher.xml <span style='color:#111;'> 276B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 16.18KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 10.40KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 80B </span>","children":null,"spread":false},{"title":"colors.xml <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"hsae","children":[{"title":"hiboardservice","children":[{"title":"view","children":[{"title":"HiboardWorkspace.java <span style='color:#111;'> 10.09KB </span>","children":null,"spread":false},{"title":"HiboardWorkspace.java~ <span style='color:#111;'> 10.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"HiboardService.java <span style='color:#111;'> 5.74KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"Utilties.java~ <span style='color:#111;'> 826B </span>","children":null,"spread":false},{"title":"Utilties.java <span style='color:#111;'> 826B </span>","children":null,"spread":false},{"title":"LogUtils.java <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"LogUtils.java~ <span style='color:#111;'> 849B </span>","children":null,"spread":false}],"spread":false},{"title":"HiboardService.java~ <span style='color:#111;'> 5.74KB </span>","children":null,"spread":false},{"title":"common","children":[{"title":"Messages.java <span style='color:#111;'> 542B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hsae","children":[{"title":"hiboardservice","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"ExampleUnitTest.java~ <span style='color:#111;'> 385B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 772B </span>","children":null,"spread":false},{"title":"hiboardservice.iml <span style='color:#111;'> 12.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"hiboardlauncher","children":[{"title":".gitignore <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1008B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hsae","children":[{"title":"hiboardlauncher","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 754B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 826B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 787B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 11.59KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher_round.xml <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"ic_launcher.xml <span style='color:#111;'> 276B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 16.18KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 10.40KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 81B </span>","children":null,"spread":false},{"title":"colors.xml <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 392B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"hsae","children":[{"title":"hiboardlauncher","children":[{"title":"MainActivity.java <span style='color:#111;'> 7.15KB </span>","children":null,"spread":false},{"title":"MyApplication.java <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"Utilties.java <span style='color:#111;'> 827B </span>","children":null,"spread":false},{"title":"LogUtils.java <span style='color:#111;'> 851B </span>","children":null,"spread":false}],"spread":false},{"title":"common","children":[{"title":"Messages.java <span style='color:#111;'> 543B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hsae","children":[{"title":"hiboardlauncher","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 386B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"hiboardlauncher.iml <span style='color:#111;'> 12.36KB </span>","children":null,"spread":false},{"title":"libs","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 772B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • qq_30359699 :
    代码是App左滑后出现的屏幕,跟Launcher负一屏没关系.
    2021-04-02
  • zougui0812 :
    老板便宜点嘛
    2020-11-30
  • znlkyzdn :
    老板便宜点嘛
    2020-11-25
  • u011069059 :
    老板便宜点嘛
    2020-07-23

免责申明

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