我想绘制一个完美的圆形按钮.
我尝试使用以下代码:
android:shape="oval" >
android:width="3dip"
android:color="#065a32" />
但即使我更改参数,我也只能绘制椭圆形状:
android:width="3dip"/>
我的截图:
我已经尝试过这个网站的不同链接,但没有一个满足我的需要.
编辑:
我的getView()代码是:
public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (convertView == null) {
LayoutInflater vi = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.calendar_item, null);
}
view.setBackgroundResource(R.drawable.calendar_cell_clicked);
}