怎么做QQ、微信等消息气泡
2015-11-09 18:12
531 查看
主XML:
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="10dp" android:background="@drawable/round" android:src="@drawable/ic_launcher" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_margin="3dp" android:background="@drawable/smallyuan" android:text="10" android:textColor="@android:color/white" /> </FrameLayout>
橘黄色的圆圈:
<?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" android:useLevel="false"> <!-- 背景填充颜色值 --> <solid android:color="#FFA500" /> <!-- radius值越大,越趋于圆形 --> <corners android:radius="20dip" /> <!-- 圆角图像内部填充四周的大小 ,将会以此挤压内部布置的view --> <padding android:bottom="3dip" android:left="3dip" android:right="3dip" android:top="3dip" /> </shape>
上方气泡圆圈:
<?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" android:useLevel="false" > <!-- 背景填充颜色值 --> <solid android:color="#FF0000" /> <!-- radius值越大,越趋于圆形 --> <corners android:radius="20dip" /> <!-- 圆角图像内部填充四周的大小 ,将会以此挤压内部布置的view --> <padding android:bottom="3dip" android:left="3dip" android:right="3dip" android:top="3dip" /> </shape>
相关文章推荐
- 微信企业号让IOS不要识别数字为电话号码的方法
- 微信菜单添加图标
- 项目调优-微信(本地化服务)平台:瓶颈定位,数据库调优,业务重构
- java运行时间小程序
- 023.随机输出数值并统计出现次数
- 命令行菜单小程序V1.0
- 2015-11-9 java 微信端JSSDK分享实现
- C# 微信扫码支付API (微信扫码支付模式二)
- 用可重用的链表模块来实现命令行菜单小程序V2.5
- 微信公众平台开发(一)
- 微信JS-SDK 分享到朋友圈 分享给朋友 分享到QQ 拍照或从手机相册中选图 识别音频并返回识别结果 使用微信内置地图查看位置
- 配置微信公众号使用js-sdk
- 解决UmengSDK社会化分享过程中微信,QQ,新浪微博分享不成功的问题
- 手动刷微信运动步数
- 两个手机靠近,唤起应用如微信(需打开NFC)
- iOS 支付 [支付宝、银联、微信]
- mac 搭建 内网微信服务 ngrok
- 怎样进行微信营销才比较好
- Android 实现类似微信页面底部导航效果
- c#开发微信公众平台