先给大家展示下效果图,如果感觉还不错,请参考实例代码。

效果图如下所示:
具体代码如下所示:
activity_detail.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.myxh.coolshopping.ui.activity.DetailActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/detail_layout_buy">
<com.myxh.coolshopping.ui.widget.ObserverScrollView
android:id="@+id/detail_scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/detail_product_photo"
android:layout_width="match_parent"
android:layout_height="@dimen/detail_photo_height"
android:scaleType="centerCrop"
app:placeholderImage="@mipmap/home_adver_320"/>
<View
style="@style/detail_view_style"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/detail_product_info_layout_padding">
<TextView
android:id="@+id/detail_tv_product_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="竹林宾馆"
android:textSize="@dimen/textSize_20"
android:textColor="@color/app_yellow"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/detail_tv_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingRight="10dp"
tools:text="大床房入住一晚,交通便利"
android:textSize="@dimen/textSize_13"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/detail_bought"
android:textSize="@dimen/textSize_14"/>
<TextView
android:id="@+id/detail_tv_bought"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="289"
android:textSize="@dimen/textSize_14"/>
</LinearLayout>
<View
style="@style/detail_view_style"
android:layout_marginTop="@dimen/detail_view_marginTop"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:orientation="horizontal"
android:background="@color/white">
<LinearLayout
android:id="@+id/detail_sure_layout_anytime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/detail_sure_layout_marginRight"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="@dimen/detail_sure_icon_width"
android:layout_height="@dimen/detail_sure_icon_height"
android:src="@mipmap/mini_icon_sure"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/detail_sure_text_marginLeft"
android:text="@string/detail_sure_anytime"
android:textSize="@dimen/textSize_14"/>
</LinearLayout>
<LinearLayout
android:id="@+id/detail_sure_layout_overdue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/detail_sure_layout_marginRight"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="@dimen/detail_sure_icon_width"
android:layout_height="@dimen/detail_sure_icon_height"
android:src="@mipmap/mini_icon_sure"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/detail_sure_text_marginLeft"
android:text="@string/detail_sure_overdue"
android:textSize="@dimen/textSize_14"/>
</LinearLayout>
<LinearLayout
android:id="@+id/detail_sure_layout_sevenday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/detail_sure_layout_marginRight"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="@dimen/detail_sure_icon_width"
android:layout_height="@dimen/detail_sure_icon_height"
android:src="@mipmap/mini_icon_sure"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/detail_sure_text_marginLeft"
android:text="@string/detail_sure_sevenday"
android:textSize="@dimen/textSize_14"/>
</LinearLayout>
</LinearLayout>
<View
style="@style/detail_view_style"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/detail_merchant_info_layout_marginTop"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/detail_merchant_info"
android:textColor="@color/detail_merchant_info_color"
android:textSize="@dimen/textSize_17"/>
<View
style="@style/detail_view_style"
android:layout_marginTop="@dimen/detail_view_marginTop"/>
<TextView
android:id="@+id/detail_tv_merchant_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
tools:text="兴鑫宾馆"
android:textSize="@dimen/textSize_16"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/detail_merchant_detail_layout_padding"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:orientation="vertical">
<TextView
android:id="@+id/detail_merchant_tv_address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="湖北咸宁咸安区鱼水路89号"/>
<TextView
android:id="@+id/detail_merchant_tv_hours"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
tools:text="营业时间:24小时"/>
<TextView
android:id="@+id/detail_merchant_tv_distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
tools:text="6.8km"/>
</LinearLayout>
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="@mipmap/line_divide_vertical"/>
<ImageView
android:id="@+id/detail_merchant_iv_call"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center"
android:src="@mipmap/ic_call"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
android:id="@+id/detail_include_description"
layout="@layout/layout_detail_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</com.myxh.coolshopping.ui.widget.ObserverScrollView>
<LinearLayout
android:id="@+id/detail_title_layout"
android:layout_width="match_parent"
android:layout_height="45dp"
android:orientation="horizontal"
android:layout_alignParentTop="true"
android:padding="@dimen/detail_title_layout_padding">
<ImageView
android:id="@+id/detail_title_iv_back"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@mipmap/icon_back_black"/>
<TextView
android:id="@+id/detail_title_tv_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center"
android:layout_marginEnd="@dimen/detail_title_tv_marginLR"
android:layout_marginStart="@dimen/detail_title_tv_marginLR"
android:gravity="center"
tools:text="国际酒店"
android:singleLine="true"
android:ellipsize="end"
android:textSize="@dimen/textSize_20"/>
<ImageView
android:id="@+id/detail_title_iv_favorite"
android:layout_toLeftOf="@+id/detail_title_iv_share"
android:layout_marginRight="5dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@mipmap/icon_uncollect_black"/>
<ImageView
android:id="@+id/detail_title_iv_share"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:src="@mipmap/icon_share_black"/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/detail_layout_buy"
android:layout_width="match_parent"
android:layout_height="@dimen/detail_layout_buy_height"
android:layout_alignParentBottom="true"
android:background="@color/white">
<View
style="@style/detail_view_style"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:text="$"
android:textSize="@dimen/textSize_14"
android:textColor="@color/app_yellow"
android:textStyle="bold"/>
<TextView
android:id="@+id/detail_layout_buy_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/detail_layout_buy_price_marginLeft"
tools:text="119"
android:textSize="@dimen/textSize_23"
android:textColor="@color/app_yellow"
android:textStyle="bold"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="15dp"
android:orientation="vertical">
<TextView
android:id="@+id/detail_layout_buy_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="$998"
android:textSize="@dimen/textSize_12"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/detail_bottom_retail_price"
android:textSize="@dimen/textSize_12"/>
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/detail_layout_buy_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/detail_bottom_buy"
android:textSize="@dimen/textSize_17"
android:textColor="@color/white"
android:background="@color/app_yellow"/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
以上所述是小编给大家介绍的Android仿拉手团购App产品详情界面效果,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
# android
# 拉手网团购
# 拉手详情页
# Android仿拉手网团购App我的收藏界面实例代码
# 所示
# 小编
# 在此
# 给大家
# 湖北
# 团购
# 还不错
# 所述
# 给我留言
# 请参考
# 感谢大家
# 先给
# 疑问请
# 有任何
# 大床
# detail_photo_height
# scaleType
# dimen
# SimpleDraweeView
# detail_product_photo
相关文章:
做企业网站制作流程,企业网站制作基本流程有哪些?
C++中引用和指针有什么区别?(代码说明)
如何在阿里云服务器自主搭建网站?
网站制作专业公司有哪些,如何制作一个企业网站,建设网站的基本步骤有哪些?
武汉网站如何制作,黄黄高铁武穴北站途经哪些村庄?
如何获取上海专业网站定制建站电话?
深圳网站制作的公司有哪些,dido官方网站?
行程制作网站有哪些,第三方机票电子行程单怎么开?
广州商城建站系统开发成本与周期如何控制?
清单制作人网站有哪些,近日“兴风作浪的姑奶奶”引起很多人的关注这是什么事情?
建设网站制作价格,怎样建立自己的公司网站?
上海网站制作网站建设公司,建筑电工证网上查询系统入口?
设计网站制作公司有哪些,制作网页教程?
建站之星如何助力企业快速打造五合一网站?
零服务器AI建站解决方案:快速部署与云端平台低成本实践
GML (Geography Markup Language)是什么,它如何用XML来表示地理空间信息?
早安海报制作网站推荐大全,企业早安海报怎么每天更换?
免费网站制作模板下载,除了易企秀之外还有什么H5平台可以制作H5长页面,最好是免费的?
如何确保FTP站点访问权限与数据传输安全?
湖南网站制作公司,湖南上善若水科技有限公司做什么的?
如何正确下载安装西数主机建站助手?
,柠檬视频怎样兑换vip?
如何通过万网虚拟主机快速搭建网站?
北京营销型网站制作公司,可以用python做一个营销推广网站吗?
建站之星伪静态规则如何设置?
兔展官网 在线制作,怎样制作微信请帖?
建站之星代理如何获取技术支持?
详解免费开源的.NET多类型文件解压缩组件SharpZipLib(.NET组件介绍之七)
c++ stringstream用法详解_c++字符串与数字转换利器
建站之星与建站宝盒如何选择最佳方案?
建站之星如何快速解决建站难题?
制作网站的过程怎么写,用凡科建站如何制作自己的网站?
想学网站制作怎么学,建立一个网站要花费多少?
网页制作模板网站推荐,网页设计海报之类的素材哪里好?
如何通过山东自助建站平台快速注册域名?
网站制作怎么样才能赚钱,用自己的电脑做服务器架设网站有什么利弊,能赚钱吗?
建站上市公司网站建设方案与SEO优化服务定制指南
零基础网站服务器架设实战:轻量应用与域名解析配置指南
孙琪峥织梦建站教程如何优化数据库安全?
武汉网站制作费用多少,在武汉武昌,建面100平方左右的房子,想装暖气片,费用大概是多少啊?
如何基于云服务器快速搭建个人网站?
,想在网上投简历,哪几个网站比较好?
深圳网站制作平台,深圳市做网站好的公司有哪些?
如何挑选优质建站一级代理提升网站排名?
免费制作海报的网站,哪位做平面的朋友告诉我用什么软件做海报比较好?ps还是cd还是ai这几个软件我都会些我是做网页的?
网站制作报价单模板图片,小松挖机官方网站报价?
微课制作网站有哪些,微课网怎么进?
C++中的Pimpl idiom是什么,有什么好处?(隐藏实现)
如何通过宝塔面板实现本地网站访问?
如何快速搭建安全的FTP站点?
*请认真填写需求信息,我们会在24小时内与您取得联系。