我想从内部部分移除桃色纯色,只想在顶部,左侧和右侧的边缘处。底色红色很好。我到处搜索,但他们只建议使用实心重叠整个红色边框。
XML代码
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<!-- Draw a 2dp width border around shape -->
<stroke
android:color="#ff1e0c"
android:width="2dp"
/>
</shape>
</item>
<!-- Overlap the left, top and right border using background color -->
<item
android:bottom="2dp"
>
<shape android:shape="rectangle">
<solid android:color="#fffbce"/>
</shape>
</item>
</layer-list>
答案 0 :(得分:1)
试试这个解决方案,
$(function() {
$("[id*=rbtnZone]").click(function() {
var row = $(this).closest('tr');
var branchId = $(row).find('[id*=hfBranchId]').val();
var rbtlSales = $("#<%= rbtlSales.ClientID%>");
var selectedValue = rbtlSales.find("input:checked").val();
var dt = new Date();
$.ajax({
url: '<%=ResolveUrl("Corporate/Sales.aspx/GetZoneData") %>',
data: "{'rbtlSales':'" + selectedValue + "'}",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function(data) {
var labels = [];
var datas = [];
var dpoints = [];
var lpoints = [];
var dp = [];
var len = data.d.length;
$.each(data.d, function(i, item) {
var l = item.split('-')[0];
var d = item.split('-')[1];
var dd = d | 0;
labels.push(l);
datas.push(dd);
var lblmsg = "Total Sales : Rs. " + eval(datas.join('+'));
document.getElementById('<%=lblTotal.ClientID %>').innerHTML = lblmsg;
});
for (var i = 0; i < len; i++) {
dp.push({ label: parseInt(labels), y: JSON.stringify(datas) });
}
alert(dp);
dpoints.push(datas);
alert(dpoints);
lpoints.push(labels);
var jlpoints = JSON.stringify(lpoints);
alert(jlpoints);
var chart = new CanvasJS.Chart("chartContainer", {
title: {
text: lblmsg
},
animationEnabled: true,
axisX: {
intervel: 1000,
gridThickness: 0,
labelFontSize: 10,
labelFontStyle: "normal",
labelFontWeight: "normal"
},
axisY2: {
interlacedColor: "rgba(1,77,101,.2)",
gridColor: "rgba(1,77,101,.1)"
},
data: [
{
type: "bar",
name: "ZoneSalesData",
showLegend: true,
axisYType: "primary",
color: "#014D65",
dataPoints: dp
}
]
});
}
});
chart.render();
});
});