相关疑难解决方法(0)

如何在iPhone上绘制"讲话泡泡"?

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

替代文字

我需要得到下半部分的"三角形"部分.有什么方法可以画出类似的东西并围绕它画一个边框吗?这将是一个iPhone应用程序.

提前致谢!

编辑:非常感谢Brad Larson,这就是现在的样子: 替代文字

iphone objective-c uiview ios uibezierpath

45
推荐指数
5
解决办法
3万
查看次数

Android使椭圆形背景可绘制与聊天角落

我知道如何创建椭圆形背景,我将此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?

android android-layout android-drawable

4
推荐指数
1
解决办法
3622
查看次数

在android中的语音泡沫

嗨,我想用语音气泡作为我的应用程序的背景图像.我在这里发布了这个帖子

Android可绘制的语音泡沫

这个例子从正确的方向开始,我想在我试过的相反方向实现这一目标

    <?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)

但我无法让它工作,任何帮助将不胜感激!

android

2
推荐指数
1
解决办法
5639
查看次数

Create xml Chat Bubble With the Shape As in the .png File

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 …

xml android chat shape balloon

2
推荐指数
1
解决办法
6797
查看次数