下面的是/res/drawable目录下的一个xml文件里的部分定义   <shape xmlns:android="http://schemas.android.com/apk/res/android " android:shape ="rectangle"> 
   <stroke android:width="1dip" android:color="#FBBB" /> 
     <solid android:color="#6000"/> 
      <layout_margin android:layout_margin="1dp"/> 
      <corners 
         android:bottomRightRadius="18dip" 
         android:bottomLeftRadius="6dip" 
         android:topLeftRadius="6dip" 
         android:topRightRadius="6dip"/>      </shape > 这是在定义一个shape,但是stroke  solid corners这些元素,我在api文档里找不到说明的地方,来求助下

解决方案 »

  1.   

    SDK文档里面还真没看到 一般我都是看DEMO里面具的这方面的例子来学习的 
      

  2.   

    想必兄弟在看Android自带的Demao源码?  最近也在被这个问题困扰。网上一篇帖子,应该对你有帮助。http://wang-peng1.javaeye.com/blog/523869我的最近的一个应用用到了这个Shape定义的Theme, 效果如下:希望后续有幸和兄弟一起交流。