在线直播系统源码,实现搜索后界面显示商品列表效果

在线直播系统源码,实现搜索后界面显示商品列表效果

activity_main.xml

 

1
<?xml version="1.0" encoding="utf-8"?><br><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"<br>    android:layout_width="match_parent"<br>    android:layout_height="match_parent"<br>    android:orientation="vertical"><br> <br>    <TextView<br>        android:layout_width="match_parent"<br>        android:layout_height="45dp"<br>        android:text="水果商城"<br>        android:textSize="18sp"<br>        android:textColor="#FFFFFF"<br>        android:background="#FA3C78"<br>        android:gravity="center" /><br>    <ListView<br>        android:layout_width="match_parent"<br>        android:layout_height="wrap_content"<br>        android:id="@+id/lv"/><br></LinearLayout>

list_view_header.xml

 

1
<?xml version="1.0" encoding="utf-8"?><br><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"<br>    android:layout_width="match_parent"<br>    android:layout_height="match_parent"<br>    android:padding="16dp"><br>    <ImageView<br>        android:layout_width="120dp"<br>        android:layout_height="90dp"<br>        android:id="@+id/iv"<br>        android:layout_centerVertical="true" /><br>    <RelativeLayout<br>        android:layout_width="wrap_content"<br>        android:layout_height="wrap_content"<br>        android:layout_marginLeft="10dp"<br>        android:layout_toRightOf="@+id/iv"<br>        android:layout_centerVertical="true"><br>        <TextView<br>            android:layout_width="wrap_content"<br>            android:layout_height="wrap_content"<br>            android:id="@+id/title"<br>            android:text="桌子"<br>            android:textSize="20sp"<br>            android:textColor="#000000" /><br>        <TextView<br>            android:layout_width="wrap_content"<br>            android:layout_height="wrap_content"<br>            android:id="@+id/tv_price"<br>            android:text="价格:"<br>            android:textSize="20sp"<br>            android:layout_marginTop="10dp"<br>            android:layout_below="@id/title"<br>            android:textColor="#FF8F03" /><br>        <TextView<br>            android:layout_width="wrap_content"<br>            android:layout_height="wrap_content"<br>            android:id="@+id/price"<br>            android:text="1000"<br>            android:textSize="20sp"<br>            android:layout_marginTop="10dp"<br>            android:layout_below="@id/title"<br>            android:layout_toRightOf="@id/tv_price"<br>            android:textColor="#FF8F03" /><br>    </RelativeLayout><br></RelativeLayout> 

 

以上就是 在线直播系统源码,实现搜索后界面显示商品列表效果,更多内容欢迎关注之后的文章

 

posted @   云豹科技-苏凌霄  阅读(47)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
历史上的今天:
2021-12-13 ​短视频系统源代码,vscode 设置当前一行内容高亮
2021-12-13 直播电商源码,android设置轮播图转场动画特效
2021-12-13 搭建自己的直播平台,实现exe单例模式
点击右上角即可分享
微信分享提示