我尝试创建此视图:
我不知道怎么用线做弧。我尝试了一些<?php
$Inventory1 = "111,222,333,111";
$SplitInventory1 = explode(",",$Inventory1);
$Invoice = "111,222";
$SplitInvoice = explode(",",$Invoice);
$diff = array_filter($SplitInventory1,
function ($val) use (&$SplitInvoice) {
$key = array_search($val,$SplitInvoice);
if ( $key === false ) return true;
unset($SplitInvoice[$key]);
return false;
}
);
echo "<pre>";print_r($diff);
?>
和属性Array
(
[2] => 333
[3] => 111
)
,但无效。
答案 0 :(得分:0)
您可以像这样创建视图的半圆:
?xml version="1.0" encoding="utf-8"?>
<clip
xmlns:android="http://schemas.android.com/apk/res/android"
android:clipOrientation="vertical"
android:gravity="bottom">
<shape android:shape="oval">
<solid android:color="#444"/>
</shape>