Android界面篇【右上角带个泡泡】
来源:互联网 发布:remind 软件 编辑:程序博客网 时间:2024/04/29 20:33
一个网友问到“一个新消息Button按钮,上边浮着一个泡泡形状提示有几条新消息!”是怎么实现的,我这简单写了一下,其实就是view的组合。
- < ?xml version="1.0" encoding="utf-8"?>
- < LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="@android:color/white"
- >
- <RelativeLayout
- android:id="@+id/gridview_item_layout"
- android:layout_width="190dip"
- android:layout_height="190dip"
- android:background="@drawable/usb_android"
- >
- <TextView android:id="@+id/textView1"
- android:layout_alignParentRight="true"
- android:text="3"
- android:textColor="@android:color/white"
- android:background="@drawable/btn_circle_selected"
- android:gravity="center"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"></TextView>
- </RelativeLayout>
- < /LinearLayout>
- public class PaopaoActivity extends Activity{
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- // TODO Auto-generated method stub
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main2);
- }
- }
http://www.devdiv.com/home.php?mod=space&uid=14682&do=blog&id=4118
1 0
- Android界面篇【右上角带个泡泡】
- Android UI开发第十一篇——右上角带个泡泡
- 第八十三讲:UI介面右上角带个泡泡效果
- Android界面右上角放ImageButton
- Android泡泡聊天界面的实现
- Android泡泡聊天界面的实现
- 冒个泡泡
- 冒个泡泡
- android-魔法泡泡-泡泡动画分析
- android mapview 泡泡效果
- 安卓仿微信界面,导航,右上角菜单栏
- 第一个带界面的Windows程序
- android 右上角添加菜单
- Android 桌面图标右上角数字
- Android 桌面图标右上角数字
- 泡泡同学带你玩转css
- 泡泡带你看java script
- MFC中使主界面右上角按钮失效
- Android界面篇【SlidingDrawer 抽屉效果】
- fedora 13 x86开启 UVD加速
- 单调递增子序列(二) 南阳理工214 二分查找
- Android界面篇【锁屏效果】
- poj1543 将一个数写成3个数的立方之和
- Android界面篇【右上角带个泡泡】
- linux中各种系统目录的作用
- C_WINAPI学习笔记
- 彻底卸载oracle11g
- 真机调试问题,Camera应用
- ibus五笔快捷键 繁简 单字 词组切换
- ios开发 - 使用CocoaPods管理类库
- tinyxml:快速入门----一个官方带说明示例的翻译
- Myeclipse.10 破解