Android Button样式设计

上传者: walfred89_ | 上传时间: 2021-07-06 09:33:54 | 文件大小: 39KB | 文件类型: 7Z
Button设置背景很简单,只需简单的应用Background属性即可,而为其添加状态设计也是通过此。Android系统为开发者考虑了一套selector机制,可以根据控件的状态(点击、非点击、焦点)自动切换。下面用一个简单的例子来概括下selector的应用。

文件下载

资源详情

[{"title":"( 31 个子文件 39KB ) Android Button样式设计","children":[{"title":"ButtonStyle","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"button_on.png <span style='color:#111;'> 667B </span>","children":null,"spread":false},{"title":"button.png <span style='color:#111;'> 642B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"org","children":[{"title":"ourunix","children":[{"title":"android","children":[{"title":"buttonstyle","children":[{"title":"R$layout.class <span style='color:#111;'> 433B </span>","children":null,"spread":false},{"title":"ButtonStyleActivity.class <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 379B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 567B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 466B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 12.56KB </span>","children":null,"spread":false},{"title":"ButtonStyle.apk <span style='color:#111;'> 15.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false},{"title":"button_on.png <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"button.png <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"buttonstyle.xml <span style='color:#111;'> 327B </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 188B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 557B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"buttonstyle01.gif <span style='color:#111;'> 5.88KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"org","children":[{"title":"ourunix","children":[{"title":"android","children":[{"title":"buttonstyle","children":[{"title":"R.java <span style='color:#111;'> 824B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard.cfg <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"org","children":[{"title":"ourunix","children":[{"title":"android","children":[{"title":"buttonstyle","children":[{"title":"ButtonStyleActivity.java <span style='color:#111;'> 362B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"buttonstyle02.gif <span style='color:#111;'> 5.73KB </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 756B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • u012554768 :
    资源不错!感谢!
    2019-09-05
  • shenshendeaishang :
    还不错 ,挺好的加油~
    2014-03-17
  • zxh170601 :
    很全的样式,谢谢分享
    2013-12-23
  • zd_1471278687 :
    不错,适合初学者
    2013-08-28
  • yun_android :
    很全,谢谢
    2013-07-09

免责申明

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