1
http://www.anbg.gov.au/images/flags/misc/semaphore.gif 我想創建一個圖像,像我postet但與XML文件。我希望我很清楚。如何在android中使用對角線劃分的兩種顏色創建背景圖像?
http://www.anbg.gov.au/images/flags/misc/semaphore.gif 我想創建一個圖像,像我postet但與XML文件。我希望我很清楚。如何在android中使用對角線劃分的兩種顏色創建背景圖像?
你不能使用drawable xml的形狀來創建它。
可用形狀是:
"rectangle" A rectangle that fills the containing View. This is the default shape. "oval" An oval shape that fits the dimensions of the containing View. "line" A horizontal line that spans the width of the containing View. This shape requires the <stroke> element to define
的線的寬度。 「戒指」一個戒指的形狀。
您可以使用畫布繪製。