直播电商平台开发,仿各个APP的购物车效果
直播电商平台开发,仿各个APP的购物车效果
1 | <?xml version= "1.0" encoding= "utf-8" ?><br><RelativeLayout xmlns:android= "http://schemas.android.com/apk/res/android" <br> xmlns:app= "http://schemas.android.com/apk/res-auto" <br> xmlns:tools= "http://schemas.android.com/tools" <br> android:id= "@+id/ll_kongzhidian" <br> android:layout_width= "match_parent" <br> android:layout_height= "match_parent" <br> android:orientation= "vertical" <br> tools:context= "com.xishuzhen.xs.activity.ShopActivity" ><br> <br> <br> <LinearLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "match_parent" <br> android:layout_above= "@+id/rl" <br> android:orientation= "horizontal" ><br> <br> <android.support.v7.widget.RecyclerView<br> android:id= "@+id/rv_category" <br> android:layout_width= "0dp" <br> android:layout_height= "match_parent" <br> android:layout_weight= "1" /><br> <br> <android.support.v7.widget.RecyclerView<br> android:id= "@+id/rv_xq" <br> android:layout_width= "0dp" <br> android:layout_height= "match_parent" <br> android:layout_weight= "3" /><br> </LinearLayout><br> <br> <RelativeLayout<br> android:id= "@+id/rl" <br> android:layout_width= "match_parent" <br> android:layout_height= "50dp" <br> android:layout_alignParentBottom= "true" <br> android:background= "@color/colorBlack" ><br> <br> <ImageView<br> android:id= "@+id/iv_shop_gouwuche" <br> android:layout_width= "50dp" <br> android:layout_height= "50dp" <br> android:layout_centerVertical= "true" <br> android:layout_marginLeft= "8dp" <br> android:src= "@mipmap/gouwuche" /><br> <br> <TextView<br> android:id= "@+id/tv_shop_total" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_alignLeft= "@id/iv_gouwuche" <br> android:layout_centerVertical= "true" <br> android:layout_marginLeft= "25dp" <br> android:background= "@mipmap/yuan" <br> android:gravity= "center" <br> android:text= "0" <br> android:textColor= "@color/colorWhite" <br> android:textSize= "10sp" <br> android:visibility= "invisible" /><br> <br> <TextView<br> android:id= "@+id/tv_shop_zongjia" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_centerInParent= "true" <br> android:text= "¥0" <br> android:textColor= "@color/colorWhite" <br> android:textSize= "14sp" /><br> <br> <Button<br> android:id= "@+id/btn_shop_settlement" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_alignParentRight= "true" <br> android:background= "@color/colorDarkGrey" <br> android:enabled= "false" <br> android:text= "去结算" <br> android:textColor= "@color/colorWhite" /><br> </RelativeLayout><br></RelativeLayout> |
以上就是直播电商平台开发,仿各个APP的购物车效果, 更多内容欢迎关注之后的文章
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现