当你右键点击底座上的某些东西时,我正试图获得类似于Mac OS X中的"语音气泡"效果.这就是我现在拥有的:

我需要得到下半部分的"三角形"部分.有什么方法可以画出类似的东西并围绕它画一个边框吗?这将是一个iPhone应用程序.
提前致谢!
编辑:非常感谢Brad Larson,这就是现在的样子:

我知道如何创建椭圆形背景,我将此drawable添加到RelativeLayout背景:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<solid android:color="#FFFFFF"/>
<corners
android:bottomRightRadius="15dp"
android:bottomLeftRadius="15dp"
android:topLeftRadius="15dp"
android:topRightRadius="15dp"/>
</shape>
Run Code Online (Sandbox Code Playgroud)
但我想创建这个drawable和聊天的角落,如下所示:
如何在聊天的角落添加这个drawable?
嗨,我想用语音气泡作为我的应用程序的背景图像.我在这里发布了这个帖子
这个例子从正确的方向开始,我想在我试过的相反方向实现这一目标
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:top="30dp">
<rotate
android:fromDegrees="-45"
android:pivotX="0%"
android:pivotY="0%"
android:toDegrees="0" >
<shape android:shape="rectangle" >
<solid android:color="#CCC" />
</shape>
</rotate>
</item>
<item android:right="10dp">
<shape android:shape="rectangle" >
<solid android:color="#CCC" />
<corners android:radius="5dp" />
</shape>
</item>
</layer-list>
Run Code Online (Sandbox Code Playgroud)
但我无法让它工作,任何帮助将不胜感激!
Could I please ask if anyone knows how to create an xml shape of the chat bubble below? The only examples I found online were two separate shapes that were put as two separate backgrounds in a layout - a triangle and a rectangle. I tried combining the triangle and rectangle to no avail. The triangle seems to hide in the rectangle.
Setting a top attribute to the triangle to move it down makes the ImageView object blank.
Please see …
android ×3
balloon ×1
chat ×1
ios ×1
iphone ×1
objective-c ×1
shape ×1
uibezierpath ×1
uiview ×1
xml ×1