做网页引用别的网站的视频设计有什么网站推荐

news/2025/9/23 13:56:42/文章来源:
做网页引用别的网站的视频,设计有什么网站推荐,青岛建设集团招工信息网站,免费做公司网站#xfeff;#xfeff;Android社交类APP动态详情代码实现通用模板 Android平台上一些比较流行的社交类APP比如微信、陌陌等#xff0c;都有动态详情页#xff0c;在该页面#xff0c;用户发表的动态详情#xff0c;好友可以发起评论、点赞等等。这种设计在微信和陌陌上大… Android社交类APP动态详情代码实现通用模板 Android平台上一些比较流行的社交类APP比如微信、陌陌等都有动态详情页在该页面用户发表的动态详情好友可以发起评论、点赞等等。这种设计在微信和陌陌上大同小异。我自己写了一个较为通用的模板记下作为备忘和参考更多更丰富的内容可据此深入定制和开发。 思路整体是一个ListView实现ListView添加一个header作为该用户发送的动态详情呈现页面然后在ListView下面的item里面是该用户的好友们发表的评论等等。 ListView下方是一个单独的布局该布局放置一个EditText和Button供发送评论。 先看代码运行的结果 实现代码 测试的主ActivityMainActivity.java package zhangphil.detail;import java.util.Random;import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.TableLayout; import android.widget.TableRow;public class MainActivity extends Activity {Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);LayoutInflater mLayoutInflater LayoutInflater.from(this);View view View.inflate(this, R.layout.activity_main, null);ListView listView (ListView) view.findViewById(android.R.id.list);// 每条评论的适配器ArrayAdapter adapter new MyArrayAdapter(this, -1);listView.setAdapter(adapter);listView.setHeaderDividersEnabled(false);// ListView的头部View v mLayoutInflater.inflate(R.layout.listview_head, null);listView.addHeaderView(v);TableLayout tableLayout (TableLayout) v.findViewById(R.id.tableLayout);final int WC ViewGroup.LayoutParams.WRAP_CONTENT;// 随机生成若干张测试图片的量值。int total new Random().nextInt(10);int ROW 0;int mod total % 3;if (mod 0)ROW total / 3;elseROW total / 3 1;Context context this;// 转换成ROW行3列的格式。int k 0;for (int i 0; i ROW; i) {TableRow tableRow new TableRow(this);for (int j 0; j 3; j) {if (k total) {// 测试图片ImageView iv new ImageView(context);iv.setImageResource(R.drawable.ic_launcher);tableRow.addView(iv);k;}}tableLayout.addView(tableRow, new TableLayout.LayoutParams(WC, WC));}setContentView(view);}private class MyArrayAdapter extends ArrayAdapter {private LayoutInflater mLayoutInflater;public MyArrayAdapter(Context context, int resource) {super(context, resource);mLayoutInflater LayoutInflater.from(context);}Overridepublic View getView(int pos, View convertView, ViewGroup parent) {if (convertView null)convertView mLayoutInflater.inflate(R.layout.comment_item, null);return convertView;}// 返回一个测试数据量值Overridepublic int getCount() {return 5;}} }MainActivity.java需要的布局文件activity_main.xml文件 ?xml version1.0 encodingutf-8? RelativeLayout xmlns:androidhttp://schemas.android.com/apk/res/androidandroid:layout_widthmatch_parentandroid:layout_heightmatch_parent ListViewandroid:idandroid:id/listandroid:layout_widthmatch_parentandroid:layout_heightwrap_contentandroid:layout_aboveid/commentLinearLayoutandroid:layout_gravitycenterandroid:scrollbarsnone /LinearLayoutandroid:idid/commentLinearLayoutandroid:layout_widthmatch_parentandroid:layout_heightwrap_contentandroid:layout_alignParentBottomtrueandroid:background#e0e0e0android:orientationhorizontal EditTextandroid:idid/commentEditTextandroid:layout_width0dipandroid:layout_heightwrap_contentandroid:layout_weight8android:hint发表评论 /Buttonandroid:idid/buttonSendstyle?android:attr/buttonStyleSmallandroid:layout_width0dipandroid:layout_heightwrap_contentandroid:layout_weight2android:text发送 //LinearLayout/RelativeLayout ListView头部布局用到的listview_head.xml ?xml version1.0 encodingutf-8? RelativeLayout xmlns:androidhttp://schemas.android.com/apk/res/androidandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentandroid:background#f5f5f5android:padding5dipandroid:paddingBottom20dip ImageViewandroid:idid/imageViewHeadandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:layout_alignParentLefttrueandroid:layout_alignParentToptrueandroid:layout_marginTop5dipandroid:adjustViewBoundstrueandroid:maxHeight60dipandroid:maxWidth60dipandroid:padding1dipandroid:srcdrawable/head /LinearLayoutandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentandroid:layout_marginTop5dipandroid:layout_toRightOfid/imageViewHeadandroid:orientationverticalandroid:padding1dip RelativeLayoutandroid:layout_widthmatch_parentandroid:layout_heightwrap_contentandroid:padding1dip TextViewandroid:idid/nameandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:layout_alignParentToptrueandroid:layout_centerVerticaltrueandroid:text姓名某某某android:textColorandroid:color/blackandroid:textSize13spandroid:textStylebold /TextViewandroid:idid/timeandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:layout_alignParentRighttrueandroid:layout_alignParentToptrueandroid:layout_centerVerticaltrueandroid:text2015-09-16android:textSize9sp //RelativeLayoutViewandroid:layout_widthmatch_parentandroid:layout_height1dipandroid:background#EFEFEFandroid:padding1dip /TextViewandroid:idid/titleandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:layout_marginTop5dipandroid:text标题 /TextViewandroid:idid/detailandroid:layout_widthmatch_parentandroid:layout_heightwrap_contentandroid:layout_marginTop5dipandroid:text一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字一些文字android:textSize11sp /TableLayoutandroid:idid/tableLayoutandroid:layout_widthmatch_parentandroid:layout_heightwrap_contentandroid:shrinkColumns0,1,2 /RelativeLayoutandroid:layout_widthmatch_parentandroid:layout_heightwrap_contentandroid:padding1dip LinearLayoutandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:layout_alignParentRighttrueandroid:orientationhorizontal TextViewandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:drawableLeftdrawable/favoriteandroid:gravitybottom|rightandroid:padding1dipandroid:text99android:textSize8sp /TextViewandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:drawableLeftdrawable/commentandroid:gravitybottom|rightandroid:padding1dipandroid:text99android:textSize8sp //LinearLayout/RelativeLayout/LinearLayout/RelativeLayout ListView适配器加载的每一个item的布局文件comment_item.xml ?xml version1.0 encodingutf-8? RelativeLayout xmlns:androidhttp://schemas.android.com/apk/res/androidandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentandroid:orientationhorizontalandroid:padding15dip ImageViewandroid:idid/headandroid:layout_width30dipandroid:layout_height30dipandroid:layout_alignParentLefttrueandroid:layout_centerVerticaltrueandroid:srcdrawable/ic_launcher /TextViewandroid:idid/commentandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:layout_centerVerticaltrueandroid:layout_marginLeft2dipandroid:layout_toRightOfid/headandroid:gravitycenterandroid:padding1dipandroid:text哎哟不错哦 /TextViewandroid:idid/timeandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:layout_alignParentRighttrueandroid:layout_centerVerticaltrueandroid:gravitycenterandroid:text20:30 //RelativeLayout 其中图片素材head.png、comment.png、favorite.png可以自行根据喜好选取。 附我写的另外一篇与此相关的参考文章 《Android社交类APP常用的动态消息发布通用模板》 文章链接http://blog.csdn.net/zhangphil/article/details/48467309

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/912755.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

