日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

android xml png,android - 使用.png文件中的形状创建xml聊天气泡 - 堆栈内存溢出

發布時間:2025/4/5 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android xml png,android - 使用.png文件中的形状创建xml聊天气泡 - 堆栈内存溢出 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

請問是否有人知道如何在下面創建聊天氣泡的xml形狀? 我在網上找到的唯一示例是兩個單獨的形狀,它們在布局中作為兩個單獨的背景放置-三角形和矩形。 我嘗試將三角形和矩形組合在一起無濟于事。 三角形似乎隱藏在矩形中。 將三角形的top屬性設置為向下移動會使ImageView對象為空白。

請查看我嘗試過的內容:

android:shape="rectangle">

android:width="106dp"

android:height="20dp"/>

android:width="1dp"

android:color="#000" />

android:fromDegrees="45"

android:toDegrees="45"

android:pivotX="135%"

android:pivotY="15%">

android:height="10dp"

android:width="10dp"/>

這是imageView中的用法:

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:paddingBottom="@dimen/activity_vertical_margin"

android:paddingLeft="@dimen/activity_horizontal_margin"

android:paddingRight="@dimen/activity_horizontal_margin"

android:paddingTop="@dimen/activity_vertical_margin"

tools:context="net.eventilate.shapes.Balloon">

android:layout_width="106dp"

android:layout_height="30dp"

android:id="@+id/imageView2"

android:contentDescription="@string/test"

android:background="@drawable/balloon"

android:layout_centerVertical="true"

android:layout_centerHorizontal="true" />

總結

以上是生活随笔為你收集整理的android xml png,android - 使用.png文件中的形状创建xml聊天气泡 - 堆栈内存溢出的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。