按照网上的方法
在drawable文件夹下,建whiterounded_half_bg.xml文件
文件内容
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffffffff" />
<corners android:radius="10px" />
<padding android:left="5dp" android:top="5dp"
android:right="5dp" android:bottom="5dp" />
</shape>
在相应的页面中相应的位置下使用android:background="@drawable/whiterounded_half_bg"
现在问题是:
在eclipse中用自动的图形编辑器看 是有圆角效果的,在模拟器中看又没有圆角效果。
这个该怎么解决
模拟器版本2.1
------解决方案--------------------
NinePatch试试这个
相关的链接
http://developer.android.com/tools/help/draw9patch.html
http://developer.android.com/reference/android/graphics/NinePatch.html