陕西网络开发公司网站wordpress添加上一篇下一页

【Unity】对象池技术 1.简介 对象池(Object Pooling)技术是一种用于优化游戏性能和内存管理的技术。 对象池可以用于各种需要频繁实例化和销毁游戏对象的场景,例如子弹、敌人、玩家等。其主要目标是减少频繁的内存分配和垃圾回收的次数&…

如何在分类信息网站做推广上传wordpress后

在系统运行中输入: sqlplus /nolog 在命令窗口分别执行: conn /as sysdbaalter user scott identified by tiger;alter user scott account unlock; 这样就把“scott”用户密码修改为“tiger”了,用户可根据自己需求,重置密码。

做外贸的几个网站东软网站建设方案

目录 1. 背景... 3 2. 泊车模块架构图... 4 3. 泊车规划模块信号... 5 3.1 输入信号... 5 3.2 输出信号... 5 4. 模块预处理... 6 4.1 坐标系转换... 6 4.2 车库及轨迹处理策略... 7 5. 泊车规划模块算法设计... 8 5.1 泊入规划模块... 8 5.1.1 泊入…

基于jsp网站开发开题报告江苏宿迁租房网

年后跳槽须知自己签订的合同中是否存在竞业协议,谨防协议造成经济损失 🐓 什么是竞业协议 竞业协议时用于保护自己的权益,在员工离职时决定是否启动的一种协议,避免一些掌握公司机密的一些重要岗位人才流入竞争对手的公司&#xf…

嵌入式系统arm高级系统调试技能-24./proc/slabinfo 记录解读与内存异常分析

嵌入式系统arm高级系统调试技能-24./proc/slabinfo 记录解读与内存异常分析pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-famil…

2025无人机在低空物流中的应用实践

一、爆发背景:政策东风与需求共振2025年被业界称为“低空物流元年”。政策层面,国家持续开放低空空域试点,推动基础设施标准化建设;市场层面,电商时效竞争、偏远地区配送痛点、应急物流需求激增,共同催生无人机物…

外贸先做网站还是开公司杭州电子商务网站建设公司

HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Tools\SQLEW\Registered Servers X\SQL Server 组 删除你那个注册名 转载于:https://www.cnblogs.com/DonePuzzle/archive/2008/04/01/1163731.html

怎样才能建设一歌网站无锡制作网站

