android中的自定义形状

时间:2012-04-13 07:18:32

标签: android xml android-layout shape android-xml

我想制作一个像图像中的自定义形状,但我不知道如何开始,请一些身体帮助

enter image description here

4 个答案:

答案 0 :(得分:0)

Documentation还不够吗?

答案 1 :(得分:0)

我认为你必须处理图像。

你可以像这样

为“头盒”创建一个单独的xml
<linear layout>
 <text view background="dark-grey" text = "o nuts"/>
 <image view src="blue line" />
 <linear layout>
   <image view src="donut" />
   <linear layout>
     <text view text="price" />
     <text view text="date" />
   </linear layout>
   <image view src="box_border_shadow_lines" />
 </lienar layout>
</linear layout>

和一些类似的文章......

注意这是无效的xml :)只是一些提示

答案 2 :(得分:0)

您在图像顶部显示的部分是操作栏您可以开始学习如何制作操作栏。我有一个Action Bar的例子。

答案 3 :(得分:0)

哪一个?使用“兑换”按钮在图像底部的形状?