消息气泡 安卓
来源:互联网 发布:女程序员转行做什么好 编辑:程序博客网 时间:2024/04/30 06:49
运行效果图:
布局文件代码
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <TextView android:padding="2dp" android:layout_width="60dp" android:layout_height="50dp" android:gravity="center" android:text="012345" /> <TextView android:layout_width="20dp" android:layout_height="20dp" android:layout_gravity="right" android:background="@drawable/tips_bg" android:gravity="center" android:text="1" android:textSize="15dp" android:textStyle="bold" android:textColor="@android:color/white" /></LinearLayout>
tips_bg.xml(画圆文件代码如下)
<pre style="background-color: rgb(255, 255, 255); font-family: 宋体; font-size: 9pt;"><pre style="background-color: rgb(255, 255, 255); font-family: 宋体; font-size: 9pt;"><span style="font-style:italic;"></span>
<?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" /></shape>
从上面的代码看出气泡就是一个大的TextView.
1 0
- 消息气泡 安卓
- 消息气泡
- 【安卓笔记】气泡式ListView
- 【安卓笔记】气泡式ListView
- 气泡消息提示
- CSS 消息气泡实现
- 安卓消息机制
- (十三)QQ 消息气泡
- 安卓中的消息机制
- 安卓Handler消息机制
- 安卓中的消息提示
- 安卓_弹出消息
- 安卓消息处理机制
- 安卓消息推送解决方案
- 安卓消息处理机制
- 安卓消息通知栏
- 安卓消息处理机制
- 安卓 手写消息机制
- 常用的正则表达式规则整理
- LA3942Remember the Word[Trie树]
- (七)XML Schema总结
- QT 的信号与槽机制介绍
- Linux下开发STM32
- 消息气泡 安卓
- JQuery EasyUi之界面设计——母版页以及Ajax的通用处理(三)
- document.getelementbyid().value与document.getElementById().innerHTML什么区别
- https证书加密
- (八)XML之JDOM详解
- can't find referenced method 'int checkSelfPermission(java.lang.String) 混淆失败的问题
- OC版正则表达式验证邮箱和身份证真伪
- 视觉机器学习算法之一k-means算法聚类
- (项目名).exe”。已加载符号。 无法查找或打开 PDB 文件。