PopupWindowDemo

上传者: mad1989 | 上传时间: 2013-06-04 00:00:00 | 文件大小: 985KB | 文件类型: rar
PopupWindow可以实现浮层效果,主要方法有:可以自定义view,通过LayoutInflator方法;可以出现和退出时显示动画;可以指定显示位置等。 为了将PopupWindow的多个功能展现并力求用简单的代码实现,编写了一个点击按钮顶部弹出菜单的功能,实现出现和退出时显示动画效果并点击其他区域时弹出层自动消失

文件下载

资源详情

[{"title":"( 48 个子文件 985KB ) PopupWindowDemo","children":[{"title":"PopupWindowDemo","children":[{"title":".project <span style='color:#111;'> 851B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"demo","children":[{"title":"popupwindowdemo","children":[{"title":"MainActivity.java <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 889B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 332B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 261B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"popview_item.xml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 653B </span>","children":null,"spread":false}],"spread":true},{"title":"anim","children":[{"title":"inuptodown.xml <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"outdowntoup.xml <span style='color:#111;'> 234B </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 201B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 218B </span>","children":null,"spread":false}],"spread":false},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 275B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 389B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"demo","children":[{"title":"popupwindowdemo","children":[{"title":"BuildConfig.java <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 383.94KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 41.69KB </span>","children":null,"spread":false},{"title":"PopupWindowDemo.apk <span style='color:#111;'> 193.96KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"demo","children":[{"title":"popupwindowdemo","children":[{"title":"R$layout.class <span style='color:#111;'> 457B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 486B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 357B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 358B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"R$anim.class <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 785B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 889B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-3f7b39b903d8088e1b63cdfc614e2636.jar <span style='color:#111;'> 148.28KB </span>","children":null,"spread":false}],"spread":false},{"title":"res","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 440.80KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • 世外之人 :
    很实用,多谢
    2021-05-26
  • dadefengshao :
    非常好的资源 谢谢分享
    2020-02-14
  • yipiantianys :
    开发android时用到了,可以用
    2018-10-24
  • unhappyyy :
    有帮助,谢谢分享。
    2018-08-02
  • zhouyang19910320 :
    感谢,非常好用
    2018-06-26

免责申明

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