记录下平时常用的小知识点,知识在于积累!
shape:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" > <corners android:radius="5dp"/> <solid android:color="#000000"/> </shape>
selector:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_pressed="false"><color android:color="#F2F2F2"/></item> <item android:state_pressed="true"><color android:color="#DADADA"/></item> </selector>
本文出自 “移动平台开发” 博客,请务必保留此出处http://liuxudong1001.blog.51cto.com/10877072/1720674
原文地址:http://liuxudong1001.blog.51cto.com/10877072/1720674