目录 一、数字孪生技术的兴起与定义 二、数字孪生技术在智慧城市构建中的应用 1、城市规划与管理 2、智慧交通 3、智慧能源 4、智慧环保 三、数字孪生技术助力智慧城市构建的挑战与对策 四、结语 随着科技的飞速发展,未来城市正在经历一场前所未有的变革。数…

快速搭建网站demo视频直播怎么赚钱的

GPS北斗卫星时空信号安全防护装置(授时)介绍 GPS北斗卫星时空信号安全防护装置(授时)介绍 当前,我国电力系统普遍采用北斗卫星或者GPS卫星授时来实现时间同步,但不加防护的授时装置存在卫星信号被干扰或欺…

法库综合网站建设方案网站开发广告怎么写

给定一个数字字符串 S&#xff0c;比如 S “123456579”&#xff0c;我们可以将它分成斐波那契式的序列 [123, 456, 579]。 形式上&#xff0c;斐波那契式序列是一个非负整数列表 F&#xff0c;且满足&#xff1a; 0 < F[i] < 2^31 - 1&#xff0c;&#xff08;也就是…

旅行社网站建设规划书论文做h5页面的网站

Keepalived 一.VRRP 协议介绍 1.1 VRRP Intro 一个问题 在计算机网络中&#xff0c;交换机的一个功能是充当 LAN 网络上的主机到 WAN 的网关。 在规模比较大的 LAN 中&#xff0c;可能需要两个或多个交换机来充当网关&#xff0c;其中的主机 使用动态路由协议(如 RIP 或 OSP…

南阳网站推广优秀学习网站

QT 工程引入 QtXml QT 版本 6.6.1 Visual Studio 版本 Microsoft Visual Studio Community 2022 (64 位) - Current 版本 17.7.5 打开 Visual Studio 项目工程选择 工具栏 - 扩展 - QT VS Tools -Qt Project Settings 勾选 xml 后点击确定 点击应用即可 注意&#xff1a;配置环…

可以转app的网站怎么做的天津市北辰区建设与管理局网站

小编典典碰巧的是不久前我写了一个BigFraction类&#xff0c;用于解决Euler项目问题。它保留了BigInteger分子和分母&#xff0c;因此它将永远不会溢出。但是&#xff0c;对于许多你永远不会溢出的操作来说&#xff0c;这会有点慢。无论如何&#xff0c;请根据需要使用它。我一…

衡水冀县做网站wordpress微信快捷支付

人到中年有点甜获取Redis1、通过官网http://redis.io/获取稳定版源码包下载地址&#xff1b;2、通过wget http://download.redis.io/releases/redis-3.0.2.tar.gz下载 源码包&#xff1b;2编译安装Redis1、解压源码安装包&#xff0c;通过tar -xvf redis-3.0.2.tar.gz解压源码&…

杭州网络科技网站建设工程法律网站

在C语言中&#xff0c;你可以使用标准库中的文件操作函数来读取INI文件&#xff0c;然后解析其中的内容以找到对应的键和值。以下是一个简单的示例代码&#xff0c;演示如何实现这一过程&#xff1a; #include <stdio.h> #include <string.h>#define MAX_LINE_LEN…

ssh如何打开可视化界面

ssh如何打开可视化界面在远程 Ubuntu 系统上安装 X11sudo apt update sudo apt install xauth xorg openbox在本机通过 SSH 启用 X11 转发: 在连接时加上 -X 或 -Y 参数:ssh -Y username@remote_ip-X 会启用基本的 X…

淘宝上做网站的信得过吗东莞网站建设方案外包

移除视频声音是将视频指定的声音移除&#xff0c;可以选择移除人物声音还是视频的背景音乐&#xff0c;方便实现二次创作。 小编给大家推荐一些方法帮助大家更轻松地移除视频中的背景音乐或人物声音&#xff0c;有兴趣的朋友请自行百度查找&#xff0c;或小程序查找 1、方法&a…

html做旅游网站国外字体设计网站

mne-python脑电图和肌电图是一个开源软件分析、处理和显示。遵循bsd许可协议,由哈佛大学和共同开发的社区。主要功能包括:预处理和脑电图\/梅格信号的去噪,源估计、时频分析、统计测试,功能连接,机器学习,可视化的传感器、来源等外资支持最常见的原始数据格式。默认的(和附带的…

抚州市城乡建设局网站网站网页基本情况 网页栏目设置

一、源码特点 springboot 出租车管理系统是一套完善的完整信息系统&#xff0c;结合springboot框架和bootstrap完成本系统&#xff0c;对理解JSP java编程开发语言有帮助系统采用springboot框架&#xff08;MVC模式开发&#xff09;&#xff0c; 系统具有完整的源代码和数据…

卡密网站怎么做的苏州网站建设套餐

1、什么是硬间隔和软间隔&#xff1f; 当训练数据线性可分时&#xff0c;通过硬间隔最大化&#xff0c;学习一个线性分类器&#xff0c;即线性可分支持向量机。 当训练数据近似线性可分时&#xff0c;引入松弛变量&#xff0c;通过软间隔最大化&#xff0c;学习一个线性分类器…