23接收视频的消息类型布局的实现
来源:互联网 发布:白板安卓软件 编辑:程序博客网 时间:2024/05/21 06:27
效果:
注意几点:
显示的有大小,时长,以及类型是录像,缩略图:
<?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="wrap_content" android:gravity="center_horizontal" android:orientation="vertical" android:paddingTop="13dp" > <TextView android:id="@+id/timestamp" style="@style/chat_text_date_style" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_chat_activity" > <ImageView android:id="@+id/iv_userhead" android:layout_width="@dimen/size_avatar" android:layout_height="@dimen/size_avatar" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_marginLeft="@dimen/margin_chat_activity" android:background="@drawable/mini_avatar_shadow" android:scaleType="fitXY" /> <TextView android:id="@+id/tv_userid" style="@style/chat_text_name_style" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@id/iv_userhead" android:layout_toLeftOf="@+id/ll_click_area" /> <LinearLayout android:id="@+id/ll_click_area" android:layout_width="130dp" android:layout_height="145dp" android:layout_marginLeft="@dimen/margin_chat_activity" android:layout_toRightOf="@id/iv_userhead" > <FrameLayout android:id="@+id/chatting_click_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/chatfrom_bg" > <ImageView android:id="@+id/chatting_content_iv" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" /> <LinearLayout android:id="@+id/chatting_video_data_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/chat_video_mask_to" android:gravity="bottom" android:orientation="horizontal" > <TextView android:id="@+id/chatting_size_iv" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:textColor="@android:color/white" android:textSize="12sp" android:visibility="visible" /> <TextView android:id="@+id/chatting_length_iv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="right" android:textColor="@android:color/white" android:textSize="12sp" /> </LinearLayout> <LinearLayout android:id="@+id/container_status_btn" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" > <ImageView android:id="@+id/chatting_status_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@null" /> </LinearLayout> </FrameLayout> </LinearLayout> </RelativeLayout></LinearLayout>
0 0
- 23接收视频的消息类型布局的实现
- 20接收文本的消息类型的布局实现
- 21接收图片消息类型的布局实现
- 22发送图片的消息类型的布局实现
- 16发送位置的消息类型布局
- 17收到文件消息类型的布局
- 18发送文件消息类型的布局
- jms中消息接收的实现原理
- /*接收消息--单项的接收消息*/
- 微信发送接收消息类型的整理
- 消息队列的接收
- 19接受文本的消息类型的布局
- 定义消息的发送与接收的方法实现
- vc自定义消息的发送与接收的方法实现
- vc自定义消息的发送与接收的方法实现
- vc自定义消息的发送与接收的方法实现
- vc自定义消息的发送与接收的方法实现
- VC自定义消息的发送与接收的方法实现
- FusionCharts在Java中的基本使用
- 完整黑盒测试的五个阶段与操作步骤
- 基于git的源代码管理模型——git flow
- Android开发把项目打包成apk
- linux命令大全
- 23接收视频的消息类型布局的实现
- 对于你给予的一切她铭记于心
- 安卓小应用分析之一 360安仔 桌面悬浮
- App应用之提交到各大市场渠道
- select into from 与 insert into select 区别示例
- http post 中文乱码
- c++运算符重载2
- 不要以为她是个傻女人,她用自己的方式和信念去爱你
- Jquery Table 的基本操作