怎样使用Foxmail收发外网邮件
2009-05-05 07:34
316 查看
popuWindowXml布局
Popu 代码实现
本文出自 “xmy” 博客,请务必保留此出处http://88649164.blog.51cto.com/9890093/1612112
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/local_popup_bg" android:orientation="horizontal" ><!-- 拨打电话 --> <LinearLayout android:id="@+id/ll_call" android:layout_width="40dip" android:layout_height="wrap_content" android:orientation="vertical" > <ImageView android:layout_width="40dip" android:layout_height="wrap_content" android:src="@android:drawable/ic_menu_call" /> <TextView android:layout_width="40dip" android:layout_height="wrap_content" android:gravity="center" android:text="电话" /> </LinearLayout><!-- 发送短信 --> <LinearLayout android:id="@+id/ll_sms" android:layout_width="40dip" android:layout_height="wrap_content" android:layout_marginLeft="10dip" android:orientation="vertical" > <ImageView android:layout_width="40dip" android:layout_height="wrap_content" android:src="@android:drawable/ic_menu_send" /> <TextView android:layout_width="40dip" android:layout_height="wrap_content" android:gravity="center" android:text="短信" /> </LinearLayout> </LinearLayout> |
//加载布局 View contentView=View.inflate(getApplicationContext(), R.layout.popu_dialog, null); //找到相应的控件进行操作1,拨打电话,2,发送短信 LinearLayout ll_call=(LinearLayout)contentView.findViewById(R.id.ll_call); LinearLayout ll_sms=(LinearLayout) contentView.findViewById(R.id.ll_sms); //弹出popu对话框 pw=new PopupWindow(contentView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); //背景透明 pw.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); //宽,高的数组 int[] location=new int[2]; view.getLocationInWindow(location); pw.showAtLocation(view, Gravity.LEFT|Gravity.TOP, 30, location[1]); |
相关文章推荐
- 怎样使用Microsoft Outlook2007收发外网邮件
- 怎样使用outlook exprees收发外网邮件
- 怎样使用Microsoft Outlook收发外网邮件
- 怎样使用OUTLOOK收发邮件 小雨
- 使用Outlook,Foxmail等客户端软件来收发邮件
- 使用Foxmail收发Gmail邮件(含两部验证)
- 解决由于使用代理服务器导致Foxmail无法收发邮件的问题
- Yahoo邮件也能用Foxmail、Outlook收发
- XenMobile 10使用WorxMail集成Exchange收发邮件
- 使用SQL Mail收发和自动处理邮件中的扩展存储过程简介
- 局域网中搭建James服务器并实现与外网收发邮件
- 使用telnet协议来收发邮件(SMTP和POP3)
- 使用PowerBI分析我们的邮件收发日志!
- GCMail Server+花生壳免费动态域名解析搭建外网邮件收发
- foxmail 无法收发gamil邮件
- 使用windows的telnet工具收发邮件
- 如何使用outlook express 收发邮件
- Exchange2007如何设置部分用户只允许在收发内部邮件,而不能收发外网邮件?
- Exchange2007如何设置部分用户只允许在收发内部邮件,而不能收发外网邮件?